On 2024-07-18 04:21, Bruno Haible wrote:
on NetBSD 10.0, every program that links with libasan exits
without even reaching main(). It merely prints
"This sanitizer is not compatible with enabled ASLR"
to standard error and exits with status 0 (yes, 0 !!!).

If I understand things correctly a similar problem was also on FreeBSD with PIE and the bug wasn't fixed until November of last year:

https://github.com/llvm/llvm-project/commit/7440e4ed85aa992718d4b5ccd1c97724bc3bdd2c

It might also be worth looking into the other Die() calls in the latest sanitizer_linux.cpp:

https://github.com/llvm/llvm-project/blob/main/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp

Reply via email to