<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 analyze step fails on the bots"
   href="https://llvm.org/bugs/show_bug.cgi?id=30244">30244</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>TSAN analyze step fails on the bots
          </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>krasin@google.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>Recently, the sanitizer autoconf bot turned red:
<a href="http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-autoconf/builds/24680/steps/tsan%20analyze/logs/stdio">http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-autoconf/builds/24680/steps/tsan%20analyze/logs/stdio</a>

The failure is described as:

+
/mnt/b/sanitizer-buildbot4/sanitizer-x86_64-linux-autoconf/build/llvm/projects/compiler-rt/lib/tsan/check_analyze.sh
/tmp/tsan_exe.L3wvOKAx
...
     read1 tot 412; size 1428; rsp 1; push 6; pop 6; call 2; load  6; store 11;
sh  28; mov  95; lea   8; cmp  60
...
FAILED read1 must contain push 5
+ echo @@@STEP_FAILURE@@@
@@@STEP_FAILURE@@@

On the previous buildbot run, it was 5:
<a href="http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-autoconf/builds/24679/steps/tsan%20analyze/logs/stdio">http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-autoconf/builds/24679/steps/tsan%20analyze/logs/stdio</a>

     read2 tot 386; size 1361; rsp 1; push 5; pop 5; call 2; load  8; store 11;
sh  28; mov  89; lea   4; cmp  64

The CL affected the code is (unsurprisingly) related to codegen:
<a href="https://reviews.llvm.org/rL280364">https://reviews.llvm.org/rL280364</a>

And the last commit to check_analyze.sh tells us:

"""
r268382 | dvyukov | 2016-05-03 06:59:41 -0700 (Tue, 03 May 2016) | 11 lines

tsan: update tsan_analyze to what tip clang generates

We used to depend on host gcc. But some distributions got
new gcc recently which broke the check. Generally, we can't
depend that an arbitrary host gcc generates something stable.

Switch to clang.
This has an additional advantage of catching regressions in
clang codegen.
"""

I guess, we have caught a regression in clang codegen, but I am failing to
decipher what it means for us: shall we fix the codegen or just update the
expectation?</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>