]> git.ipfire.org Git - thirdparty/tor.git/commit
Prevent ASAN from registering a SIGSEGV handler
authorcypherpunks <cypherpunks@torproject.org>
Thu, 19 May 2016 13:09:31 +0000 (13:09 +0000)
committerNick Mathewson <nickm@torproject.org>
Fri, 20 May 2016 12:34:18 +0000 (08:34 -0400)
commit0e20d056e91b033239da0253346788bdba8098e9
treeb68dfa2c803c103c69e3fe86f125bdd0dbe59d3a
parent22eed6dec2fa223213393fba470533d4d87dd8d1
Prevent ASAN from registering a SIGSEGV handler

AddressSanitizer's (ASAN) SIGSEGV handler overrides the backtrace
handler and prevents it from printing its backtrace. The output of ASAN
is different from what 'bt_test.py' expects and causes backtrace test
failures.

The 'allow_user_segv_handler' option allows applications to set their
own SIGSEGV handler but is not supported by older GCC versions. These
older GCC versions do support the 'handle_segv' which prevents ASAN from
setting its SIGSEGV handler.
src/test/test_bt.sh