[LLVMbugs] [Bug 19804] New: clang crash

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue May 20 07:19:59 PDT 2014


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

            Bug ID: 19804
           Summary: clang crash
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: pcaspers1973 at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

/bin/bash ../../libtool  --tag=CXX   --mode=compile clang++ -DHAVE_CONFIG_H -I.
-I../../ql  -I../.. -I../.. -I/home/peter/boost_1_55_0  -O2 -g -Wall -std=c++11
-fsanitize=address,undefined,integer,unsigned-integer-overflow,vptr -MT date.lo
-MD -MP -MF .deps/date.Tpo -c -o date.lo date.cpp
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I../../ql -I../.. -I../..
-I/home/peter/boost_1_55_0 -O2 -g -Wall -std=c++11
-fsanitize=address,undefined,integer,unsigned-integer-overflow,vptr -MT date.lo
-MD -MP -MF .deps/date.Tpo -c date.cpp  -fPIC -DPIC -o .libs/date.o
clang: DwarfUnit.cpp:756: bool isUnsignedDIType(llvm::DwarfDebug*,
llvm::DIType): Assertion `DTy.getTag() == dwarf::DW_TAG_enumeration_type'
failed.
0  clang           0x0000000002551c22 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1  clang           0x0000000002551844
2  libpthread.so.0 0x00002af54d9f3bb0
3  libc.so.6       0x00002af54e882f77 gsignal + 55
4  libc.so.6       0x00002af54e8865e8 abort + 328
5  libc.so.6       0x00002af54e87bd43
6  libc.so.6       0x00002af54e87bdf2
7  clang           0x0000000001e4a52b
8  clang           0x0000000001e4a462
9  clang           0x0000000001e4a572
llvm::DwarfUnit::addConstantValue(llvm::DIE&, llvm::MachineOperand const&,
llvm::DIType) + 34
10 clang           0x0000000001e4e0e3
llvm::DwarfUnit::constructVariableDIEImpl(llvm::DbgVariable const&,
llvm::AbstractOrInlined) + 851
11 clang           0x0000000001e4e161
llvm::DwarfUnit::constructVariableDIE(llvm::DbgVariable&,
llvm::AbstractOrInlined) + 17
12 clang           0x0000000001e3399d
llvm::DwarfDebug::createScopeChildrenDIE(llvm::DwarfCompileUnit&,
llvm::LexicalScope*, llvm::SmallVectorImpl<std::unique_ptr<llvm::DIE,
std::default_delete<llvm::DIE> > >&) + 477
13 clang           0x0000000001e333a6
llvm::DwarfDebug::constructScopeDIE(llvm::DwarfCompileUnit&,
llvm::LexicalScope*) + 214
14 clang           0x0000000001e33a22
llvm::DwarfDebug::createScopeChildrenDIE(llvm::DwarfCompileUnit&,
llvm::LexicalScope*, llvm::SmallVectorImpl<std::unique_ptr<llvm::DIE,
std::default_delete<llvm::DIE> > >&) + 610
15 clang           0x0000000001e33dca
llvm::DwarfDebug::createAndAddScopeChildren(llvm::DwarfCompileUnit&,
llvm::LexicalScope*, llvm::DIE&) + 74
16 clang           0x0000000001e3436d
llvm::DwarfDebug::constructSubprogramScopeDIE(llvm::DwarfCompileUnit&,
llvm::LexicalScope*) + 125
17 clang           0x0000000001e3f2a9
18 clang           0x0000000001e2345d llvm::AsmPrinter::EmitFunctionBody() +
4541
19 clang           0x0000000001bcd501
20 clang           0x00000000024e689f
llvm::FPPassManager::runOnFunction(llvm::Function&) + 655
21 clang           0x00000000024e6d7b
llvm::FPPassManager::runOnModule(llvm::Module&) + 43
22 clang           0x00000000024e70bd
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 797
23 clang           0x0000000000a30c7e
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) +
3022
24 clang           0x0000000000a2b70f
25 clang           0x0000000000bb45db clang::ParseAST(clang::Sema&, bool, bool)
+ 507
26 clang           0x0000000000a2c2fe clang::CodeGenAction::ExecuteAction() +
78
27 clang           0x00000000008af0f6 clang::FrontendAction::Execute() + 150
28 clang           0x000000000088eac0
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 352
29 clang           0x0000000000877b21
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1921
30 clang           0x00000000008710d8 cc1_main(char const**, char const**, char
const*, void*) + 1304
31 clang           0x000000000084ca74 main + 756
32 libc.so.6       0x00002af54e86dde5 __libc_start_main + 245
33 clang           0x000000000086fdfa
Stack dump:
0.    Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name date.cpp
-mrelocation-model pic -pic-level 2 -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64
-target-linker-version 2.23.52.20130913 -momit-leaf-frame-pointer -g
-coverage-file /home/peter/quantlib/QuantLib/ql/time/.libs/date.o -resource-dir
/usr/local/bin/../lib/clang/3.5.0 -dependency-file .deps/date.Tpo
-sys-header-deps -MP -MT date.lo -D HAVE_CONFIG_H -D PIC -I . -I ../../ql -I
../.. -I ../.. -I /home/peter/boost_1_55_0 -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8 -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/x86_64-linux-gnu
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/backward
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/x86_64-linux-gnu/c++/4.8
-internal-isystem /usr/local/include -internal-isystem
/usr/local/bin/../lib/clang/3.5.0/include -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem /include
-internal-externc-isystem /usr/include -O2 -Wall -std=c++11 -fdeprecated-macro
-fdebug-compilation-dir /home/peter/quantlib/QuantLib/ql/time -ferror-limit 19
-fmessage-length 110
-fsanitize=address,init-order,use-after-return,alignment,array-bounds,bool,enum,float-cast-overflow,float-divide-by-zero,function,integer-divide-by-zero,null,object-size,return,shift,signed-integer-overflow,unreachable,vla-bound,vptr,unsigned-integer-overflow
-mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -vectorize-loops -vectorize-slp -o .libs/date.o -x
c++ date.cpp 
1.    <eof> parser at end of file
2.    Code generation
3.    Running pass 'Function Pass Manager' on module 'date.cpp'.
4.    Running pass 'X86 Assembly / Object Emitter' on function
'@_ZNK5boost14iterator_rangeIN9__gnu_cxx17__normal_iteratorIPcSsEEEcvMS5_S4_Ev'
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.5.0 (trunk 209068)
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/date-fc973b.cpp
clang: note: diagnostic msg: /tmp/date-fc973b.sh
clang: note: diagnostic msg:

-- 
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/20140520/1910588f/attachment.html>


More information about the llvm-bugs mailing list