New issue
Advanced search Search tips

Issue 774300 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Dec 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 1
Type: Bug

Blocking:
issue 769761



Sign in to add a comment

LLVM test UBSan-Standalone-x86_64 :: TestCases/Integer/div-zero.cpp fails flakily on Windows

Project Member Reported by h...@chromium.org, Oct 12 2017

Issue description

For example, from http://build.chromium.org/p/tryserver.chromium.win/builders/win_upload_clang/builds/247:


-- Testing: 35566 tests, 8 threads --
Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90
FAIL: UBSan-Standalone-x86_64 :: TestCases/Integer/div-zero.cpp (34069 of 35566)
******************** TEST 'UBSan-Standalone-x86_64 :: TestCases/Integer/div-zero.cpp' FAILED ********************
Script:
--
E:/b/build/slave/win_upload_clang/build/src/third_party/llvm-build/Release+Asserts/./bin/clang.exe  -fsanitize=integer-divide-by-zero -DDIVIDEND=0 E:\b\build\slave\win_upload_clang\build\src\third_party\llvm\projects\compiler-rt\test\ubsan\TestCases\Integer\div-zero.cpp -o E:\b\build\slave\win_upload_clang\build\src\third_party\llvm-build\Release+Asserts\projects\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\Integer\Output\div-zero.cpp.tmp &&  E:\b\build\slave\win_upload_clang\build\src\third_party\llvm-build\Release+Asserts\projects\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\Integer\Output\div-zero.cpp.tmp 2>&1 | FileCheck E:\b\build\slave\win_upload_clang\build\src\third_party\llvm\projects\compiler-rt\test\ubsan\TestCases\Integer\div-zero.cpp
E:/b/build/slave/win_upload_clang/build/src/third_party/llvm-build/Release+Asserts/./bin/clang.exe  -fsanitize=integer-divide-by-zero -DDIVIDEND=1U E:\b\build\slave\win_upload_clang\build\src\third_party\llvm\projects\compiler-rt\test\ubsan\TestCases\Integer\div-zero.cpp -o E:\b\build\slave\win_upload_clang\build\src\third_party\llvm-build\Release+Asserts\projects\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\Integer\Output\div-zero.cpp.tmp &&  E:\b\build\slave\win_upload_clang\build\src\third_party\llvm-build\Release+Asserts\projects\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\Integer\Output\div-zero.cpp.tmp 2>&1 | FileCheck E:\b\build\slave\win_upload_clang\build\src\third_party\llvm\projects\compiler-rt\test\ubsan\TestCases\Integer\div-zero.cpp
E:/b/build/slave/win_upload_clang/build/src/third_party/llvm-build/Release+Asserts/./bin/clang.exe  -fsanitize=float-divide-by-zero -DDIVIDEND=1.5 E:\b\build\slave\win_upload_clang\build\src\third_party\llvm\projects\compiler-rt\test\ubsan\TestCases\Integer\div-zero.cpp -o E:\b\build\slave\win_upload_clang\build\src\third_party\llvm-build\Release+Asserts\projects\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\Integer\Output\div-zero.cpp.tmp &&  E:\b\build\slave\win_upload_clang\build\src\third_party\llvm-build\Release+Asserts\projects\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\Integer\Output\div-zero.cpp.tmp 2>&1 | FileCheck E:\b\build\slave\win_upload_clang\build\src\third_party\llvm\projects\compiler-rt\test\ubsan\TestCases\Integer\div-zero.cpp
E:/b/build/slave/win_upload_clang/build/src/third_party/llvm-build/Release+Asserts/./bin/clang.exe  -fsanitize=integer-divide-by-zero -DDIVIDEND='intmax(123)' E:\b\build\slave\win_upload_clang\build\src\third_party\llvm\projects\compiler-rt\test\ubsan\TestCases\Integer\div-zero.cpp -o E:\b\build\slave\win_upload_clang\build\src\third_party\llvm-build\Release+Asserts\projects\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\Integer\Output\div-zero.cpp.tmp &&  E:\b\build\slave\win_upload_clang\build\src\third_party\llvm-build\Release+Asserts\projects\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\Integer\Output\div-zero.cpp.tmp 2>&1 | FileCheck E:\b\build\slave\win_upload_clang\build\src\third_party\llvm\projects\compiler-rt\test\ubsan\TestCases\Integer\div-zero.cpp
--
Exit Code: 1104
Command Output (stdout):
--
$ "E:/b/build/slave/win_upload_clang/build/src/third_party/llvm-build/Release+Asserts/./bin/clang.exe" "-fsanitize=integer-divide-by-zero" "-DDIVIDEND=0" "E:\b\build\slave\win_upload_clang\build\src\third_party\llvm\projects\compiler-rt\test\ubsan\TestCases\Integer\div-zero.cpp" "-o" "E:\b\build\slave\win_upload_clang\build\src\third_party\llvm-build\Release+Asserts\projects\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\Integer\Output\div-zero.cpp.tmp"
# command output:
LINK : fatal error LNK1104: cannot open file 'E:\b\build\slave\win_upload_clang\build\src\third_party\llvm-build\Release+Asserts\projects\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\Integer\Output\div-zero.cpp.tmp'
# command stderr:
E:\b\build\slave\win_upload_clang\build\src\third_party\llvm\projects\compiler-rt\test\ubsan\TestCases\Integer\div-zero.cpp:14:12: warning: expression result unused [-Wunused-value]
  DIVIDEND / 0;
  ~~~~~~~~ ^ ~
