[PATCH] [ASan] Introduce the dump_instruction_bytes flag to print the faulting instruction upon SIGSEGV

Alexander Potapenko glider at google.com
Wed Sep 3 05:24:16 PDT 2014


Hi kcc, eugenis,

When dump_instruction_bytes=1 and the instruction pointer doesn't point to the zero page, ASan prints 16 bytes starting at the instruction point.
When the instruction pointer points to the zero page, print a warning about that.
Also allow deadly signals to be received in signal handlers (previously ASan would just crash upon the second SEGV)

http://reviews.llvm.org/D5167

Files:
  lib/asan/asan_flags.h
  lib/asan/asan_report.cc
  lib/asan/asan_rtl.cc
  lib/sanitizer_common/sanitizer_posix_libcdep.cc
  test/asan/TestCases/dump_instruction_bytes.cc
  test/asan/TestCases/zero_page_pc.cc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5167.13201.patch
Type: text/x-patch
Size: 5657 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140903/ec633714/attachment.bin>


More information about the llvm-commits mailing list