<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/117773>117773</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[openmp] Test `libarcher :: races/taskwait-depend.c` fails 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>
From time to time, we see failures from `libarcher :: races/taskwait-depend.c`. We've already reproduced these failures on both aarch64 and s390x.
```
******************** TEST 'libarcher :: races/taskwait-depend.c' FAILED ********************
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 14
/builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/llvm/redhat-linux-build/./bin/clang -fopenmp -gdwarf-4 -O1 -fsanitize=thread -I /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/openmp/tools/archer/tests -I /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/llvm/redhat-linux-build/runtimes/runtimes-bins/openmp/runtime/src -L /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/llvm/redhat-linux-build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/llvm/redhat-linux-build/runtimes/runtimes-bins/openmp/runtime/src /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/openmp/tools/archer/tests/races/taskwait-depend.c -o /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/llvm/redhat-linux-build/runtimes/runtimes-bins/openmp/tools/archer/tests/races/Output/taskwait-depend.c.tmp -latomic && env TSAN_OPTIONS='ignore_noninstrumented_modules=0:ignore_noninstrumented_modules=1' /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/openmp/tools/archer/tests/deflake.bash /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/llvm/redhat-linux-build/runtimes/runtimes-bins/openmp/tools/archer/tests/races/Output/taskwait-depend.c.tmp 2>&1 | tee /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/llvm/redhat-linux-build/runtimes/runtimes-bins/openmp/tools/archer/tests/races/Output/taskwait-depend.c.tmp.log | /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/llvm/redhat-linux-build/./bin/FileCheck /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/openmp/tools/archer/tests/races/taskwait-depend.c
# executed command: /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/llvm/redhat-linux-build/./bin/clang -fopenmp -gdwarf-4 -O1 -fsanitize=thread -I /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/openmp/tools/archer/tests -I /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/llvm/redhat-linux-build/runtimes/runtimes-bins/openmp/runtime/src -L /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/llvm/redhat-linux-build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/llvm/redhat-linux-build/runtimes/runtimes-bins/openmp/runtime/src /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/openmp/tools/archer/tests/races/taskwait-depend.c -o /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/llvm/redhat-linux-build/runtimes/runtimes-bins/openmp/tools/archer/tests/races/Output/taskwait-depend.c.tmp -latomic
# executed command: env TSAN_OPTIONS=ignore_noninstrumented_modules=0:ignore_noninstrumented_modules=1 /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/openmp/tools/archer/tests/deflake.bash /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/llvm/redhat-linux-build/runtimes/runtimes-bins/openmp/tools/archer/tests/races/Output/taskwait-depend.c.tmp
# executed command: tee /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/llvm/redhat-linux-build/runtimes/runtimes-bins/openmp/tools/archer/tests/races/Output/taskwait-depend.c.tmp.log
# executed command: /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/llvm/redhat-linux-build/./bin/FileCheck /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/openmp/tools/archer/tests/races/taskwait-depend.c
# RUN: at line 15
/builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/llvm/redhat-linux-build/./bin/clang -fopenmp -gdwarf-4 -O1 -fsanitize=thread -I /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/openmp/tools/archer/tests -I /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/llvm/redhat-linux-build/runtimes/runtimes-bins/openmp/runtime/src -L /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/llvm/redhat-linux-build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/llvm/redhat-linux-build/runtimes/runtimes-bins/openmp/runtime/src /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/openmp/tools/archer/tests/races/taskwait-depend.c -o /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/llvm/redhat-linux-build/runtimes/runtimes-bins/openmp/tools/archer/tests/races/Output/taskwait-depend.c.tmp -latomic && env ARCHER_OPTIONS="ignore_serial=1 report_data_leak=1" env TSAN_OPTIONS='ignore_noninstrumented_modules=0:ignore_noninstrumented_modules=1' /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/openmp/tools/archer/tests/deflake.bash /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/llvm/redhat-linux-build/runtimes/runtimes-bins/openmp/tools/archer/tests/races/Output/taskwait-depend.c.tmp 2>&1 | tee /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/llvm/redhat-linux-build/runtimes/runtimes-bins/openmp/tools/archer/tests/races/Output/taskwait-depend.c.tmp.log | /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/llvm/redhat-linux-build/./bin/FileCheck /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/openmp/tools/archer/tests/races/taskwait-depend.c
# executed command: /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/llvm/redhat-linux-build/./bin/clang -fopenmp -gdwarf-4 -O1 -fsanitize=thread -I /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/openmp/tools/archer/tests -I /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/llvm/redhat-linux-build/runtimes/runtimes-bins/openmp/runtime/src -L /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/llvm/redhat-linux-build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/llvm/redhat-linux-build/runtimes/runtimes-bins/openmp/runtime/src /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/openmp/tools/archer/tests/races/taskwait-depend.c -o /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/llvm/redhat-linux-build/runtimes/runtimes-bins/openmp/tools/archer/tests/races/Output/taskwait-depend.c.tmp -latomic
# executed command: env 'ARCHER_OPTIONS=ignore_serial=1 report_data_leak=1' env TSAN_OPTIONS=ignore_noninstrumented_modules=0:ignore_noninstrumented_modules=1 /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/openmp/tools/archer/tests/deflake.bash /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/llvm/redhat-linux-build/runtimes/runtimes-bins/openmp/tools/archer/tests/races/Output/taskwait-depend.c.tmp
# note: command had no output on stdout or stderr
# error: command failed with exit status: 1
# executed command: tee /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/llvm/redhat-linux-build/runtimes/runtimes-bins/openmp/tools/archer/tests/races/Output/taskwait-depend.c.tmp.log
# executed command: /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/llvm/redhat-linux-build/./bin/FileCheck /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/openmp/tools/archer/tests/races/taskwait-depend.c
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/llvm/redhat-linux-build/./bin/FileCheck /builddir/build/BUILD/llvm-project-ba623e10b4064c410a1b79280ec7fb963463eb29/openmp/tools/archer/tests/races/taskwait-depend.c
# `-----------------------------
# error: command failed with exit status: 2
--
********************
```
A full log of the builds are available at:
- s390x: https://download.copr.fedorainfracloud.org/results/@fedora-llvm-team/llvm-snapshots-big-merge-20241115/fedora-40-s390x/08264238-llvm/builder-live.log.gz
- aarch64: https://download.copr.fedorainfracloud.org/results/@fedora-llvm-team/llvm-snapshots-big-merge-20241120/rhel-8-aarch64/08283233-llvm/builder-live.log.gz
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsWl1v27gS_TX0y4CCRMmS9eAH145wAxTNRZuijwElji3eUKRBUvnor7-gLG_TbjbZtlvE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