<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 --- - Random failure of projects/compiler-rt/test/tsan/memcmp_race.cc"
   href="https://llvm.org/bugs/show_bug.cgi?id=25643">25643</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Random failure of projects/compiler-rt/test/tsan/memcmp_race.cc
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </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>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>hjl.tools@gmail.com
          </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>On Fedora 22 and Fedora 23 x86-64, I got

FAIL: ThreadSanitizer :: memcmp_race.cc (26625 of 27077)
******************** TEST 'ThreadSanitizer :: memcmp_race.cc' FAILED
********************
Script:
--
/export/build/gnu/llvm-clang-x32-bootstrap-cmake/stage2/build-x86_64-linux-gnux32/./bin/clang
--driver-mode=g++ -fsanitize=thread -Wall -m64 -gline-tables-only -O1
/export/gnu/import/git/llvm-x32/projects/compiler-rt/test/tsan/memcmp_race.cc
-o
/export/build/gnu/llvm-clang-x32-bootstrap-cmake/stage2/build-x86_64-linux-gnux32/projects/compiler-rt/test/tsan/Output/memcmp_race.cc.tmp
&& /export/gnu/import/git/llvm-x32/projects/compiler-rt/test/tsan/deflake.bash
/export/build/gnu/llvm-clang-x32-bootstrap-cmake/stage2/build-x86_64-linux-gnux32/projects/compiler-rt/test/tsan/Output/memcmp_race.cc.tmp
| FileCheck
/export/gnu/import/git/llvm-x32/projects/compiler-rt/test/tsan/memcmp_race.cc
--
Exit Code: 1

Command Output (stderr):
--
/export/gnu/import/git/llvm-x32/projects/compiler-rt/test/tsan/memcmp_race.cc:41:11:
error: expected string not found in input
// CHECK: #0 memcmp
          ^
<stdin>:9:2: note: scanning from here
 [failed to restore the stack]
 ^
<stdin>:12:123: note: possible intended match here
 #0 operator new[](unsigned long)
/export/gnu/import/git/llvm-x32/projects/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:51:3
(memcmp_race.cc.tmp+0x0000004a530e)
                                                                               
                                          ^

--

********************

It fails about 1 of 10 runs.</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>