Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

clang: error: unable to execute command: Illegal instruction #13954

Open Quuxplusone opened 12 years ago

Quuxplusone commented 12 years ago
Bugzilla Link PR13877
Status NEW
Importance P normal
Reported by ludwig.huegelschaefer@gmx.de
Reported on 2012-09-19 13:53:59 -0700
Last modified on 2012-10-03 22:02:34 -0700
Version 3.1
Hardware Macintosh MacOS X
CC llvm-bugs@lists.llvm.org, rafael@espindo.la
Fixed by commit(s)
Attachments Scripts_and_preprocessed.zip (128916 bytes, application/x-zip-compressed)
Blocks
Blocked by
See also
Created attachment 9236
Preprocessed source(s) and associated run script(s)

Hi, while compiling Thunderbird trunk, clang 3.1 (obtained by macports)
stumbles:
-------------------------------------------------
Assertion failed: (isa<Argument>(Val) && "Unknown live-in to the entry block"),
function solveBlockValueNonLocal, file LazyValueInfo.cpp, line 605.
0  libLLVM-3.1.dylib 0x0000000102d806e2 PrintStackTrace(void*) + 34
1  libLLVM-3.1.dylib 0x0000000102d81563 SignalHandler(int) + 707
2  libSystem.B.dylib 0x00007fff85ee71ba _sigtramp + 26
3  libSystem.B.dylib 0x000100000225c442 _sigtramp + 2084000418
4  libLLVM-3.1.dylib 0x0000000101f02242 __assert_rtn + 66
5  libLLVM-3.1.dylib 0x000000010225e35d (anonymous
namespace)::LazyValueInfoCache::solveBlockValueNonLocal((anonymous
namespace)::LVILatticeVal&, llvm::Value*, llvm::BasicBlock*) + 1389
6  libLLVM-3.1.dylib 0x000000010225f1bb (anonymous
namespace)::LazyValueInfoCache::solve() + 1467
7  libLLVM-3.1.dylib 0x000000010225f758 (anonymous
namespace)::LazyValueInfoCache::getValueOnEdge(llvm::Value*, llvm::BasicBlock*,
llvm::BasicBlock*) + 248
8  libLLVM-3.1.dylib 0x000000010225febc
llvm::LazyValueInfo::getConstantOnEdge(llvm::Value*, llvm::BasicBlock*,
llvm::BasicBlock*) + 76
9  libLLVM-3.1.dylib 0x0000000102a2f170 (anonymous
namespace)::CorrelatedValuePropagation::runOnFunction(llvm::Function&) + 512
10 libLLVM-3.1.dylib 0x00000001026f1de0
llvm::FPPassManager::runOnFunction(llvm::Function&) + 704
11 libLLVM-3.1.dylib 0x0000000102fba9f0 (anonymous
namespace)::CGPassManager::RunPassOnSCC(llvm::Pass*, llvm::CallGraphSCC&,
llvm::CallGraph&, bool&, bool&) + 272
12 libLLVM-3.1.dylib 0x0000000102fbb231 (anonymous
namespace)::CGPassManager::runOnModule(llvm::Module&) + 977
13 libLLVM-3.1.dylib 0x00000001026f3b6c
llvm::MPPassManager::runOnModule(llvm::Module&) + 604
14 libLLVM-3.1.dylib 0x00000001026f3e72
llvm::PassManagerImpl::run(llvm::Module&) + 178
15 libLLVM-3.1.dylib 0x00000001026f3f5d llvm::PassManager::run(llvm::Module&) +
13
16 clang             0x00000001001d124b
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 1275
17 clang             0x00000001003351c3
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 691
18 clang             0x0000000100384554 clang::ParseAST(clang::Sema&, bool,
bool) + 500
19 clang             0x0000000100332b7c clang::CodeGenAction::ExecuteAction() +
60
20 clang             0x00000001000328dd
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 413
21 clang             0x000000010000cc9d
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1677
22 clang             0x0000000100003318 cc1_main(char const**, char const**,
char const*, void*) + 1016
23 clang             0x000000010000ba6e main + 4798
24 clang             0x0000000100001b88 start + 52
Stack dump:
0.  Program arguments: /opt/local/libexec/llvm-3.1/bin/clang -cc1 -triple x86_64-
apple-macosx10.6.0 -emit-obj -disable-free -main-file-name
nsMsgMaildirStore.cpp -pic-level 2 -relaxed-aliasing -masm-verbose -munwind-
tables -target-cpu core2 -target-linker-version 127.2 -g -ffunction-sections -
fdata-sections -coverage-file nsMsgMaildirStore.o -resource-dir
/opt/local/libexec/llvm-3.1/bin/../lib/clang/3.1 -dependency-file
.deps/nsMsgMaildirStore.pp -MT nsMsgMaildirStore.o -sys-header-deps -isysroot
/Developer/SDKs/MacOSX10.6.sdk -include ../../../comm-config.h -D
MOZILLA_INTERNAL_API -D _IMPL_NS_COM -D EXPORT_XPT_API -D EXPORT_XPTC_API -D
_IMPL_NS_GFX -D _IMPL_NS_WIDGET -D IMPL_XREAPI -D IMPL_NS_NET -D IMPL_THEBES -D
ZLIB_INTERNAL -D MOZ_THUNDERBIRD=1 -D OSTYPE="Darwin10.8.0" -D OSARCH=Darwin -D
HAVE_MOVEMAIL -D NO_X11 -D NDEBUG -D TRIMMED -D MOZILLA_CLIENT -I
/Users/em/em/nightlies/trunk_64/mozilla/mailnews/local/src -I . -I
../../../mozilla/dist/include -I ../../../mozilla/dist/include/nsprpub -I
/Users/em/em/nightlies/trunk_64/build-lh-objdir/mozilla/dist/include/nspr -I
/Users/em/em/nightlies/trunk_64/build-lh-objdir/mozilla/dist/include/nss -
fmodule-cache-path /var/tmp/clang-module-cache -O3 -Wall -Wpointer-arith -
Woverloaded-virtual -Werror=return-type -Wtype-limits -Wempty-body -Wno-ctor-
dtor-privacy -Wno-overlength-strings -Wno-invalid-offsetof -Wno-variadic-macros
-Wno-c++0x-extensions -Wno-extended-offsetof -Wno-unknown-warning-option -Wno-
return-type-c-linkage -Wno-mismatched-tags -std=gnu++0x -fdeprecated-macro -
fdebug-compilation-dir /Users/em/em/nightlies/trunk_64/build-lh-
objdir/mailnews/local/src -ferror-limit 19 -fmessage-length 80 -fvisibility
hidden -pthread -stack-protector 1 -mstackrealign -fblocks -fno-rtti -fobjc-
dispatch-method=mixed -fobjc-default-synthesize-properties -fno-common -
fdiagnostics-show-option -fcolor-diagnostics -o nsMsgMaildirStore.o -x c++
/Users/em/em/nightlies/trunk_64/mozilla/mailnews/local/src/nsMsgMaildirStore.cpp
1.  <eof> parser at end of file
2.  Per-module optimization passes
3.  Running pass 'CallGraph Pass Manager' on module
'/Users/em/em/nightlies/trunk_64/mozilla/mailnews/local/src/nsMsgMaildirStore.cpp'.
4.  Running pass 'Value Propagation' on function
'@_ZN17nsMsgMaildirStore10CopyFolderEP12nsIMsgFolderS1_bP12nsIMsgWindowP25nsIMsgCopyServiceListener'
clang: error: unable to execute command: Illegal instruction
Quuxplusone commented 12 years ago

Attached Scripts_and_preprocessed.zip (128916 bytes, application/x-zip-compressed): Preprocessed source(s) and associated run script(s)

Quuxplusone commented 12 years ago

I don't get a crash with clang 165190. Can you try that one?