patch: break into debugger on death in sanitizers

Nick Lewycky nlewycky at google.com
Thu Oct 24 16:16:29 PDT 2013


Running sanitized code under gdb can be annoying because the program will
print out its error then exit, instead of the usual behaviour when we get
an abort() of stopping the program there and allowing the user to inspect
its stack trace.

Add a trap to the exit path in sanitizer_common. Please review!

Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131024/3e1cbaff/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sanitizer-debug-1.patch
Type: text/x-patch
Size: 4491 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131024/3e1cbaff/attachment.bin>


More information about the cfe-commits mailing list