[compiler-rt] [rtsan] Disable pthread_cond_wait test (PR #150807)

via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 26 16:27:40 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-compiler-rt-sanitizer

Author: Chris Apple (cjappl)

<details>
<summary>Changes</summary>

Related to #<!-- -->150776 and #<!-- -->146120

Disable to fix test runner:
https://lab.llvm.org/buildbot/#/builders/208/builds/3123

---
Full diff: https://github.com/llvm/llvm-project/pull/150807.diff


1 Files Affected:

- (modified) compiler-rt/test/rtsan/pthread_cond_wait.cpp (+7-5) 


``````````diff
diff --git a/compiler-rt/test/rtsan/pthread_cond_wait.cpp b/compiler-rt/test/rtsan/pthread_cond_wait.cpp
index 915ec07228554..29afbf4b060cc 100644
--- a/compiler-rt/test/rtsan/pthread_cond_wait.cpp
+++ b/compiler-rt/test/rtsan/pthread_cond_wait.cpp
@@ -15,6 +15,10 @@
 
 int main() {
   std::cout << "Entry to main!" << std::endl;
+
+
+  // TODO: This is disabled because it does cause a test failure
+  /*
   std::mutex mut;
   std::condition_variable cv;
   bool go{false};
@@ -33,11 +37,9 @@ int main() {
   // cv.wait(lock, [&] { return go; });
   // but timed wait could segfault
 
-  // NOTE: If this test segfaults on a test runner, please comment
-  //       out this line and submit the patch.
-  //       I will follow up with a fix of the underlying problem,
-  //       but first I need to understand if it fails a test runner
-  cv.wait_for(lock, std::chrono::milliseconds(200), [&] { return go; });
+  // NOTE: When a fix for the pthread_cond issue #146120 is fixed, uncomment this line
+  //cv.wait_for(lock, std::chrono::milliseconds(200), [&] { return go; });
+  */
 
   std::cout << "Exit from main!" << std::endl;
 }

``````````

</details>


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


More information about the llvm-commits mailing list