<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 crash while building libcxx"
href="http://llvm.org/bugs/show_bug.cgi?id=17943">17943</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Clang crash while building libcxx
</td>
</tr>
<tr>
<th>Product</th>
<td>libc++
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</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>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>hhinnant@apple.com
</td>
</tr>
<tr>
<th>Reporter</th>
<td>qiwei.uk@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Building svn updated libcxx trunk as usual with latest Clang 3.4 from
llvm.org/apt on Debian Wheezy.
Compiler crashed. See below and attached files.
---------------
+ clang++ -c -g -O3 -fPIC -nostdinc++ -std=c++11 -fstrict-aliasing -Wall
-Wextra -Wshadow -Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4
-I../include ../src/algorithm.cpp
+ clang++ -c -g -O3 -fPIC -nostdinc++ -std=c++11 -fstrict-aliasing -Wall
-Wextra -Wshadow -Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4
-I../include ../src/bind.cpp
+ clang++ -c -g -O3 -fPIC -nostdinc++ -std=c++11 -fstrict-aliasing -Wall
-Wextra -Wshadow -Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4
-I../include ../src/chrono.cpp
+ clang++ -c -g -O3 -fPIC -nostdinc++ -std=c++11 -fstrict-aliasing -Wall
-Wextra -Wshadow -Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4
-I../include ../src/condition_variable.cpp
+ clang++ -c -g -O3 -fPIC -nostdinc++ -std=c++11 -fstrict-aliasing -Wall
-Wextra -Wshadow -Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4
-I../include ../src/debug.cpp
+ clang++ -c -g -O3 -fPIC -nostdinc++ -std=c++11 -fstrict-aliasing -Wall
-Wextra -Wshadow -Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4
-I../include ../src/exception.cpp
+ clang++ -c -g -O3 -fPIC -nostdinc++ -std=c++11 -fstrict-aliasing -Wall
-Wextra -Wshadow -Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4
-I../include ../src/future.cpp
+ clang++ -c -g -O3 -fPIC -nostdinc++ -std=c++11 -fstrict-aliasing -Wall
-Wextra -Wshadow -Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4
-I../include ../src/hash.cpp
+ clang++ -c -g -O3 -fPIC -nostdinc++ -std=c++11 -fstrict-aliasing -Wall
-Wextra -Wshadow -Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4
-I../include ../src/ios.cpp
+ clang++ -c -g -O3 -fPIC -nostdinc++ -std=c++11 -fstrict-aliasing -Wall
-Wextra -Wshadow -Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4
-I../include ../src/iostream.cpp
+ clang++ -c -g -O3 -fPIC -nostdinc++ -std=c++11 -fstrict-aliasing -Wall
-Wextra -Wshadow -Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4
-I../include ../src/locale.cpp
0 libLLVM-3.4.so.1 0x00007f0878c62602 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1 libLLVM-3.4.so.1 0x00007f0878c623f9
2 libpthread.so.0 0x00007f08778e3030
3 libLLVM-3.4.so.1 0x00007f0878cf4178
llvm::removeUnreachableBlocks(llvm::Function&) + 232
4 libLLVM-3.4.so.1 0x00007f0878a98226
5 libLLVM-3.4.so.1 0x00007f08785eefdf
llvm::FPPassManager::runOnFunction(llvm::Function&) + 607
6 libLLVM-3.4.so.1 0x00007f08785ef0a4
llvm::legacy::FunctionPassManagerImpl::run(llvm::Function&) + 100
7 libLLVM-3.4.so.1 0x00007f08785ef24d
llvm::legacy::FunctionPassManager::run(llvm::Function&) + 109
8 clang 0x00000000007daf6d
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 3373
9 clang 0x00000000007d8a62
10 clang 0x000000000093849a clang::ParseAST(clang::Sema&, bool,
bool) + 538
11 clang 0x00000000006847e9 clang::FrontendAction::Execute() + 185
12 clang 0x0000000000665e0a
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 282
13 clang 0x000000000064ff8a
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1530
14 clang 0x000000000064b2f8 cc1_main(char const**, char const**,
char const*, void*) + 1128
15 clang 0x00000000006488c1 main + 673
16 libc.so.6 0x00007f0876587ead __libc_start_main + 253
17 clang 0x000000000064acf1
Stack dump:
0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu
-emit-obj -disable-free -disable-llvm-verifier -main-file-name locale.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.22 -momit-leaf-frame-pointer -g -coverage-file
/data/backup/tools/libcxx/lib/locale.o -nostdinc++ -resource-dir
/usr/bin/../lib/clang/3.4 -I ../include -internal-isystem /usr/local/include
-internal-isystem /usr/bin/../lib/clang/3.4/include -internal-isystem
/usr/bin/../include/clang/3.4/include/ -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem /usr/include -O3 -Wall
-Wextra -Wshadow -Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4
-std=c++11 -fdeprecated-macro -fdebug-compilation-dir
/data/backup/tools/libcxx/lib -ferror-limit 19 -fmessage-length 0
-mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -vectorize-loops -vectorize-slp -o locale.o -x c++
../src/locale.cpp
1. <eof> parser at end of file
2. Per-function optimization
3. Running pass 'Simplify the CFG' on value
'@_ZNSt3__17codecvtIDsc11__mbstate_tED2Ev'
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
Debian clang version 3.4-1~exp1 (trunk) (based on LLVM 3.4)
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/locale-4eeab7.cpp
clang: note: diagnostic msg: /tmp/locale-4eeab7.sh
clang: note: diagnostic msg:
********************
shell script for reproducing the bug, see attachment for source code
------
"/usr/bin/clang" -cc1 -triple x86_64-pc-linux-gnu -emit-obj -disable-free
-disable-llvm-verifier -main-file-name locale.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.22
-momit-leaf-frame-pointer -g -nostdinc++ -O3 -Wall -Wextra -Wshadow
-Wconversion -Wpadded -Wstrict-aliasing=2 -Wstrict-overflow=4 -std=c++11
-fdeprecated-macro -ferror-limit 19 -fmessage-length 0 -mstackrealign
-fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option
-vectorize-loops -vectorize-slp -x c++ locale-4eeab7.cpp</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>