summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2021-05-14 09:26:15 +0200
committerDmitry Vyukov <dvyukov@google.com>2021-05-18 08:58:08 +0200
commit00a1007545ba8ad2105876a41364b35235749e2a (patch)
tree0a63f38c1e67f926148372276b896d95fb7d5a2b /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentd7503c3bce491e2672386906ec879c7df5ede7a5 (diff)
sanitizer_common/symbolizer: fix crashes during exit
Override __cxa_atexit and ignore callbacks. This prevents crashes in a configuration when the symbolizer is built into sanitizer runtime and consequently into the test process. LLVM libraries have some global objects destroyed during exit, so if the test process triggers any bugs after that, the symbolizer crashes. An example stack trace of such crash: For the standalone llvm-symbolizer this does not hurt, we just don't destroy few global objects on exit. Reviewed By: kda Differential Revision: https://reviews.llvm.org/D102470
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions