Open Bug 908317 Opened 11 years ago Updated 2 years ago

Clang crash on SVN head (void llvm::CompileUnit::createGlobalVariableDIE(const llvm::MDNode*): Assertion `VariableDIE && "Static member decl has no context?"' failed.)

Categories

(Firefox Build System :: General, defect)

defect

Tracking

(Not tracked)

People

(Reporter: gps, Unassigned)

References

Details

We've been seeing a LLVM/Clang crash on LLVM/Clang SVN head against m-c the last few days. The following log comes from my personal nightly builder.

clang: /home/jenkins-slave/workspace/llvm-release-assert-linux/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp:1356: void llvm::CompileUnit::createGlobalVariableDIE(const llvm::MDNode*): Assertion `VariableDIE && "Static member decl has no context?"' failed.
0  clang           0x00000000023c9c22 llvm::sys::PrintStackTrace(_IO_FILE*) + 34
1  clang           0x00000000023c9809
2  libpthread.so.0 0x00002aaaaacdfbd0
3  libc.so.6       0x00002aaaabb6e037 gsignal + 55
4  libc.so.6       0x00002aaaabb71698 abort + 328
5  libc.so.6       0x00002aaaabb66e03
6  libc.so.6       0x00002aaaabb66eb2
7  clang           0x0000000001ce32d4 llvm::CompileUnit::createGlobalVariableDIE(llvm::MDNode const*) + 4372
8  clang           0x0000000001cc0904 llvm::DwarfDebug::beginModule() + 708
9  clang           0x0000000001cc16c7 llvm::DwarfDebug::DwarfDebug(llvm::AsmPrinter*, llvm::Module*) + 2615
10 clang           0x0000000001cad68b llvm::AsmPrinter::doInitialization(llvm::Module&) + 603
11 clang           0x0000000002356297 llvm::FPPassManager::doInitialization(llvm::Module&) + 87
12 clang           0x000000000235be37 llvm::MPPassManager::runOnModule(llvm::Module&) + 167
13 clang           0x000000000235ddbf llvm::PassManagerImpl::run(llvm::Module&) + 223
14 clang           0x000000000086b8dc clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) + 3596
15 clang           0x000000000086912f
16 clang           0x00000000009f5f12 clang::ParseAST(clang::Sema&, bool, bool) + 514
17 clang           0x0000000000867f31 clang::CodeGenAction::ExecuteAction() + 97
18 clang           0x00000000006d0659 clang::FrontendAction::Execute() + 265
19 clang           0x00000000006afb85 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 357
20 clang           0x0000000000696842 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1874
21 clang           0x000000000068ebd8 cc1_main(char const**, char const**, char const*, void*) + 1208
22 clang           0x0000000000695cfd main + 5085
23 libc.so.6       0x00002aaaabb58ea5 __libc_start_main + 245
24 clang           0x000000000068da39
Stack dump:
0.	Program arguments: /home/jenkins-slave/workspace/llvm/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name nsUnknownDecoder.cpp -mrelocation-model pic -pic-level 2 -relaxed-aliasing -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -target-linker-version 2.23.2 -momit-leaf-frame-pointer -g -coverage-file <http://jenkins.gregoryszorc.com:9000/job/mozilla-central-linux-x64-optimized-llvm-tip/ws/obj/netwerk/streamconv/converters/nsUnknownDecoder.o> -resource-dir /home/jenkins-slave/workspace/llvm/bin/../lib/clang/3.4 -dependency-file .deps/nsUnknownDecoder.o.pp -MT nsUnknownDecoder.o -sys-header-deps -MP -include <http://jenkins.gregoryszorc.com:9000/job/mozilla-central-linux-x64-optimized-llvm-tip/ws/config/gcc_hidden.h> -include ../../../mozilla-config.h -D MOZ_GLUE_IN_PROGRAM -D MOZILLA_INTERNAL_API -D IMPL_LIBXUL -D STATIC_EXPORTABLE_JS_API -D NO_NSPR_10_SUPPORT -D NDEBUG -D TRIMMED -D MOZILLA_CLIENT -I ../../../dist/stl_wrappers -I ../../../dist/system_wrappers -I <http://jenkins.gregoryszorc.com:9000/job/mozilla-central-linux-x64-optimized-llvm-tip/ws/netwerk/base/src> -I <http://jenkins.gregoryszorc.com:9000/job/mozilla-central-linux-x64-optimized-llvm-tip/ws/netwerk/streamconv/converters> -I . -I ../../../dist/include -I <http://jenkins.gregoryszorc.com:9000/job/mozilla-central-linux-x64-optimized-llvm-tip/ws/obj/dist/include/nspr> -I <http://jenkins.gregoryszorc.com:9000/job/mozilla-central-linux-x64-optimized-llvm-tip/ws/obj/dist/include/nss> -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/x86_64-linux-gnu -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/backward -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/x86_64-linux-gnu/c++/4.7 -internal-isystem /usr/local/include -internal-isystem /home/jenkins-slave/workspace/llvm/bin/../lib/clang/3.4/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -Os -Wall -Wpointer-arith -Woverloaded-virtual -Werror=return-type -Wtype-limits -Wempty-body -Wsign-compare -Wno-invalid-offsetof -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 <http://jenkins.gregoryszorc.com:9000/job/mozilla-central-linux-x64-optimized-llvm-tip/ws/obj/netwerk/streamconv/converters> -ferror-limit 19 -fmessage-length 0 -pthread -mstackrealign -fno-rtti -fobjc-runtime=gcc -fobjc-default-synthesize-properties -fdiagnostics-show-option -vectorize-loops -vectorize-slp -o nsUnknownDecoder.o -x c++ <http://jenkins.gregoryszorc.com:9000/job/mozilla-central-linux-x64-optimized-llvm-tip/ws/netwerk/streamconv/converters/nsUnknownDecoder.cpp> 
1.	<eof> parser at end of file
2.	Code generation
clang: error: unable to execute command: Aborted (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 3.4 (trunk 188995)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang: 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: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/nsUnknownDecoder-39cba5.cpp
clang: note: diagnostic msg: /tmp/nsUnknownDecoder-39cba5.sh
clang: note: diagnostic msg: 

********************

In the directory  <http://jenkins.gregoryszorc.com:9000/job/mozilla-central-linux-x64-optimized-llvm-tip/ws/obj/netwerk/streamconv/converters>
The following command failed to execute properly:
/home/jenkins-slave/workspace/llvm/bin/clang++ -o nsUnknownDecoder.o -c -I../../../dist/stl_wrappers -I../../../dist/system_wrappers -include <http://jenkins.gregoryszorc.com:9000/job/mozilla-central-linux-x64-optimized-llvm-tip/ws/config/gcc_hidden.h> -DMOZ_GLUE_IN_PROGRAM -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -DSTATIC_EXPORTABLE_JS_API -DNO_NSPR_10_SUPPORT -I<http://jenkins.gregoryszorc.com:9000/job/mozilla-central-linux-x64-optimized-llvm-tip/ws/netwerk/base/src> -I<http://jenkins.gregoryszorc.com:9000/job/mozilla-central-linux-x64-optimized-llvm-tip/ws/netwerk/streamconv/converters> -I. -I../../../dist/include -I<http://jenkins.gregoryszorc.com:9000/job/mozilla-central-linux-x64-optimized-llvm-tip/ws/obj/dist/include/nspr> -I<http://jenkins.gregoryszorc.com:9000/job/mozilla-central-linux-x64-optimized-llvm-tip/ws/obj/dist/include/nss> -fPIC -Qunused-arguments -Qunused-arguments -Wall -Wpointer-arith -Woverloaded-virtual -Werror=return-type -Wtype-limits -Wempty-body -Wsign-compare -Wno-invalid-offsetof -Wno-c++0x-extensions -Wno-extended-offsetof -Wno-unknown-warning-option -Wno-return-type-c-linkage -Wno-mismatched-tags -fno-exceptions -fno-strict-aliasing -fno-rtti -fno-exceptions -std=gnu++0x -pthread -pipe -DNDEBUG -DTRIMMED -g -Os -freorder-blocks -fomit-frame-pointer -Qunused-arguments -DMOZILLA_CLIENT -include ../../../mozilla-config.h -MD -MP -MF .deps/nsUnknownDecoder.o.pp <http://jenkins.gregoryszorc.com:9000/job/mozilla-central-linux-x64-optimized-llvm-tip/ws/netwerk/streamconv/converters/nsUnknownDecoder.cpp>
make[7]: *** [nsUnknownDecoder.o] Error 1
make[6]: *** [libs] Error 2
make[5]: *** [streamconv_libs] Error 2
make[5]: *** Waiting for unfinished jobs....
I think you should file this bug in the LLVM bugzilla.  Attaching the preprocessed source and mentioning the clang version will be helpful.
Product: Core → Firefox Build System
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.