<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - ubsan TestCases/ImplicitConversion tests flaky on Windows"
   href="https://bugs.llvm.org/show_bug.cgi?id=40627">40627</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>ubsan TestCases/ImplicitConversion tests flaky on Windows
          </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>All
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>ubsan
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>nicolasweber@gmx.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>ubsan tests have started to flakily fail when we build clang/win packages for
Chromium.

I first saw that in
<a href="https://chromium-review.googlesource.com/c/chromium/src/+/1412572">https://chromium-review.googlesource.com/c/chromium/src/+/1412572</a> , see the
win_upload_clang bot that was red on first try and green on second.

The green run had

  Passes With Retry  : 10

while the red run had

Failing Tests (1):
    UBSan-Standalone-x86_64 ::
TestCases/Pointer/alignment-assumption-attribute-assume_aligned-on-function.cpp

  Passes With Retry  : 7
  Unexpected Failures: 1

(The "passes with retry" is from issue 24554 which has very related-looking
failure stacks.)

But today's attempt had 3 red attempts due to this already
(<a href="https://chromium-review.googlesource.com/c/chromium/src/+/1455666">https://chromium-review.googlesource.com/c/chromium/src/+/1455666</a>), with the
4th attempt pending. They have:


Failing Tests (1):
    UBSan-Standalone-x86_64 ::
TestCases/ImplicitConversion/signed-integer-truncation-blacklist.c

  Passes With Retry  : 8
  Unexpected Failures: 1

(this was during the bootstrap build already; all the other instances mentioned
here failed in stage 2 instead.)

Failing Tests (2):
    UBSan-Standalone-x86_64 ::
TestCases/ImplicitConversion/integer-sign-change-blacklist.c
    UBSan-Standalone-x86_64 ::
TestCases/ImplicitConversion/signed-integer-truncation-or-sign-change-blacklist.c

  Passes With Retry  : 5
  Unexpected Failures: 2


Failing Tests (1):
    UBSan-Standalone-x86_64 ::
TestCases/ImplicitConversion/integer-sign-change-blacklist.c, 

  Passes With Retry  : 4
  Unexpected Failures: 1




For reference, the prior few clang/win rolls that didn't have any issues had

<a href="https://chromium-review.googlesource.com/c/chromium/src/+/1450709">https://chromium-review.googlesource.com/c/chromium/src/+/1450709</a>:
  Passes With Retry  : 5

<a href="https://chromium-review.googlesource.com/c/chromium/src/+/1436036">https://chromium-review.googlesource.com/c/chromium/src/+/1436036</a>
  Passes With Retry  : 8

so the retry numbers aren't very high compared to the previous "good" state.
It's just that we get failures despite retries.





Different tests fail, and some of them haven't been touched in a few months,
e.g. integer-sign-change-blacklist.c, signed-integer-truncation-blacklist.c,
signed-integer-truncation-or-sign-change-blacklist.c

Pointer/alignment-assumption-attribute-assume_aligned-on-function.cpp has been
touched recently-ish, in r351178 two weeks ago.




Here's an error output. I don't think it's very interesting; see the analysis
in issue 24554, I think it applies here too.):

FAIL: UBSan-Standalone-x86_64 ::
TestCases/ImplicitConversion/integer-sign-change-blacklist.c (44322 of 46546)
******************** TEST 'UBSan-Standalone-x86_64 ::
TestCases/ImplicitConversion/integer-sign-change-blacklist.c' FAILED
********************
Script:
--
: 'RUN: at line 6';     
C:/b/rr/tmpje3fbv/w/src/third_party/llvm-build/Release+Asserts/./bin/clang.exe 
   -fsanitize=implicit-integer-sign-change
-fno-sanitize-recover=implicit-integer-sign-change                          
-O0
C:\b\rr\tmpje3fbv\w\src\third_party\llvm\projects\compiler-rt\test\ubsan\TestCases\ImplicitConversion\integer-sign-change-blacklist.c
-o
C:\b\rr\tmpje3fbv\w\src\third_party\llvm-build\Release+Asserts\projects\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\ImplicitConversion\Output\integer-sign-change-blacklist.c.tmp
&& not 
C:\b\rr\tmpje3fbv\w\src\third_party\llvm-build\Release+Asserts\projects\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\ImplicitConversion\Output\integer-sign-change-blacklist.c.tmp
2>&1 | FileCheck
C:\b\rr\tmpje3fbv\w\src\third_party\llvm\projects\compiler-rt\test\ubsan\TestCases\ImplicitConversion\integer-sign-change-blacklist.c
--implicit-check-not="implicit conversion"
: 'RUN: at line 7';     
C:/b/rr/tmpje3fbv/w/src/third_party/llvm-build/Release+Asserts/./bin/clang.exe 
   -fsanitize=implicit-integer-sign-change
