[PATCH] D48806: [asan] Fix deadlock issue on FreeBSD, caused by use of .preinit_array in rL325240

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 30 18:11:06 PDT 2018


MaskRay added a comment.

In https://reviews.llvm.org/D48806#1148944, @devnexen wrote:

> Hopefully unit tests still passing.


Some `check-xray` tests will fail, e.g. `test/xray/TestCases/Posix/fdr-mode.cc`. It seems these xray tests rely on eager initialization `__xray_init`, but I don't think this revision should be blocked by these failures.

Note, https://reviews.llvm.org/rL325240 makes ASAN seriously broken: all `-fsanitize=address` tests will deadlock (they will dead lock in `__asan_init`) (so `ninja check-asan` will hang forever)

  clang -fsanitize=address -xc =(printf 'int main(){}') -o a; ./a => deadlock in __asan_init>AsanInitInternal>AsanTSDInit>...>__getcontextx_size>_rtld_bind>rlock_acquire(rtld_bind_lock, &lockstate)


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D48806





More information about the llvm-commits mailing list