<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 in Combine Redundant Instructions"
href="http://llvm.org/bugs/show_bug.cgi?id=19886">19886</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang++ crash in Combine Redundant Instructions
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.4
</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>raiker@wutangle.net
</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>When compiling the attached code at -O2 or -O3, the clang process hangs for a
long time, then crashes. Source at <a href="https://github.com/edrosten/libcvd">https://github.com/edrosten/libcvd</a>. Platform
is Fedora Core 20 amd64, version is tags/RELEASE_34/final.
Stacktrace
clangterminate called after throwing an instance of 'std::bad_alloc'
what(): : std::bad_allocerror
: unable to execute command: Killed
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.4 (tags/RELEASE_34/final)
Target: x86_64-redhat-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.
0 libLLVM-3.4.so 0x00007f577ca34c82 llvm::sys::PrintStackTrace(_IO_FILE*) +
50
1 libLLVM-3.4.so 0x00007f577ca34a2c
2 libpthread.so.0 0x00007f577c2bd750
3 libc.so.6 0x00007f577b0c9c39 gsignal + 57
4 libc.so.6 0x00007f577b0cb348 abort + 328
5 libstdc++.so.6 0x00007f577b9d0f85 __gnu_cxx::__verbose_terminate_handler()
+ 357
6 libstdc++.so.6 0x00007f577b9ceee6
7 libstdc++.so.6 0x00007f577b9cef13
8 libstdc++.so.6 0x00007f577b9cf13f
9 libstdc++.so.6 0x00007f577b9cf6cd operator new(unsigned long) + 125
10 libLLVM-3.4.so 0x00007f577ce09324
11 libLLVM-3.4.so 0x00007f577ce8a39b
12 libLLVM-3.4.so 0x00007f577ce8aa76
13 libLLVM-3.4.so 0x00007f577d0ae586
llvm::FPPassManager::runOnFunction(llvm::Function&) + 438
14 libLLVM-3.4.so 0x00007f577d1a5c6e
15 libLLVM-3.4.so 0x00007f577d0b06f8
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 648
16 clang 0x000000000080c269
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 2569
17 clang 0x0000000000809664
18 clang 0x0000000000976e9c clang::ParseAST(clang::Sema&, bool, bool)
+ 364
19 clang 0x0000000000808592 clang::CodeGenAction::ExecuteAction() +
50
20 clang 0x00000000006a0d29 clang::FrontendAction::Execute() + 169
21 clang 0x000000000067f7b5
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 309
22 clang 0x0000000000667d4a
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1770
23 clang 0x0000000000661dc0 cc1_main(char const**, char const**, char
const*, void*) + 1072
24 clang 0x000000000066066e main + 8894
25 libc.so.6 0x00007f577b0b5d65 __libc_start_main + 245
26 clang 0x0000000000660cf1
Stack dump:
0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-redhat-linux-gnu
-emit-obj -disable-free -disable-llvm-verifier -main-file-name fast_8_score.cxx
-mrelocation-model pic -pic-level 2 -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64
-target-feature +mmx -target-feature +sse -target-feature +sse2 -target-feature
+sse3 -target-linker-version 2.23.2 -momit-leaf-frame-pointer -g -coverage-file
/home/raiker/code/libcvd/cvd_src/fast/fast_8_score.o -resource-dir
/usr/bin/../lib/clang/3.4 -I . -I . -I /usr/include -internal-isystem
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.2/../../../../include/c++/4.8.2
-internal-isystem
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.2/../../../../include/c++/4.8.2/x86_64-redhat-linux
-internal-isystem
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.2/../../../../include/c++/4.8.2/backward
-internal-isystem
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.2/../../../../include/x86_64-redhat-linux/c++/4.8.2
-internal-isystem /usr/local/include -internal-isystem
/usr/bin/../lib/clang/3.4/include -internal-externc-isystem /usr/include
-internal-externc-isystem /usr/lib/gcc/x86_64-redhat-linux/4.8.2/include -O3
-Wall -Wextra -fdeprecated-macro -fdebug-compilation-dir
/home/raiker/code/libcvd -ferror-limit 19 -fmessage-length 272 -pthread
-mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
-o cvd_src/fast/fast_8_score.o -x c++ cvd_src/fast/fast_8_score.cxx
1. <eof> parser at end of file
2. Per-module optimization passes
3. Running pass 'CallGraph Pass Manager' on module
'cvd_src/fast/fast_8_score.cxx'.
4. Running pass 'Combine redundant instructions' on function
'@_ZN3CVD19fast_corner_score_8EPKhPKii'</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>