llvm-project/compiler-rt/lib/sanitizer_common/symbolizer
Dmitry Vyukov 00a1007545 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
2021-05-18 08:58:08 +02:00
..
scripts [sanitizer] Fix symbolizer build broken by D82702 2020-07-16 19:34:45 -07:00
sanitizer_symbolize.cpp sanitizer_common/symbolizer: fix crashes during exit 2021-05-18 08:58:08 +02:00
sanitizer_wrappers.cpp Summary: update macro for OFF_T so that sanitizer works on AARCH64. 2020-01-10 13:34:49 -08:00