[compiler-rt] [tsan] Fix dead lock when starting StackDepot thread (PR #96456)

Dmitry Vyukov via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 25 01:17:27 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:

Ah, I see. 

https://github.com/llvm/llvm-project/pull/96456


More information about the llvm-commits mailing list