[compiler-rt] [asan][test] Disable asan_lsan_deadlock test (PR #141145)

Paul Kirth via llvm-commits llvm-commits at lists.llvm.org
Fri May 23 12:27:51 PDT 2025


https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/141145

>From e88d9f3ef60b5d9cb1f207aae63d02587f66cafa Mon Sep 17 00:00:00 2001
From: Paul Kirth <paulkirth at google.com>
Date: Thu, 22 May 2025 14:36:44 -0700
Subject: [PATCH] [asan][test] Fix flake in asan_lsan_deadlock test

While the current test exercised the deadlock behavior prior to #131756,
deadlock still can occur intermittently. Since this results in test
flakes in CI, we disable this test until the locking behavior can be
fixed in the runtime. See #140646 for details.
---
 compiler-rt/test/asan/TestCases/asan_lsan_deadlock.cpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/compiler-rt/test/asan/TestCases/asan_lsan_deadlock.cpp b/compiler-rt/test/asan/TestCases/asan_lsan_deadlock.cpp
index b856b12325bf6..e546b3824a5bd 100644
--- a/compiler-rt/test/asan/TestCases/asan_lsan_deadlock.cpp
+++ b/compiler-rt/test/asan/TestCases/asan_lsan_deadlock.cpp
@@ -4,8 +4,9 @@
 // RUN: %clangxx_asan -O0 %s -o %t
 // RUN: %env_asan_opts=detect_leaks=1 not %run %t 2>&1 | FileCheck %s
 
-// Hangs for unknown reasons.
-// UNSUPPORTED: darwin
+// FIXME: Hangs for unknown reasons on all platforms. We can re-enable it when
+// its either deterministic, or we solve the deadlock between asan and lsan.
+// UNSUPPORTED: true
 
 /*
  * Purpose: Verify deadlock prevention between ASan error reporting and LSan leak checking.



More information about the llvm-commits mailing list