[LLVMbugs] [Bug 17051] New: Crash: llvm::CompileUnit::createGlobalVariableDIE(const llvm::MDNode*): Assertion `VariableDIE && "Static member decl has no context?"' failed

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Sep 1 10:03:43 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=17051

            Bug ID: 17051
           Summary: Crash:
                    llvm::CompileUnit::createGlobalVariableDIE(const
                    llvm::MDNode*): Assertion `VariableDIE && "Static
                    member decl has no context?"' failed
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
          Assignee: unassignedbugs at nondot.org
          Reporter: gregory.szorc at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

I've been encountering this crash for the past few weeks when building Firefox:

clang:
/home/jenkins-slave/workspace/llvm-release-assert-linux/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp:1389:
void llvm::CompileUnit::createGlobalVariableDIE(const llvm::MDNode*): Assertion
`VariableDIE && "Static member decl has no context?"' failed.
0  clang           0x00000000023e44c2 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1  clang           0x00000000023e40a9
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           0x0000000001cf6a83
llvm::CompileUnit::createGlobalVariableDIE(llvm::MDNode const*) + 3427
8  clang           0x0000000001cd4ad4 llvm::DwarfDebug::beginModule() + 708
9  clang           0x0000000001cd584d
llvm::DwarfDebug::DwarfDebug(llvm::AsmPrinter*, llvm::Module*) + 2541
10 clang           0x0000000001cc263b
llvm::AsmPrinter::doInitialization(llvm::Module&) + 603
11 clang           0x0000000002370af7
llvm::FPPassManager::doInitialization(llvm::Module&) + 87
12 clang           0x0000000002376697
llvm::MPPassManager::runOnModule(llvm::Module&) + 167
13 clang           0x000000000237861f llvm::PassManagerImpl::run(llvm::Module&)
+ 223
14 clang           0x000000000086d5cc
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 3596
15 clang           0x000000000086ae1f
16 clang           0x00000000009f8822 clang::ParseAST(clang::Sema&, bool, bool)
+ 514
17 clang           0x0000000000869c21 clang::CodeGenAction::ExecuteAction() +
97
18 clang           0x00000000006d1879 clang::FrontendAction::Execute() + 265
19 clang           0x00000000006b0d75
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 357
nsDeleteDir.o
20 clang           0x0000000000697962
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1874
21 clang           0x000000000068fcf8 cc1_main(char const**, char const**, char
const*, void*) + 1208
22 clang           0x0000000000696e1d main + 5085
23 libc.so.6       0x00002aaaabb58ea5 __libc_start_main + 245
24 clang           0x000000000068eb59
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
/home/jenkins-slave/workspace/mozilla-central-linux-x64-optimized-llvm-tip/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
/home/jenkins-slave/workspace/mozilla-central-linux-x64-optimized-llvm-tip/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 MOZILLA_CLIENT -D NDEBUG -D TRIMMED -I
../../../dist/stl_wrappers -I ../../../dist/system_wrappers -I
/home/jenkins-slave/workspace/mozilla-central-linux-x64-optimized-llvm-tip/netwerk/base/src
-I
/home/jenkins-slave/workspace/mozilla-central-linux-x64-optimized-llvm-tip/netwerk/streamconv/converters
-I . -I ../../../dist/include -I
/home/jenkins-slave/workspace/mozilla-central-linux-x64-optimized-llvm-tip/obj/dist/include/nspr
-I
/home/jenkins-slave/workspace/mozilla-central-linux-x64-optimized-llvm-tip/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
/home/jenkins-slave/workspace/mozilla-central-linux-x64-optimized-llvm-tip/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++
/home/jenkins-slave/workspace/mozilla-central-linux-x64-optimized-llvm-tip/netwerk/streamconv/converters/nsUnknownDecoder.cpp 
1.    <eof> parser at end of file
2.    Code generation
nsDiskCacheBinding.o
libnkdevice_s.a.desc
nsInputStreamChannel.o
nsFileChannel.o
nsFileProtocolHandler.o
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 189728)
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-836868.cpp
clang: note: diagnostic msg: /tmp/nsUnknownDecoder-836868.sh
clang: note: diagnostic msg: 

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

In the directory 
/home/jenkins-slave/workspace/mozilla-central-linux-x64-optimized-llvm-tip/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
/home/jenkins-slave/workspace/mozilla-central-linux-x64-optimized-llvm-tip/config/gcc_hidden.h
-DMOZ_GLUE_IN_PROGRAM -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL
-DSTATIC_EXPORTABLE_JS_API -DNO_NSPR_10_SUPPORT
-I/home/jenkins-slave/workspace/mozilla-central-linux-x64-optimized-llvm-tip/netwerk/base/src
-I/home/jenkins-slave/workspace/mozilla-central-linux-x64-optimized-llvm-tip/netwerk/streamconv/converters
-I. -I../../../dist/include
-I/home/jenkins-slave/workspace/mozilla-central-linux-x64-optimized-llvm-tip/obj/dist/include/nspr
-I/home/jenkins-slave/workspace/mozilla-central-linux-x64-optimized-llvm-tip/obj/dist/include/nss
-fPIC -Qunused-arguments -DMOZILLA_CLIENT -include ../../../mozilla-config.h
-MD -MP -MF .deps/nsUnknownDecoder.o.pp -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
/home/jenkins-slave/workspace/mozilla-central-linux-x64-optimized-llvm-tip/netwerk/streamconv/converters/nsUnknownDecoder.cpp

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130901/88097e99/attachment.html>


More information about the llvm-bugs mailing list