This is an archive of the discontinued LLVM Phabricator instance.

tsan: add a test for stack init race
ClosedPublic

Authored by dvyukov on Sep 27 2021, 5:43 AM.

Diff Detail

Event Timeline

dvyukov requested review of this revision.Sep 27 2021, 5:43 AM
dvyukov created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptSep 27 2021, 5:43 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
melver accepted this revision.Sep 27 2021, 7:21 AM
This revision is now accepted and ready to land.Sep 27 2021, 7:21 AM
This revision was landed with ongoing or failed builds.Sep 27 2021, 7:40 AM
This revision was automatically updated to reflect the committed changes.
kda added a subscriber: kda.Sep 27 2021, 2:05 PM

Looks like this is breaking the bot: https://lab.llvm.org/buildbot/#/builders/70/builds/12193
Prepping revert...

To reproduce, follow directions here: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild

log snippet:

-- Testing: 434 tests, 80 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80..
FAIL: ThreadSanitizer-x86_64 :: stack_race3.cpp (389 of 434)
******************** TEST 'ThreadSanitizer-x86_64 :: stack_race3.cpp' FAILED ********************
Script:
--
: 'RUN: at line 1';      /b/sanitizer-x86_64-linux-autoconf/build/tsan_debug_build/./bin/clang  --driver-mode=g++ -fsanitize=thread -Wall  -m64   -gline-tables-only -I/b/sanitizer-x86_64-linux-autoconf/build/llvm-project/compiler-rt/test/tsan/../ -std=c++11 -I/b/sanitizer-x86_64-linux-autoconf/build/llvm-project/compiler-rt/test/tsan/../ -nostdinc++ -I/b/sanitizer-x86_64-linux-autoconf/build/tsan_debug_build/tools/clang/runtime/compiler-rt-bins/lib/tsan/libcxx_tsan_x86_64/include/c++/v1 -O1 /b/sanitizer-x86_64-linux-autoconf/build/llvm-project/compiler-rt/test/tsan/stack_race3.cpp -o /b/sanitizer-x86_64-linux-autoconf/build/tsan_debug_build/tools/clang/runtime/compiler-rt-bins/test/tsan/X86_64Config/Output/stack_race3.cpp.tmp && /b/sanitizer-x86_64-linux-autoconf/build/llvm-project/compiler-rt/test/tsan/deflake.bash 10  /b/sanitizer-x86_64-linux-autoconf/build/tsan_debug_build/tools/clang/runtime/compiler-rt-bins/test/tsan/X86_64Config/Output/stack_race3.cpp.tmp | FileCheck /b/sanitizer-x86_64-linux-autoconf/build/llvm-project/compiler-rt/test/tsan/stack_race3.cpp
--
Exit Code: 2
Command Output (stderr):
--
FileCheck error: '<stdin>' is empty.
FileCheck command line:  FileCheck /b/sanitizer-x86_64-linux-autoconf/build/llvm-project/compiler-rt/test/tsan/stack_race3.cpp
--
********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
********************
Failed Tests (1):
  ThreadSanitizer-x86_64 :: stack_race3.cpp