E:\b\build\slave\win_upload_clang\build\src\third_party\llvm\projects\compiler-rt\test\ubsan\TestCases\Integer\div-zero.cpp:14:12: warning: division by zero is undefined [-Wdivision-by-zero]
  DIVIDEND / 0;
           ^ ~
2 warnings generated.
clang.exe: error: linker command failed with exit code 1104 (use -v to see invocation)
error: command failed with exit status: 1104
--
********************
Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Testing Time: 346.67s
********************
Failing Tests (1):
    UBSan-Standalone-x86_64 :: TestCases/Integer/div-zero.cpp




Same thing here:
https://build.chromium.org/p/tryserver.chromium.win/builders/win_upload_clang/builds/245

But this one succeeded, so I guess something is flaky:
https://build.chromium.org/p/tryserver.chromium.win/builders/win_upload_clang/builds/246


eugenis: do you know if this test was enabled recently?

 

Comment 1 by h...@chromium.org, Oct 12 2017

or maybe it's related to our recent file renaming problems.. :-/

LINK : fatal error LNK1104: cannot open file 'E:\b\build\slave\win_upload_clang\build\src\third_party\llvm-build\Release+Asserts\projects\compiler-rt\test\ubsan\Standalone-x86_64\TestCases\Integer\Output\div-zero.cpp.tmp'

is interesting..
Owner: h...@chromium.org
It's an old test, it has not been touched recently. Must be the renaming thing.

Comment 3 by h...@chromium.org, Oct 12 2017

Did we use to run it on Windows before? It doesn't seem to be covered upstream: http://lab.llvm.org:8011/builders/sanitizer-windows/builds/18058

Comment 4 by p...@chromium.org, Oct 12 2017

If it can be reproduced locally, it might be worth trying to run that test in a loop with process monitor running in the background to see if we can figure out what is going wrong.

Comment 5 by h...@chromium.org, Oct 12 2017

Yeah, I'm trying to do it locally now.

But I also wonder if we didn't use to run this on Windows, and started doing it recently due to r315105

Comment 7 by thakis@chromium.org, Oct 18 2017

what's the status here?

Comment 8 by h...@chromium.org, Oct 18 2017

It's unclear what's going on. I suspect eugenis accidentally enabled the test on Windows with r315105 and it sometimes fails. I haven't been able to repro locally yet and I'm not actively working on it.

Comment 9 by h...@chromium.org, Dec 4 2017

Status: WontFix (was: Assigned)
I haven't seen this in a while, let's close it.

Sign in to add a comment