[LLVMbugs] [Bug 22430] New: core dump in llvm::SelectionDAGISel::SelectCodeCommon

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Feb 2 02:36:11 PST 2015


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

            Bug ID: 22430
           Summary: core dump in llvm::SelectionDAGISel::SelectCodeCommon
           Product: clang
           Version: 3.5
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: basile at starynkevitch.net
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 13789
  --> http://llvm.org/bugs/attachment.cgi?id=13789&action=edit
compiled source code in C

The attached file genf_B5973.c crashes the clang 3.5 compiler (on
Linux/Debian/Sid x86-64)

 % clang -fPIC -O -shared -Wall genf_B5973.c -o genf_B5973.so 
0  libLLVM-3.5.so.1 0x00007f26bcba0c72 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1  libLLVM-3.5.so.1 0x00007f26bcba071c
2  libpthread.so.0  0x00007f26bb8208d0
3  libLLVM-3.5.so.1 0x00007f26bc800016
llvm::SelectionDAGISel::SelectCodeCommon(llvm::SDNode*, unsigned char const*,
unsigned int) + 3862
4  libLLVM-3.5.so.1 0x00007f26bce1e3df
5  libLLVM-3.5.so.1 0x00007f26bc7fc73c
llvm::SelectionDAGISel::DoInstructionSelection() + 572
6  libLLVM-3.5.so.1 0x00007f26bc802bd2
llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 466
7  libLLVM-3.5.so.1 0x00007f26bc805ba2
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 1026
8  libLLVM-3.5.so.1 0x00007f26bc80718e
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 1070
9  libLLVM-3.5.so.1 0x00007f26bce23e58
10 libLLVM-3.5.so.1 0x00007f26bc223357
llvm::FPPassManager::runOnFunction(llvm::Function&) + 471
11 libLLVM-3.5.so.1 0x00007f26bc2233db
llvm::FPPassManager::runOnModule(llvm::Module&) + 43
12 libLLVM-3.5.so.1 0x00007f26bc225d99
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 697
13 clang            0x000000000084c30a
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) +
3002
14 clang            0x0000000000847231
15 clang            0x00000000009e2095 clang::ParseAST(clang::Sema&, bool,
bool) + 741
16 clang            0x000000000084667f clang::CodeGenAction::ExecuteAction() +
31
17 clang            0x00000000006c9676 clang::FrontendAction::Execute() + 118
18 clang            0x00000000006a7360
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 256
19 clang            0x0000000000690723
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1827
20 clang            0x000000000068b048 cc1_main(char const**, char const**,
char const*, void*) + 1224
21 clang            0x000000000068a66a main + 8970
22 libc.so.6        0x00007f26ba3f8b45 __libc_start_main + 245
23 clang            0x000000000068a6e6
Stack dump:
0.    Program arguments: /usr/lib/llvm-3.5/bin/clang -cc1 -triple
x86_64-pc-linux-gnu -emit-obj -disable-free -disable-llvm-verifier
-main-file-name genf_B5973.c -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.24.90 -momit-leaf-frame-pointer
-dwarf-column-info -resource-dir /usr/lib/llvm-3.5/bin/../lib/clang/3.5.0
-internal-isystem /usr/include/clang/3.5.0/include/ -internal-isystem
/usr/local/include -internal-isystem
/usr/lib/llvm-3.5/bin/../lib/clang/3.5.0/include -internal-externc-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/include -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem /include
-internal-externc-isystem /usr/include -O2 -Wall -fdebug-compilation-dir
/home/basile/tmp -ferror-limit 19 -fmessage-length 117 -mstackrealign
-fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics
-vectorize-loops -vectorize-slp -o /tmp/genf_B5973-df206a.o -x c genf_B5973.c 
1.    <eof> parser at end of file
2.    Code generation
3.    Running pass 'Function Pass Manager' on module 'genf_B5973.c'.
4.    Running pass 'X86 DAG->DAG Instruction Selection' on function
'@genf_B5973'
clang: error: unable to execute command: Segmentation fault (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
Debian clang version 3.5.0-9 (tags/RELEASE_350/final) (based on LLVM 3.5.0)
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: 
********************

-- 
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/20150202/23378055/attachment.html>


More information about the llvm-bugs mailing list