[LLVMbugs] [Bug 15956] New: clang++ trunk segmentation fault

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri May 10 04:06:15 PDT 2013


            Bug ID: 15956
           Summary: clang++ trunk segmentation fault
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: stefan.walk at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

% clang++ -v
clang version 3.4 (trunk 181587)
Target: x86_64-unknown-linux-gnu
Thread model: posix

How to reproduce: (the -g makes it segfault, no segfault without -g)

% clang++ -g -std=c++11 -o crash2.o -c crash.ii
0  clang           0x0000000001f024e5 llvm::sys::PrintStackTrace(_IO_FILE*) +
1  clang           0x0000000001f029d3
2  libpthread.so.0 0x00007f88e26cc030
3  clang           0x0000000001963cd4
llvm::DIEEntry::EmitValue(llvm::AsmPrinter*, unsigned int) const + 4
4  clang           0x00000000019566a9 llvm::DwarfDebug::emitDIE(llvm::DIE*,
std::vector<llvm::DIEAbbrev*, std::allocator<llvm::DIEAbbrev*> >*) + 2153
5  clang           0x0000000001956718 llvm::DwarfDebug::emitDIE(llvm::DIE*,
std::vector<llvm::DIEAbbrev*, std::allocator<llvm::DIEAbbrev*> >*) + 2264
Stack dump:
0.    Program arguments: /home/walks/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name
crash.ii -mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64
-target-linker-version 2.22 -g -coverage-file
/mnt/physhome/programming/cxxchannels/build/crash2.o -resource-dir
/home/walks/bin/../lib/clang/3.4 -std=c++11 -fdeprecated-macro
-fdebug-compilation-dir /mnt/physhome/programming/cxxchannels/build
-ferror-limit 19 -fmessage-length 131 -mstackrealign -fobjc-runtime=gcc
-fobjc-default-synthesize-properties -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -backend-option -vectorize-loops
-o crash2.o -x c++-cpp-output crash.ii 
1.    <eof> parser at end of file
2.    Code generation
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal (use -v to see
clang version 3.4 (trunk 181587)
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: Error generating preprocessed source(s) - no
preprocessable inputs.

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/20130510/95e49df4/attachment.html>

More information about the llvm-bugs mailing list