<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 --- - core dump in llvm::SelectionDAGISel::SelectCodeCommon"
href="http://llvm.org/bugs/show_bug.cgi?id=22430">22430</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>core dump in llvm::SelectionDAGISel::SelectCodeCommon
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.5
</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>LLVM Codegen
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>basile@starynkevitch.net
</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>Created <span class=""><a href="attachment.cgi?id=13789" name="attach_13789" title="compiled source code in C">attachment 13789</a> <a href="attachment.cgi?id=13789&action=edit" title="compiled source code in C">[details]</a></span>
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
<a href="http://bugs.debian.org/">http://bugs.debian.org/</a> and include the crash backtrace, preprocessed source,
and associated run script.
clang: note: diagnostic msg:
********************</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>