[llvm-bugs] [Bug 24949] New: Clang crashes when compiling. SSE2 intrinsics may be involved.

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Sep 26 09:07:34 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=24949

            Bug ID: 24949
           Summary: Clang crashes when compiling. SSE2 intrinsics may be
                    involved.
           Product: clang
           Version: 3.6
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: bisqwit at iki.fi
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

I had some trouble isolating the cause of the crash, so I'll just include the
whole (large) preprocessed file, as instructed by Clang.

Below is quoted the crash, as reported by clang.

0  libLLVM-3.6.so.1 0x00007fc4f5e0ab42 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1  libLLVM-3.6.so.1 0x00007fc4f5e09349
2  libpthread.so.0  0x00007fc4f4ab98d0
3  libLLVM-3.6.so.1 0x00007fc4f577ed5a
4  libLLVM-3.6.so.1 0x00007fc4f5786b68
5  libLLVM-3.6.so.1 0x00007fc4f57c8f87
6  libLLVM-3.6.so.1 0x00007fc4f57c9a24
7  libLLVM-3.6.so.1 0x00007fc4f54d2347
llvm::FPPassManager::runOnFunction(llvm::Function&) + 471
8  libLLVM-3.6.so.1 0x00007fc4f580f9ce
9  libLLVM-3.6.so.1 0x00007fc4f54d1fd4
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 756
10 clang            0x0000000000849971
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions cons
t&, clang::LangOptions const&, llvm::StringRef, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 3233
11 clang            0x000000000083a4e6
12 clang            0x00000000009ed78a clang::ParseAST(clang::Sema&, bool,
bool) + 778
13 clang            0x00000000006bc6c6 clang::FrontendAction::Execute() + 118
14 clang            0x0000000000696409
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 297
15 clang            0x000000000067df73
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1907
16 clang            0x0000000000679588 cc1_main(llvm::ArrayRef<char const*>,
char const*, void*) + 1256
17 clang            0x00000000006766af main + 927
18 libc.so.6        0x00007fc4f361eb45 __libc_start_main + 245
19 clang            0x0000000000678bcf
Stack dump:
0.      Program arguments: /usr/lib/llvm-3.6/bin/clang -cc1 -triple
x86_64-pc-linux-gnu -emit-obj -disable-free -disable-llvm-verifier -main-file-
name render.cc -mrelocation-model static -mthread-model posix -menable-no-infs
-menable-no-nans -menable-unsafe-fp-math -ffp-contract=fast -ffast-
math -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array
-target-cpu x86-64 -target-linker-version 2.25 -momit-leaf-frame-pointer
 -g -dwarf-column-info -resource-dir /usr/lib/llvm-3.6/bin/../lib/clang/3.6.2
-D _REENTRANT -I /usr/include/SDL2 -internal-isystem /usr/bin/../lib
64/gcc/x86_64-linux-gnu/5.2.1/../../../../include/c++/5.2.1 -internal-isystem
/usr/bin/../lib64/gcc/x86_64-linux-gnu/5.2.1/../../../../include/x86
_64-linux-gnu/c++/5.2.1 -internal-isystem
/usr/bin/../lib64/gcc/x86_64-linux-gnu/5.2.1/../../../../include/x86_64-linux-gnu/c++/5.2.1
-internal-is
ystem
/usr/bin/../lib64/gcc/x86_64-linux-gnu/5.2.1/../../../../include/c++/5.2.1/backward
-internal-isystem /usr/local/include -internal-isystem /
usr/lib/llvm-3.6/bin/../lib/clang/3.6.2/include -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem /include -intern
al-externc-isystem /usr/include -Ofast -Wall -Wextra -std=c++14
-fdeprecated-macro -fdebug-compilation-dir
/home/bisqwit/qbexample/portalrendering
2 -ferror-limit 19 -fmessage-length 0 -pthread -mstackrealign
-fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option
-vectoriz
e-loops -vectorize-slp -o /tmp/render-25473c.o -x c++ render.cc 
1.      <eof> parser at end of file
2.      Per-module optimization passes
3.      Running pass 'CallGraph Pass Manager' on module 'render.cc'.
4.      Running pass 'Combine redundant instructions' on function
'@_ZN4ViewI3vecIfLj3EEfE11MakeFrustumISt6vectorIS0_IiLj2EESaIS5_EEZNS2_11MakeFru
stumIS7_EES4_I5PlaneSaIS9_EEOT_EUlSC_E_EESB_SD_OT0_'
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.6.2-1 (tags/RELEASE_362/final) (based on LLVM 3.6.2)
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 assoc
iated 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/render-cecbeb.cpp
clang: note: diagnostic msg: /tmp/render-cecbeb.sh
clang: note: diagnostic msg:

-- 
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/20150926/9b3d4fed/attachment.html>


More information about the llvm-bugs mailing list