[llvm-commits] [compiler-rt] r170430 - /compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_report.cc
Dmitry Vyukov
dvyukov at google.com
Tue Dec 18 06:19:24 PST 2012
Author: dvyukov
Date: Tue Dec 18 08:19:24 2012
New Revision: 170430
URL: http://llvm.org/viewvc/llvm-project?rev=170430&view=rev
Log:
tsan: warn about reports from signal handlers
Modified:
compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_report.cc
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_report.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_report.cc?rev=170430&r1=170429&r2=170430&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_report.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_report.cc Tue Dec 18 08:19:24 2012
@@ -510,6 +510,10 @@
return;
ScopedInRtl in_rtl;
+ if (thr->in_signal_handler)
+ Printf("ThreadSanitizer: printing report from signal handler."
+ " Can crash or hang.\n");
+
bool freed = false;
{
Shadow s(thr->racy_state[1]);
More information about the llvm-commits
mailing list