[LLVMbugs] [Bug 19886] New: clang++ crash in Combine Redundant Instructions

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu May 29 00:04:59 PDT 2014


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

            Bug ID: 19886
           Summary: clang++ crash in Combine Redundant Instructions
           Product: clang
           Version: 3.4
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: raiker at wutangle.net
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

When compiling the attached code at -O2 or -O3, the clang process hangs for a
long time, then crashes. Source at https://github.com/edrosten/libcvd. 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
http://llvm.org/bugs/ 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'

-- 
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/20140529/b8fa2198/attachment.html>


More information about the llvm-bugs mailing list