Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 345 by [email protected]: Use Linux madvise(MADV_DONTDUMP) to exclude ASan shadow regions from core dumps
https://code.google.com/p/address-sanitizer/issues/detail?id=345

AddressSanitizer maps huge regions to support its state tracking, so core dumps from ASan-managed processes are very large on 32-bit and unmanageably large on 64-bit. The default-enabled feature of disabling core dumps prevents these dumps from being generated, but in some cases, it would be very useful to get a manageable dump from an ASan-enabled process. On Linux 3.4 and later, the system call madvise accepts the command MADV_DONTDUMP to exclude a region from being written to a core file. The attached proof of concept patch uses this command to exclude the ASan shadow ranges. A test program using the patched libsanitizer generates core files that, although larger than an ASan-free build, are quite manageable (~151M core for a trivial crash program). This test was done with the libsanitizer that ships with gcc-4.9, but should apply equally to clang libsanitizer.

Attachments:
        0001-asan-madvise.patch  537 bytes

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"address-sanitizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to