forked from OSchip/llvm-project
[asan] Fix silly error when reporting multiple ASan errors in parallel.
llvm-svn: 253022
This commit is contained in:
parent
1e89f53902
commit
b2f75136d1
|
@ -634,9 +634,10 @@ class ScopedInErrorReport {
|
|||
// ASan found two bugs in different threads simultaneously.
|
||||
|
||||
u32 current_tid = GetCurrentTidOrInvalid();
|
||||
if (current_tid == reporting_thread_tid_ || current_tid == kInvalidTid) {
|
||||
if (reporting_thread_tid_ == current_tid ||
|
||||
reporting_thread_tid_ == kInvalidTid) {
|
||||
// This is either asynch signal or nested error during error reporting.
|
||||
// Fail fast to avoid deadlocks.
|
||||
// Fail simple to avoid deadlocks in Report().
|
||||
|
||||
// Can't use Report() here because of potential deadlocks
|
||||
// in nested signal handlers.
|
||||
|
|
Loading…
Reference in New Issue