<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - clang++ trunk segmentation fault"
   href="http://llvm.org/bugs/show_bug.cgi?id=15956">15956</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang++ trunk segmentation fault
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>C++
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>stefan.walk@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>% 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*) +
37
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
invocation)
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
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg: Error generating preprocessed source(s) - no
preprocessable inputs.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>