[PATCH] D47448: [Asan] Attempt to fix for FreeBSD

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 1 11:30:36 PDT 2018


MaskRay added a comment.

BTW, how did you figure out it dead locked in `__asan_init`?

I used `clang++ -fsanitize=address -Wl,-dynamic-linker,/tmp/c/libexec/ld-elf.so.1 -Wl,-R,/tmp/c/lib -xc =(printf 'int main(){}') -o aa`
where `ld-elf.so.1` and `libthr.so.3` and their debug info were extracted from FreeBSD 12.0-CURRENT snapshot `base.txz` and `base-dbg.txz`.

The `gdb aa` terminal was unresponsive so I had to `pkill -STOP aa` in another shell. Then I could print the backtrace of the `aa` process.


https://reviews.llvm.org/D47448





More information about the llvm-commits mailing list