[compiler-rt] [TSan] Fix deadlocks during TSan error reporting on Apple platforms (PR #151495)

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 2 10:00:41 PDT 2026


vitalybuka wrote:

> > * All platforms: move OutputReport (and thus symbolization) after the locked region when reporting.
> 
> What is the intuition on why this is safe on all platforms? (I don't have a counterexample, but it's not immediately obvious to me that it is safe. If this change had been conditionally `#if SANITIZER_APPLE`, it would be a straightforward app(rov)al.)

This conditional differences makes things harder to maintain. Better to keep consistent as much as possible.

I see same deadlock on linux.

https://github.com/llvm/llvm-project/pull/151495


More information about the llvm-commits mailing list