tsan: warn about reports from signal handlers
llvm-svn: 170430
This commit is contained in:
@@ -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]);
|
||||||
|
|||||||
Reference in New Issue
Block a user