-fno-sanitize-recover=implicit-integer-sign-change                          
-O1
C:\b\rr\tmpje3fbv\w\src\third_party\llvm\projects\compiler-rt\test\ubsan\TestCases\ImplicitConversion\integer-sign-change-blacklist.c
-o
C:\b\rr\tmpje3fbv\w\src\third_party\llvm-build\Release+Asserts\projects\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\ImplicitConversion\Output\integer-sign-change-blacklist.c.tmp
&& not 
C:\b\rr\tmpje3fbv\w\src\third_party\llvm-build\Release+Asserts\projects\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\ImplicitConversion\Output\integer-sign-change-blacklist.c.tmp
2>&1 | FileCheck
C:\b\rr\tmpje3fbv\w\src\third_party\llvm\projects\compiler-rt\test\ubsan\TestCases\ImplicitConversion\integer-sign-change-blacklist.c
--implicit-check-not="implicit conversion"
: 'RUN: at line 8';     
C:/b/rr/tmpje3fbv/w/src/third_party/llvm-build/Release+Asserts/./bin/clang.exe 
   -fsanitize=implicit-integer-sign-change
-fno-sanitize-recover=implicit-integer-sign-change                          
-O2
C:\b\rr\tmpje3fbv\w\src\third_party\llvm\projects\compiler-rt\test\ubsan\TestCases\ImplicitConversion\integer-sign-change-blacklist.c
-o
C:\b\rr\tmpje3fbv\w\src\third_party\llvm-build\Release+Asserts\projects\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\ImplicitConversion\Output\integer-sign-change-blacklist.c.tmp
&& not 
C:\b\rr\tmpje3fbv\w\src\third_party\llvm-build\Release+Asserts\projects\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\ImplicitConversion\Output\integer-sign-change-blacklist.c.tmp
2>&1 | FileCheck
C:\b\rr\tmpje3fbv\w\src\third_party\llvm\projects\compiler-rt\test\ubsan\TestCases\ImplicitConversion\integer-sign-change-blacklist.c
--implicit-check-not="implicit conversion"
: 'RUN: at line 9';     
C:/b/rr/tmpje3fbv/w/src/third_party/llvm-build/Release+Asserts/./bin/clang.exe 
   -fsanitize=implicit-integer-sign-change
-fno-sanitize-recover=implicit-integer-sign-change                          
-O3
C:\b\rr\tmpje3fbv\w\src\third_party\llvm\projects\compiler-rt\test\ubsan\TestCases\ImplicitConversion\integer-sign-change-blacklist.c
-o
C:\b\rr\tmpje3fbv\w\src\third_party\llvm-build\Release+Asserts\projects\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\ImplicitConversion\Output\integer-sign-change-blacklist.c.tmp
&& not 
C:\b\rr\tmpje3fbv\w\src\third_party\llvm-build\Release+Asserts\projects\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\ImplicitConversion\Output\integer-sign-change-blacklist.c.tmp
2>&1 | FileCheck
C:\b\rr\tmpje3fbv\w\src\third_party\llvm\projects\compiler-rt\test\ubsan\TestCases\ImplicitConversion\integer-sign-change-blacklist.c
--implicit-check-not="implicit conversion"
: 'RUN: at line 11';   rm -f
C:\b\rr\tmpje3fbv\w\src\third_party\llvm-build\Release+Asserts\projects\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\ImplicitConversion\Output\integer-sign-change-blacklist.c.tmpmp
: 'RUN: at line 12';   echo "[implicit-integer-sign-change]" >>
C:\b\rr\tmpje3fbv\w\src\third_party\llvm-build\Release+Asserts\projects\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\ImplicitConversion\Output\integer-sign-change-blacklist.c.tmpmp
: 'RUN: at line 13';   echo "fun:implicitSignChange" >>
C:\b\rr\tmpje3fbv\w\src\third_party\llvm-build\Release+Asserts\projects\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\ImplicitConversion\Output\integer-sign-change-blacklist.c.tmpmp
: 'RUN: at line 14';     
C:/b/rr/tmpje3fbv/w/src/third_party/llvm-build/Release+Asserts/./bin/clang.exe 
   -fsanitize=implicit-integer-sign-change
-fno-sanitize-recover=implicit-integer-sign-change
-fsanitize-blacklist=C:\b\rr\tmpje3fbv\w\src\third_party\llvm-build\Release+Asserts\projects\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\ImplicitConversion\Output\integer-sign-change-blacklist.c.tmpmp
-O0
C:\b\rr\tmpje3fbv\w\src\third_party\llvm\projects\compiler-rt\test\ubsan\TestCases\ImplicitConversion\integer-sign-change-blacklist.c
-o
C:\b\rr\tmpje3fbv\w\src\third_party\llvm-build\Release+Asserts\projects\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\ImplicitConversion\Output\integer-sign-change-blacklist.c.tmp
&& not 
C:\b\rr\tmpje3fbv\w\src\third_party\llvm-build\Release+Asserts\projects\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\ImplicitConversion\Output\integer-sign-change-blacklist.c.tmp
2>&1 | not FileCheck
C:\b\rr\tmpje3fbv\w\src\third_party\llvm\projects\compiler-rt\test\ubsan\TestCases\ImplicitConversion\integer-sign-change-blacklist.c
: 'RUN: at line 15';     
C:/b/rr/tmpje3fbv/w/src/third_party/llvm-build/Release+Asserts/./bin/clang.exe 
   -fsanitize=implicit-integer-sign-change
