[PATCH] D15189: [tsan] Introduce a "ignore_interceptors_accesses" option

Dmitry Vyukov via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 9 23:58:13 PST 2016


dvyukov added inline comments.

================
Comment at: lib/tsan/rtl/tsan_interceptors.cc:2155
@@ -2150,2 +2154,3 @@
   }
+  SCOPED_TSAN_INTERCEPTOR_USER_CALLBACK_START();
   int res = REAL(pthread_kill)(tid, sig);
----------------
kubabrecka wrote:
> dvyukov wrote:
> > Why is this a user callback?
> It ends up calling ThreadFinalize, which expects ignores to be disabled (check that ignore_reads_and_writes==0).  Suggestions to handle this better?
How does libc function call ThreadFinalize (stack trace)? Does it happen for pthread_kill of pthread_self?



http://reviews.llvm.org/D15189





More information about the llvm-commits mailing list