<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - TSan: flaky test race_on_mutex.c"
   href="https://llvm.org/bugs/show_bug.cgi?id=25697">25697</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>TSan: flaky test race_on_mutex.c
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>compiler-rt
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>compiler-rt
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>aizatsky@chromium.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Sanitizer build bot fails from time to time because of the race_on_mutex test.
I believe I saw this failure more than once.

Sample failure:

FAIL: ThreadSanitizer :: race_on_mutex.c (133 of 281)
******************** TEST 'ThreadSanitizer :: race_on_mutex.c' FAILED
********************
Script:
--
/mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm_build64/./bin/clang
-fsanitize=thread -Wall -m64 -gline-tables-only -O1
/mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/compiler-rt/test/tsan/race_on_mutex.c
-o
/mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm_build64/tools/clang/runtime/compiler-rt-bins/test/tsan/Output/race_on_mutex.c.tmp
&&
/mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/compiler-rt/test/tsan/deflake.bash
/mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm_build64/tools/clang/runtime/compiler-rt-bins/test/tsan/Output/race_on_mutex.c.tmp
| FileCheck
/mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/compiler-rt/test/tsan/race_on_mutex.c
--
Exit Code: 1

Command Output (stderr):
--
/mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/compiler-rt/test/tsan/race_on_mutex.c:40:16:
error: expected string not found in input
// CHECK-NEXT: #0 pthread_mutex_init {{.*}} ({{.*}})
               ^
<stdin>:8:2: note: scanning from here
 [failed to restore the stack]
 ^
<stdin>:13:2: note: possible intended match here
 #0 pthread_create
/mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:910:3
(race_on_mutex.c.tmp+0x000000428d91)
 ^

--

********************
Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Testing Time: 12.09s
********************
Failing Tests (1):
    ThreadSanitizer :: race_on_mutex.c


(<a href="http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux/builds/21494/steps/run%2064-bit%20tsan%20unit%20tests/logs/stdio">http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux/builds/21494/steps/run%2064-bit%20tsan%20unit%20tests/logs/stdio</a>)</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>