<html>
<head>
<base href="https://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 --- - Parse error for boost thread with debug and femit-all-decls flags"
href="https://llvm.org/bugs/show_bug.cgi?id=24849">24849</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Parse error for boost thread with debug and femit-all-decls flags
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.5
</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>drago.krznaric@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>clang++-3.5 -c test.cpp -femit-all-decls -g
outputs
0 libLLVM-3.5.so.1 0x00007fd3464b3cd2 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1 libLLVM-3.5.so.1 0x00007fd3464b3ac4
2 libpthread.so.0 0x00007fd34517d340
3 libLLVM-3.5.so.1 0x00007fd345de9862 llvm::ValueHandleBase::AddToUseList() +
34
4 libLLVM-3.5.so.1 0x00007fd345dd173b llvm::MDNode::MDNode(llvm::LLVMContext&,
llvm::ArrayRef<llvm::Value*>, bool) + 171
5 libLLVM-3.5.so.1 0x00007fd345dd18d8
llvm::MDNode::getMDNode(llvm::LLVMContext&, llvm::ArrayRef<llvm::Value*>,
llvm::MDNode::FunctionLocalness, bool) + 312
6 libLLVM-3.5.so.1 0x00007fd345d237cd
llvm::DIBuilder::getOrCreateArray(llvm::ArrayRef<llvm::Value*>) + 13
7 libLLVM-3.5.so.1 0x00007fd345d23bb9 llvm::DIBuilder::finalize() + 985
8 clang 0x0000000000840984 clang::CodeGen::CGDebugInfo::finalize()
+ 612
9 clang 0x0000000000887671 clang::CodeGen::CodeGenModule::Release()
+ 417
10 clang 0x000000000082e3c1
11 clang 0x00000000009a95e3 clang::ParseAST(clang::Sema&, bool,
bool) + 483
12 clang 0x000000000082e842 clang::CodeGenAction::ExecuteAction() +
50
13 clang 0x00000000006c2d06 clang::FrontendAction::Execute() + 118
14 clang 0x00000000006a2e70
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 256
15 clang 0x000000000068dfa4
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1892
16 clang 0x0000000000689118 cc1_main(char const**, char const**,
char const*, void*) + 1288
17 clang 0x0000000000687a5f main + 8527
18 libc.so.6 0x00007fd3448afec5 __libc_start_main + 245
19 clang 0x0000000000687fc4
Stack dump:
0. Program arguments: /usr/lib/llvm-3.5/bin/clang -cc1 -triple
x86_64-pc-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier
-main-file-name test.cpp -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.24 -g
-dwarf-column-info -coverage-file /home/sigdkc/test.o -resource-dir
/usr/lib/llvm-3.5/bin/../lib/clang/3.5.0 -internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/x86_64-linux-gnu/c++/4.8
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/x86_64-linux-gnu/c++/4.8
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/backward
-internal-isystem /usr/local/include -internal-isystem
/usr/lib/llvm-3.5/bin/../lib/clang/3.5.0/include -internal-externc-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/include -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem /include
-internal-externc-isystem /usr/include -fdeprecated-macro
-fdebug-compilation-dir /home/sigdkc -ferror-limit 19 -fmessage-length 124
-femit-all-decls -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions
-fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o test.o -x c++
test.cpp
1. <eof> parser at end of file
2. Per-file LLVM IR generation
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
Ubuntu clang version 3.5.0-4ubuntu2~trusty2 (tags/RELEASE_350/final) (based on
LLVM 3.5.0)
Target: x86_64-pc-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://bugs.debian.org/">http://bugs.debian.org/</a> 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/test-62957c.cpp
clang: note: diagnostic msg: /tmp/test-62957c.sh
clang: note: diagnostic msg:
********************</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>