-fno-sanitize-recover=implicit-integer-sign-change
-fsanitize-blacklist=C:\b\rr\tmpje3fbv\w\src\third_party\llvm-build\Release+Asserts\projects\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\ImplicitConversion\Output\integer-sign-change-blacklist.c.tmpmp
-O1
C:\b\rr\tmpje3fbv\w\src\third_party\llvm\projects\compiler-rt\test\ubsan\TestCases\ImplicitConversion\integer-sign-change-blacklist.c
-o
C:\b\rr\tmpje3fbv\w\src\third_party\llvm-build\Release+Asserts\projects\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\ImplicitConversion\Output\integer-sign-change-blacklist.c.tmp
&& not 
C:\b\rr\tmpje3fbv\w\src\third_party\llvm-build\Release+Asserts\projects\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\ImplicitConversion\Output\integer-sign-change-blacklist.c.tmp
2>&1 | not FileCheck
C:\b\rr\tmpje3fbv\w\src\third_party\llvm\projects\compiler-rt\test\ubsan\TestCases\ImplicitConversion\integer-sign-change-blacklist.c
: 'RUN: at line 16';     
C:/b/rr/tmpje3fbv/w/src/third_party/llvm-build/Release+Asserts/./bin/clang.exe 
   -fsanitize=implicit-integer-sign-change
-fno-sanitize-recover=implicit-integer-sign-change
-fsanitize-blacklist=C:\b\rr\tmpje3fbv\w\src\third_party\llvm-build\Release+Asserts\projects\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\ImplicitConversion\Output\integer-sign-change-blacklist.c.tmpmp
-O2
C:\b\rr\tmpje3fbv\w\src\third_party\llvm\projects\compiler-rt\test\ubsan\TestCases\ImplicitConversion\integer-sign-change-blacklist.c
-o
C:\b\rr\tmpje3fbv\w\src\third_party\llvm-build\Release+Asserts\projects\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\ImplicitConversion\Output\integer-sign-change-blacklist.c.tmp
&& not 
C:\b\rr\tmpje3fbv\w\src\third_party\llvm-build\Release+Asserts\projects\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\ImplicitConversion\Output\integer-sign-change-blacklist.c.tmp
2>&1 | not FileCheck
C:\b\rr\tmpje3fbv\w\src\third_party\llvm\projects\compiler-rt\test\ubsan\TestCases\ImplicitConversion\integer-sign-change-blacklist.c
: 'RUN: at line 17';     
C:/b/rr/tmpje3fbv/w/src/third_party/llvm-build/Release+Asserts/./bin/clang.exe 
   -fsanitize=implicit-integer-sign-change
-fno-sanitize-recover=implicit-integer-sign-change
-fsanitize-blacklist=C:\b\rr\tmpje3fbv\w\src\third_party\llvm-build\Release+Asserts\projects\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\ImplicitConversion\Output\integer-sign-change-blacklist.c.tmpmp
-O3
C:\b\rr\tmpje3fbv\w\src\third_party\llvm\projects\compiler-rt\test\ubsan\TestCases\ImplicitConversion\integer-sign-change-blacklist.c
-o
C:\b\rr\tmpje3fbv\w\src\third_party\llvm-build\Release+Asserts\projects\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\ImplicitConversion\Output\integer-sign-change-blacklist.c.tmp
&& not 
C:\b\rr\tmpje3fbv\w\src\third_party\llvm-build\Release+Asserts\projects\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\ImplicitConversion\Output\integer-sign-change-blacklist.c.tmp
2>&1 | not FileCheck
C:\b\rr\tmpje3fbv\w\src\third_party\llvm\projects\compiler-rt\test\ubsan\TestCases\ImplicitConversion\integer-sign-change-blacklist.c
--
Exit Code: 1104

Command Output (stdout):
--
$ ":" "RUN: at line 6"
$
"C:/b/rr/tmpje3fbv/w/src/third_party/llvm-build/Release+Asserts/./bin/clang.exe"
"-fsanitize=implicit-integer-sign-change"
"-fno-sanitize-recover=implicit-integer-sign-change" "-O0"
"C:\b\rr\tmpje3fbv\w\src\third_party\llvm\projects\compiler-rt\test\ubsan\TestCases\ImplicitConversion\integer-sign-change-blacklist.c"
"-o"
"C:\b\rr\tmpje3fbv\w\src\third_party\llvm-build\Release+Asserts\projects\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\ImplicitConversion\Output\integer-sign-change-blacklist.c.tmp"
# command output:
LINK : fatal error LNK1104: cannot open file
'C:\b\rr\tmpje3fbv\w\src\third_party\llvm-build\Release+Asserts\projects\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\ImplicitConversion\Output\integer-sign-change-blacklist.c.tmp'

# command stderr:
clang: error: linker command failed with exit code 1104 (use -v to see
invocation)

error: command failed with exit status: 1104</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>