[compiler-rt] [tsan] Fix dead lock when starting StackDepot thread (PR #96456)
Dmitry Vyukov via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 24 00:41:22 PDT 2024
================
@@ -1088,7 +1088,18 @@ TSAN_INTERCEPTOR(int, pthread_join, void *th, void **ret) {
return res;
}
-DEFINE_REAL_PTHREAD_FUNCTIONS
+// DEFINE_REAL_PTHREAD_FUNCTIONS
+namespace __sanitizer {
+int real_pthread_create(void *th, void *attr, void *(*callback)(void *),
+ void *param) {
+ ScopedIgnoreInterceptors ignore;
----------------
dvyukov wrote:
Mmap interceptor clears shadow for the mmaped memory range. If we ignore mmaps coming from pthread_create (stacks), can't we get garbage shadow for these and report false positives later?
https://github.com/llvm/llvm-project/pull/96456
More information about the llvm-commits
mailing list