[compiler-rt] [ASan] Prevent ASan/LSan deadlock by preloading modules before error reporting (PR #131756)

via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 27 21:13:50 PDT 2025


dyung wrote:

I've also been seeing random timeouts when running the lit tests where 1 test seems to be hanging. I compared the output of a completed run (https://lab.llvm.org/buildbot/#/builders/174/builds/16854) against a hanging run (https://lab.llvm.org/buildbot/#/builders/174/builds/16853) where there were the same number of tests supposed to be run and when I diffed the output, the missing test was:
```
% diff good.sorted.txt bad.sorted.txt
240d239
< AddressSanitizer-x86_64-linux :: TestCases/asan_lsan_deadlock.cpp
```
This definitely seems to indicate that there is another deadlock somewhere. Normally the test run on the bot should take ~630 seconds to complete. When the hanging test happens, the testing is killed at 1200 seconds of execution with one test remaining.

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


More information about the llvm-commits mailing list