forked from OSchip/llvm-project
![]() Turns out the test was working by accident: we need to ensure TSan instrumentation is not called from the fork() hook, otherwise the tool will deadlock. Previously it worked because alloc_free_blocks() got inlined into __tsan_test_only_on_fork(), but it cannot always be the case. Adding __attribute__((disable_sanitizer_instrumentation)) will prevent TSan from instrumenting alloc_free_blocks(). Reviewed By: dvyukov Differential Revision: https://reviews.llvm.org/D120050 |
||
---|---|---|
.. | ||
check_memcpy.c | ||
check_preinit.cpp | ||
clockwait_double_lock.c | ||
clone_deadlock.cpp | ||
clone_setns.cpp | ||
dlopen_static_tls.cpp | ||
double_race.cpp | ||
fork_deadlock.cpp | ||
fork_multithreaded4.cpp | ||
fork_syscall.cpp | ||
lit.local.cfg.py | ||
mutex_robust.cpp | ||
mutex_robust2.cpp | ||
pie_no_aslr.cpp | ||
sethostent.cpp | ||
syscall.cpp | ||
syscall.h | ||
thread_timedjoin.c | ||
thread_tryjoin.c | ||
user_fopen.cpp | ||
user_malloc.cpp |