tsan: warn about reports from signal handlers

llvm-svn: 170430
This commit is contained in:
Dmitry Vyukov 2012-12-18 14:19:24 +00:00
parent d509179a0b
commit a2ce1e0055
1 changed files with 4 additions and 0 deletions

View File

@ -510,6 +510,10 @@ void ReportRace(ThreadState *thr) {
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]);