llvm-project/compiler-rt/lib/gwp_asan
Mitch Phillips d458f37932 [GWP-ASan] Change unreachable -> trap to work around DCE bug.
trapOnAddress is designed to SEGV on a specific address. Unfortunately,
with an IR change, __builtin_unreachable() ends up doing DCE on things
that have side effects, like the load that causes the trap.

Change to __builtin_trap() to avoid the optimisation.

Root cause is still an LLVM bug, and tracked in
https://bugs.llvm.org/show_bug.cgi?id=47480.

Reviewed By: eugenis

Differential Revision: https://reviews.llvm.org/D105654
2021-07-08 13:06:42 -07:00
..
optional [gwp_asan] Use __sanitizer_fast_backtrace on Fuchsia 2021-04-28 16:48:14 -07:00
platform_specific [GWP-ASan] Change sys/cdefs.h to features.h 2021-02-17 20:03:16 -08:00
scripts [gwp_asan] Improve symbolizer script 2021-07-01 10:37:07 -07:00
tests Name all DEATH tests using 'DeathTest' suffix. 2021-07-02 13:51:16 -07:00
CMakeLists.txt [GWP-ASan] Add aligned allocations. 2021-02-08 11:22:29 -08:00
common.cpp [GWP-ASan] Add aligned allocations. 2021-02-08 11:22:29 -08:00
common.h [Scudo] Use GWP-ASan's aligned allocations and fixup postalloc hooks. 2021-05-10 12:56:18 -07:00
crash_handler.cpp [GWP-ASan] Add aligned allocations. 2021-02-08 11:22:29 -08:00
crash_handler.h [GWP-ASan] Cleanup (NFC) 2020-10-19 18:13:11 -07:00
definitions.h [GWP-ASan] Cleanup (NFC) 2020-10-19 18:13:11 -07:00
guarded_pool_allocator.cpp [GWP-ASan] Change unreachable -> trap to work around DCE bug. 2021-07-08 13:06:42 -07:00
guarded_pool_allocator.h [GWP-ASan] Add aligned allocations. 2021-02-08 11:22:29 -08:00
mutex.h [GWP-ASan] IWYU & clang-format 2020-12-10 12:42:01 -08:00
options.h [GWP-ASan] Crash Handler API. 2020-02-05 15:39:17 -08:00
options.inc [GWP-ASan] Add aligned allocations. 2021-02-08 11:22:29 -08:00
stack_trace_compressor.cpp [GWP-ASan] Implement stack frame compression. 2019-08-15 21:09:09 +00:00
stack_trace_compressor.h [GWP-ASan] Implement stack frame compression. 2019-08-15 21:09:09 +00:00
utilities.h [GWP-ASan] Add aligned allocations. 2021-02-08 11:22:29 -08:00