LLVM test UBSan-Standalone-x86_64 :: TestCases/Integer/div-zero.cpp fails flakily on Windows |
|||
Issue descriptionFor 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?
,
Oct 12 2017
It's an old test, it has not been touched recently. Must be the renaming thing.
,
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
,
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.
,
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
,
Oct 12 2017
The test does run and pass upstream, e.g. http://lab.llvm.org:8011/builders/clang-x64-ninja-win7/builds/6981/steps/ninja%20check%201/logs/stdio
,
Oct 18 2017
what's the status here?
,
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.
,
Dec 4 2017
I haven't seen this in a while, let's close it. |
|||
►
Sign in to add a comment |
|||
Comment 1 by h...@chromium.org
, Oct 12 2017