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



Firefox Build System
5 years ago
4 months ago


(Reporter: gps, Unassigned)


Firefox Tracking Flags

(Not tracked)




5 years ago
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 0x00002aaaaacdfbd0
3       0x00002aaaabb6e037 gsignal + 55
4       0x00002aaaabb71698 abort + 328
5       0x00002aaaabb66e03
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       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 <> -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 <> -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 <> -I <> -I . -I ../../../dist/include -I <> -I <> -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 <> -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++ <> 
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 and include the crash backtrace, preprocessed source, and associated run script.
clang: note: diagnostic msg: 

Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/nsUnknownDecoder-39cba5.cpp
clang: note: diagnostic msg: /tmp/
clang: note: diagnostic msg: 


In the directory  <>
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 <> -DMOZ_GLUE_IN_PROGRAM -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -DSTATIC_EXPORTABLE_JS_API -DNO_NSPR_10_SUPPORT -I<> -I<> -I. -I../../../dist/include -I<> -I<> -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 <>
make[7]: *** [nsUnknownDecoder.o] Error 1
make[6]: *** [libs] Error 2
make[5]: *** [streamconv_libs] Error 2
make[5]: *** Waiting for unfinished jobs....

Comment 1

5 years ago
I think you should file this bug in the LLVM bugzilla.  Attaching the preprocessed source and mentioning the clang version will be helpful.


4 months ago
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.