Skip to content
Commit 75b3da75 authored by Kuba Brecka's avatar Kuba Brecka
Browse files

[asan] Fix a deadlock halt_on_error-signals.c when `reporting_thread_tid_` is 0

A signal can be delivered after TryLock but before StartReporting in ScopedInErrorReport, causing a deadlock.  Fixing this by statically initializing reporting_thread_tid_ to kInvalidTid.

Differential Revision: http://reviews.llvm.org/D20524

llvm-svn: 271256
parent 73ee8ba9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment