[LLVMbugs] [Bug 17943] New: Clang crash while building libcxx

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Nov 15 06:46:29 PST 2013


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

            Bug ID: 17943
           Summary: Clang crash while building libcxx
           Product: libc++
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: hhinnant at apple.com
          Reporter: qiwei.uk at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

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
http://bugs.debian.org/ 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

-- 
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/20131115/957eea8c/attachment.html>


More information about the llvm-bugs mailing list