buildbot failure in LLVM on sanitizer-x86_64-linux

Hey Alexey,

This bot has been failing for a week, by the looks of it - what’s the deal?

+Sergey

The bot failed on (and looks like it still fails even after LLVM r236877) on AddressSanitizer-i386-linux :: TestCases/Linux/coverage-missing.cc.

Now it also has some crashes in X86 DAG->DAG Instruction Selection, though. +jyknight, I think it’s caused by LLVM r236850.

I’m sure it’s obvious and I’m just blind, but I can’t find the relevant part of that build that’s showing a crash. Can you help me out?

James Y Knight <jyknight@google.com> writes:

I'm sure it's obvious and I'm just blind, but I can't find the relevant part
of that build that's showing a crash. Can you help me out?

Search for "FAIL:" in the annotate->stdio link.

Right, but not any X86 DAG->DAG failures.

But, I see now, Alexey wasn’t talking about the result link at the beginning of the thread…which predated my change. But rather a later build, like, this link which shows much badness. :frowning:
http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux/builds/17821/steps/annotate/logs/stdio

Right, I meant this part:

clang-3.7: /mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/lib/IR/Type.cpp:305: static llvm::IntegerType* llvm::IntegerType::get(llvm::LLVMContext&, unsigned int): Assertion `NumBits >= MIN_INT_BITS && “bitwidth too small”’ failed.
0 clang-3.7 0x00000000016156e5 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
1 clang-3.7 0x0000000001614809
2 libpthread.so.0 0x00002b686ffd40a0
3 libc.so.6 0x00002b68709ae165 gsignal + 53
4 libc.so.6 0x00002b68709b13e0 abort + 384
5 libc.so.6 0x00002b68709a7311 __assert_fail + 241
6 clang-3.7 0x000000000132c7de llvm::IntegerType::get(llvm::LLVMContext&, unsigned int) + 446
7 clang-3.7 0x0000000001337339 llvm::EVT::getExtendedIntegerVT(llvm::LLVMContext&, unsigned int) + 9
8 clang-3.7 0x00000000018a8f42
9 clang-3.7 0x00000000018abdf2
10 clang-3.7 0x00000000018c31c7
11 clang-3.7 0x00000000018c510c
12 clang-3.7 0x00000000018c69fa llvm::SelectionDAG::Combine(llvm::CombineLevel, llvm::AliasAnalysis&, llvm::CodeGenOpt::Level) + 1338
13 clang-3.7 0x0000000001977bf2 llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 418
14 clang-3.7 0x000000000197bad6 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 1286
15 clang-3.7 0x000000000197d99c llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 1020
16 clang-3.7 0x0000000000da8134
17 clang-3.7 0x000000000130ea10 llvm::FPPassManager::runOnFunction(llvm::Function&) + 480
18 clang-3.7 0x000000000130edab llvm::FPPassManager::runOnModule(llvm::Module&) + 43
19 clang-3.7 0x000000000130f0a4 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 724
20 clang-3.7 0x0000000001a324ce clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_pwrite_stream*) + 1214
21 clang-3.7 0x0000000001a21c9c
22 clang-3.7 0x0000000001f425b3 clang::ParseAST(clang::Sema&, bool, bool) + 483
23 clang-3.7 0x0000000001a227cb clang::CodeGenAction::ExecuteAction() + 59
24 clang-3.7 0x000000000178ef36 clang::FrontendAction::Execute() + 118
25 clang-3.7 0x000000000176e699 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 345
26 clang-3.7 0x000000000181820e clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1982
27 clang-3.7 0x0000000000730968 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) + 1320
28 clang-3.7 0x000000000070424e main + 4446
29 libc.so.6 0x00002b687099aead __libc_start_main + 253
30 clang-3.7 0x000000000072d42d
Stack dump:
0. Program arguments: /mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/clang_build/bin/clang-3.7 -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name msan_test.cc -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -g -dwarf-column-info -ffunction-sections -fdata-sections -fno-unique-section-names -coverage-file /mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/clang_build/projects/compiler-rt/lib/msan/tests/msan_test.cc.x86_64-with-call.o -resource-dir /mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/clang_build/bin/…/lib/clang/3.7.0 -D GTEST_NO_LLVM_RAW_OSTREAM=1 -D GTEST_HAS_RTTI=0 -I /mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/libcxx/include -I /mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/utils/unittest/googletest/include -I /mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/utils/unittest/googletest -I /mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/compiler-rt/include -I /mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/compiler-rt/lib -I /mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/compiler-rt/lib/msan -internal-isystem /mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/clang_build/bin/…/include/c++/v1 -internal-isystem /usr/local/include -internal-isystem /mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/clang_build/bin/…/lib/clang/3.7.0/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O2 -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wno-long-long -Wno-maybe-uninitialized -Wno-comment -Wall -Wno-unknown-warning-option -Wno-deprecated-declarations -Wno-unused-variable -Wno-zero-length-array -Wno-uninitialized -Werror=sign-compare -pedantic -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/clang_build/projects/compiler-rt/lib/msan/tests -ferror-limit 19 -fmessage-length 0 -fvisibility-inlines-hidden -fsanitize=memory -fsanitize-blacklist=/mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/clang_build/bin/…/lib/clang/3.7.0/msan_blacklist.txt -fsanitize-memory-track-origins=2 -fno-assume-sane-operator-new -mstackrealign -fobjc-runtime=gcc -fdiagnostics-show-option -vectorize-loops -vectorize-slp -mllvm -msan-keep-going=1 -mllvm -msan-instrumentation-with-call-threshold=0 -o msan_test.cc.x86_64-with-call.o -x c++ /mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/compiler-rt/lib/msan/tests/msan_test.cc

  1. parser at end of file
  2. Code generation
  3. Running pass ‘Function Pass Manager’ on module ‘/mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/compiler-rt/lib/msan/tests/msan_test.cc’.
  4. Running pass ‘X86 DAG->DAG Instruction Selection’ on function ‘@_ZN37MemorySanitizer_memcpy_unaligned_Test8TestBodyEv
    clang-3.7: error: unable to execute command: Aborted
    clang-3.7: error: clang frontend command failed due to signal (use -v to see invocation)
    clang version 3.7.0 (trunk 236858)
    Target: x86_64-unknown-linux-gnu
    Thread model: posix
    clang-3.7: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
    clang-3.7: note: diagnostic msg:

+Sergey (for real this time)

I've disabled the test in r237049.

r237147 should fix it