[PATCH] [ASan] Move the SIGSEGV/SIGBUS handling to sanitizer_common
Alexander Potapenko
glider at google.com
Tue Jan 28 07:50:17 PST 2014
Hi samsonov, kcc,
This change is a part of refactoring intended to have common signal handling behavior in all tools.
This particular CL moves InstallSignalHandlers() into sanitizer_common (making it InstallDeadlySignalHandlers()), but doesn't enable default signal handlers for any tool other than ASan.
We now make sanitizer_common tests and clang_rt.san depend on RTInterception on Linux, because InstallDeadlySignalHandlers() needs to call __interception::GetFuncAddr.
http://llvm-reviews.chandlerc.com/D2640
Files:
asan/asan_internal.h
asan/asan_posix.cc
asan/asan_rtl.cc
interception/interception.h
interception/interception_linux.cc
interception/interception_linux.h
sanitizer_common/CMakeLists.txt
sanitizer_common/sanitizer_common.h
sanitizer_common/sanitizer_linux.cc
sanitizer_common/sanitizer_mac.cc
sanitizer_common/sanitizer_posix_libcdep.cc
sanitizer_common/tests/CMakeLists.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2640.1.patch
Type: text/x-patch
Size: 10553 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140128/2e92318d/attachment.bin>
More information about the llvm-commits
mailing list