<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 crashes when compiling cpp-netlib"
href="http://llvm.org/bugs/show_bug.cgi?id=17484">17484</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang crashes when compiling cpp-netlib
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.2
</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>Frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>prantlf@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>*Compiled library:*
cpp-netlib, base64_util_function_templates branch
(<a href="https://github.com/prantlf/cpp-netlib/tree/base64_util_function_templates">https://github.com/prantlf/cpp-netlib/tree/base64_util_function_templates</a>).
*Environment:*
Linux 3.5.0-41-generic #64~precise1-Ubuntu SMP Thu Sep 12 16:50:04 UTC 2013
x86_64 x86_64 x86_64 GNU/Linux
CLang 3.2 (<a href="https://launchpad.net/~kxstudio-team/+archive/builds">https://launchpad.net/~kxstudio-team/+archive/builds</a>)
Boost 1.54 (<a href="https://launchpad.net/~boost-latest/+archive/ppa">https://launchpad.net/~boost-latest/+archive/ppa</a>)
libstdc++ 4.6 (from the Ubuntu 12.04 distro)
********************
*This is the console output from the compilation:*
cd /home/prantlf/Sources/cpp-netlib/libs/network/test && /usr/bin/clang++
-DBOOST_NETWORK_ENABLE_HTTPS -I/home/prantlf/Sources/cpp-netlib -o
CMakeFiles/cpp-netlib-utils_base64_test.dir/utils_base64_test.cpp.o -c
/home/prantlf/Sources/cpp-netlib/libs/network/test/utils_base64_test.cpp
0 libLLVM-3.2.so.1 0x00002b05ebb4b19f
1 libLLVM-3.2.so.1 0x00002b05ebb4b761
2 libpthread.so.0 0x00002b05ec530cb0
3 libLLVM-3.2.so.1 0x00002b05eba7e49a llvm::SelectionDAG::FoldSetCC(llvm::EVT,
llvm::SDValue, llvm::SDValue, llvm::ISD::CondCode, llvm::DebugLoc) + 90
4 libLLVM-3.2.so.1 0x00002b05eba7f023 llvm::SelectionDAG::getNode(unsigned
int, llvm::DebugLoc, llvm::EVT, llvm::SDValue, llvm::SDValue, llvm::SDValue) +
1571
5 libLLVM-3.2.so.1 0x00002b05ebabb111
llvm::SelectionDAGBuilder::visitICmp(llvm::User const&) + 401
6 libLLVM-3.2.so.1 0x00002b05eba9a78d
llvm::SelectionDAGBuilder::visit(unsigned int, llvm::User const&) + 365
7 libLLVM-3.2.so.1 0x00002b05ebac30e2
llvm::SelectionDAGBuilder::visit(llvm::Instruction const&) + 50
8 libLLVM-3.2.so.1 0x00002b05ebad5701
llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator<llvm::Instruction
const>, llvm::ilist_iterator<llvm::Instruction const>, bool&) + 49
9 libLLVM-3.2.so.1 0x00002b05ebad6073
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 1763
10 libLLVM-3.2.so.1 0x00002b05ebad7078
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 680
11 libLLVM-3.2.so.1 0x00002b05eb575185
llvm::FPPassManager::runOnFunction(llvm::Function&) + 501
12 libLLVM-3.2.so.1 0x00002b05eb575223
llvm::FPPassManager::runOnModule(llvm::Module&) + 51
13 libLLVM-3.2.so.1 0x00002b05eb574e39
llvm::MPPassManager::runOnModule(llvm::Module&) + 457
14 libLLVM-3.2.so.1 0x00002b05eb574f4f
llvm::PassManagerImpl::run(llvm::Module&) + 111
15 clang 0x00000000007132fa
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 4618
16 clang 0x0000000000710c80
17 clang 0x00000000008523ee clang::ParseAST(clang::Sema&, bool,
bool) + 382
18 clang 0x00000000005e3501 clang::FrontendAction::Execute() + 97
19 clang 0x00000000005c593d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 285
20 clang 0x00000000005ae49a
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1338
21 clang 0x00000000005a7fb0 cc1_main(char const**, char const**,
char const*, void*) + 1168
22 clang 0x00000000005a69c0 main + 672
23 libc.so.6 0x00002b05ecc7a76d __libc_start_main + 237
24 clang 0x00000000005a79d9
Stack dump:
0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu
-emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name
utils_base64_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.22 -momit-leaf-frame-pointer
-coverage-file
/home/prantlf/Sources/cpp-netlib/libs/network/test/CMakeFiles/cpp-netlib-utils_base64_test.dir/utils_base64_test.cpp.o
-resource-dir /usr/bin/../lib/clang/3.2 -D BOOST_NETWORK_ENABLE_HTTPS -I
/home/prantlf/Sources/cpp-netlib -fmodule-cache-path
/var/tmp/clang-module-cache -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/c++/4.8/x86_64-linux-gnu
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/backward
-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/x86_64-linux-gnu
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/x86_64-linux-gnu/c++/4.8/backward
-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/x86_64-linux-gnu
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/x86_64-linux-gnu/c++/4.8/backward
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/x86_64-linux-gnu
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/backward
-internal-isystem /usr/local/include -internal-isystem
/usr/bin/../lib/clang/3.2/include -internal-isystem
/usr/include/clang/3.2/include/ -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem /usr/include
-fdeprecated-macro -fdebug-compilation-dir
/home/prantlf/Sources/cpp-netlib/libs/network/test -ferror-limit 19
-fmessage-length 90 -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions
-fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
CMakeFiles/cpp-netlib-utils_base64_test.dir/utils_base64_test.cpp.o -x c++
/home/prantlf/Sources/cpp-netlib/libs/network/test/utils_base64_test.cpp
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module
'/home/prantlf/Sources/cpp-netlib/libs/network/test/utils_base64_test.cpp'.
4. Running pass 'X86 DAG->DAG Instruction Selection' on function
'@_ZN19decode_invalid_test11test_methodEv'
clang: error: unable to execute command: Segmentation fault (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
Ubuntu clang version 3.2-1~exp9ubuntu1~precise1 (tags/RELEASE_32/final) (based
on LLVM 3.2)
Target: x86_64-pc-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:
********************
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/utils_base64_test-q0fvWc.cpp
clang: note: diagnostic msg: /tmp/utils_base64_test-q0fvWc.sh
clang: note: diagnostic msg:
********************
*The first file added as attachment, the second file pasted here:*
/usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu -emit-obj -mrelax-all
-disable-free -disable-llvm-verifier -main-file-name utils_base64_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.22 -momit-leaf-frame-pointer -D
"BOOST_NETWORK_ENABLE_HTTPS" -fdeprecated-macro -ferror-limit 19
-fmessage-length 90 -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions
-fexceptions -fdiagnostics-show-option -fcolor-diagnostics -x c++
utils_base64_test-q0fvWc.cpp
********************
*CLang from the Ubuntu 12.04 distro compiled the same source code without
problem:*
Ubuntu clang version 3.0-6ubuntu3 (tags/RELEASE_30/final) (based on LLVM 3.0)
Target: x86_64-pc-linux-gnu
Thread model: posix</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>