llvm / llvm-project

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

between r241513 and r241594, clang 3.7.0svn now crashes building clang-tools-extra #24428

Closed llvmbot closed 9 years ago

llvmbot commented 9 years ago
Bugzilla Link 24054
Resolution DUPLICATE
Resolved on Jul 07, 2015 14:39
Version trunk
OS MacOS X
Attachments URL to bzip2 archive of preprocessed source for clang 3.7.0svn compiler crash, associated run script for ARMISelLowering-ab6090.cpp
Reporter LLVM Bugzilla Contributor
CC @majnemer

Extended Description

On x86_64-apple-darwin14 at r241513, the clang compiler from a stage1 build successfully built clang-tools-extra as expected. At r241594, a regression is now present where the stage 1 clang 3.7.0svn compiler now crashes in the build of clang-tools-extra as follows...

Assertion failed: (Val && "isa<> used on a null pointer"), function doit, file /sw/src/fink.build/llvm37-3.7.0-1/llvm-3.7.0.src/include/llvm/Support/Casting.h, line 95. 0 libLLVMSupport.3.7.0.dylib 0x00000001087e9e09 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 57 1 libLLVMSupport.3.7.0.dylib 0x00000001087ea9fb SignalHandler(int) + 875 2 libsystem_platform.dylib 0x00007fff97427f1a _sigtramp + 26 3 libsystem_platform.dylib 0x00007fff58cdc578 _sigtramp + 3247130232 4 libLLVMSupport.3.7.0.dylib 0x00000001087ea5e6 abort + 22 5 libLLVMSupport.3.7.0.dylib 0x00000001087ea5c1 __assert_rtn + 81 6 libLLVMTransformUtils.3.7.0.dylib 0x0000000108870236 llvm::ConstantFoldTerminator(llvm::BasicBlock, bool, llvm::TargetLibraryInfo const) + 3782 7 libLLVMScalarOpts.3.7.0.dylib 0x000000010867905b (anonymous namespace)::IPSCCP::runOnModule(llvm::Module&) + 6043 8 libLLVMCore.3.7.0.dylib 0x0000000108131aa3 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 1123 9 libclangCodeGen.3.7.0.dylib 0x0000000109ea94da clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module, clang::BackendAction, llvm::raw_pwrite_stream) + 7866 10 libclangCodeGen.3.7.0.dylib 0x000000010a0347f2 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 514 11 libclangParse.3.7.0.dylib 0x0000000109568ed4 clang::ParseAST(clang::Sema&, bool, bool) + 468 12 libclangFrontend.3.7.0.dylib 0x0000000108c76aab clang::FrontendAction::Execute() + 75 13 libclangFrontend.3.7.0.dylib 0x0000000108c408ac clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 956 14 libclangFrontendTool.3.7.0.dylib 0x0000000108d1136c clang::ExecuteCompilerInvocation(clang::CompilerInstance) + 4140 15 clang-3.7 0x0000000106f2d338 cc1_main(llvm::ArrayRef<char const>, char const, void) + 936 16 clang-3.7 0x0000000106f2bde0 main + 11488 17 libdyld.dylib 0x00007fff901a45c9 start + 1 18 libdyld.dylib 0x0000000000000053 start + 1877326475 Stack dump:

  1. Program arguments: /sw/src/fink.build/llvm37-3.7.0-1/build/stage1/bin/clang-3.7 -cc1 -triple x86_64-apple-macosx10.10.0 -emit-obj -disable-free -main-file-name ARMISelLowering.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 242.2 -dwarf-column-info -coverage-file /sw/src/fink.build/llvm37-3.7.0-1/build/stage2/lib/Target/ARM/CMakeFiles/LLVMARMCodeGen.dir/ARMISelLowering.cpp.o -resource-dir /sw/src/fink.build/llvm37-3.7.0-1/build/stage1/bin/../lib/clang/3.7.0 -cxx-isystem /sw/src/fink.build/llvm37-3.7.0-1/llvm-3.7.0.src/../libcxx-3.7.0.src/include -D GTEST_HAS_RTTI=0 -D STDC_CONSTANT_MACROS -D STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS -D NDEBUG -I /sw/src/fink.build/llvm37-3.7.0-1/build/stage2/lib/Target/ARM -I /sw/src/fink.build/llvm37-3.7.0-1/llvm-3.7.0.src/lib/Target/ARM -I /sw/src/fink.build/llvm37-3.7.0-1/build/stage2/include -I /sw/src/fink.build/llvm37-3.7.0-1/llvm-3.7.0.src/include -stdlib=libc++ -O3 -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wno-long-long -Wnon-virtual-dtor -pedantic -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /sw/src/fink.build/llvm37-3.7.0-1/build/stage2/lib/Target/ARM -ferror-limit 19 -fmessage-length 141 -fvisibility-inlines-hidden -stack-protector 1 -mstackrealign -fblocks -fno-rtti -fobjc-runtime=macosx-10.10.0 -fencode-extended-block-signature -fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o CMakeFiles/LLVMARMCodeGen.dir/ARMISelLowering.cpp.o -x c++ /sw/src/fink.build/llvm37-3.7.0-1/llvm-3.7.0.src/lib/Target/ARM/ARMISelLowering.cpp
  2. parser at end of file
  3. Per-module optimization passes
  4. Running pass 'Interprocedural Sparse Conditional Constant Propagation' on module '/sw/src/fink.build/llvm37-3.7.0-1/llvm-3.7.0.src/lib/Target/ARM/ARMISelLowering.cpp'. clang-3.7: error: unable to execute command: Illegal instruction: 4 clang-3.7: error: clang frontend command failed due to signal (use -v to see invocation) clang version 3.7.0 (trunk) Target: x86_64-apple-darwin14.4.0 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:

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang-3.7: note: diagnostic msg: /var/folders/nm/5lklm6011cz5jb2ms9b_ynl00000ks/T/ARMISelLowering-ab6090.cpp clang-3.7: note: diagnostic msg: /var/folders/nm/5lklm6011cz5jb2ms9b_ynl00000ks/T/ARMISelLowering-ab6090.sh clang-3.7: note: diagnostic msg:


991901f3-cc14-4404-b340-165691b62a58 commented 9 years ago

This bug has been marked as a duplicate of bug llvm/llvm-project#24427

llvmbot commented 9 years ago

Regression not present at r241565.