<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/127796>127796</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[openmp] Some libarcher tests fail intermittently
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
tuliom
</td>
</tr>
</table>
<pre>
I've been seeing this issue happen from time to time.
So far, I've reproduced this issue with:
- `libarcher :: races/task-two.c`
- `libarcher :: races/lock-nested-unrelated.c`
The error message is usually like this one:
```
# | /builddir/build/BUILD/llvm-21.0.0_pre20250217.g26fc2e90fc5431-build/llvm-project-26fc2e90fc54313bfe3e0e1fbbb14251ed8afe29/openmp/tools/archer/tests/races/task-two.c:44:11: error: CHECK: expected string not found in input
# | // CHECK: ThreadSanitizer: reported {{[0-9]+}} warnings
# | ^
# | <stdin>:29:5: note: scanning from here
# | DONE
# | ^
# | <stdin>:30:1: note: possible intended match here
# | ThreadSanitizer: thread T4 finished with ignores enabled, created at:
# | ^
```
As it can be seen, the test is more or less prepared to deal with the fact that tsan is not 100% accurate in detecting and reporting all data races.
I suspect the problem is: when no data races is detected, that line is not printed and these tests fail.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyEVNFu8zYPfRrlhkggS3ZcX_jCbRr8xT9sF-2uB1miY62yZEh0u-7pB9kpmq_4sBUC6hDi4dEheVRK9uIRW1bds-q0UwuNIba0OBumXR_MR_vERP2G0CN6SIjWX4BGm8CmtCCMap7RwxDDBGQnBArr_wPj3XOAQUUmHuCKEXGOwSwazS3Eu6WRyY7xbg_syJ3tVdQjRshB2UFUGhMTZ1LpdU_v4aDZkf_nbRf0695jIjT7xUd0itB8pjLevYwIGGOIMGFK6oJgEyxpUc59gLOvuFEMHjdu-Rz59fCOCQmsfgAmzv1inTE2fn4ycb7__emXUybh3qa9KA78wP-YIwouKi6K-nARx0ELbPigq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