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

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 24 08:40:32 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;
----------------
vitalybuka wrote:

`real_pthread_create` is for only internal use thread, it this patch does not apply to regular user's calls.

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


More information about the llvm-commits mailing list