]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libsanitizer/tsan/tsan_mman.cc
libsanitizer merge from upstream r173241
[thirdparty/gcc.git] / libsanitizer / tsan / tsan_mman.cc
index 9a8a524f2622036a4a19d63ba855dbf001efed81..f4fafaf77f0d71a4daca768ddd35d5e65be8e0c6 100644 (file)
@@ -46,6 +46,7 @@ static void SignalUnsafeCall(ThreadState *thr, uptr pc) {
   Context *ctx = CTX();
   StackTrace stack;
   stack.ObtainCurrent(thr, pc);
+  Lock l(&ctx->thread_mtx);
   ScopedReport rep(ReportTypeSignalUnsafe);
   if (!IsFiredSuppression(ctx, rep, stack)) {
     rep.AddStack(&stack);