tsan: warn about reports from signal handlers
llvm-svn: 170430
This commit is contained in:
parent
d509179a0b
commit
a2ce1e0055
|
|
@ -510,6 +510,10 @@ void ReportRace(ThreadState *thr) {
|
||||||
return;
|
return;
|
||||||
ScopedInRtl in_rtl;
|
ScopedInRtl in_rtl;
|
||||||
|
|
||||||
|
if (thr->in_signal_handler)
|
||||||
|
Printf("ThreadSanitizer: printing report from signal handler."
|
||||||
|
" Can crash or hang.\n");
|
||||||
|
|
||||||
bool freed = false;
|
bool freed = false;
|
||||||
{
|
{
|
||||||
Shadow s(thr->racy_state[1]);
|
Shadow s(thr->racy_state[1]);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue