llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
27.92k stars 11.52k forks source link

Regression(360959): New TestCases/try-catch.cc doesn't pass #41268

Closed nico closed 5 years ago

nico commented 5 years ago
Bugzilla Link 41923
Resolution FIXED
Resolved on May 17, 2019 11:44
Version unspecified
OS All
CC @eugenis,@nico

Extended Description

Getting this on our bots: https://logs.chromium.org/logs/chromium/buildbucket/cr-buildbucket.appspot.com/8913235058186310480/+/steps/package_clang/0/stdout

llvm-lit: /b/swarming/w/ir/k/src/third_party/llvm-bootstrap/utils/lit/tests/lit.cfg:67: note: Found python psutil module -- Testing: 54699 tests, 32 threads -- Testing: 0 .. 10.. 20.. 30.. FAIL: HWAddressSanitizer-x86_64 :: TestCases/try-catch.cc (21832 of 54699) **** TEST 'HWAddressSanitizer-x86_64 :: TestCases/try-catch.cc' FAILED **** Script:

: 'RUN: at line 1'; /b/swarming/w/ir/k/src/third_party/llvm-bootstrap/./bin/clang --driver-mode=g++ -fsanitize=hwaddress -mllvm -hwasan-generate-tags-with-calls -m64 -gline-tables-only /b/swarming/w/ir/k/src/third_party/llvm/projects/compiler-rt/test/hwasan/TestCases/try-catch.cc -o /b/swarming/w/ir/k/src/third_party/llvm-bootstrap/projects/compiler-rt/test/hwasan/X86_64/TestCases/Output/try-catch.cc.tmp && /b/swarming/w/ir/k/src/third_party/llvm-bootstrap/projects/compiler-rt/test/hwasan/X86_64/TestCases/Output/try-catch.cc.tmp 2>&1 | FileCheck /b/swarming/w/ir/k/src/third_party/llvm/projects/compiler-rt/test/hwasan/TestCases/try-catch.cc --check-prefix=GOOD : 'RUN: at line 2'; /b/swarming/w/ir/k/src/third_party/llvm-bootstrap/./bin/clang --driver-mode=g++ -fsanitize=hwaddress -mllvm -hwasan-generate-tags-with-calls -m64 -gline-tables-only /b/swarming/w/ir/k/src/third_party/llvm/projects/compiler-rt/test/hwasan/TestCases/try-catch.cc -mllvm -hwasan-instrument-landing-pads=0 -o /b/swarming/w/ir/k/src/third_party/llvm-bootstrap/projects/compiler-rt/test/hwasan/X86_64/TestCases/Output/try-catch.cc.tmp && not /b/swarming/w/ir/k/src/third_party/llvm-bootstrap/projects/compiler-rt/test/hwasan/X86_64/TestCases/Output/try-catch.cc.tmp 2>&1 | FileCheck /b/swarming/w/ir/k/src/third_party/llvm/projects/compiler-rt/test/hwasan/TestCases/try-catch.cc --check-prefix=BAD

Exit Code: 1

Command Output (stderr):

/b/swarming/w/ir/k/src/third_party/llvm/projects/compiler-rt/test/hwasan/TestCases/try-catch.cc:53:11: error: GOOD: expected string not found in input // GOOD: hello ^

:1:1: note: scanning from here HWAddressSanitizer:DEADLYSIGNAL ^ :3:23: note: possible intended match here #​0 0x7fd274b58d88 in _Alloc_hider /build/gcc-4.8-zbxcSF/gcc-4.8-4.8.4/build/x86_64-linux-gnu/libstdc++-v3/include/bits/basic_string.h:275 ^ -- ******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. Testing Time: 302.74s ******************** Failing Tests (1): HWAddressSanitizer-x86_64 :: TestCases/try-catch.cc Expected Passes : 43521 Expected Failures : 123 Unsupported Tests : 11054 Unexpected Failures: 1 FAILED: CMakeFiles/check-all Is this due to our bots, or does the test fail anywhere? Are there bots running hwasan tests on the llvm buildbots somewhere?
eugenis commented 5 years ago

Should be fixed in https://reviews.llvm.org/rCRT361063

nico commented 5 years ago

Maybe the test only passes with libc++ but not with libstdc++?