<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 --- - ICE when compiling with clang 3.4"
href="http://llvm.org/bugs/show_bug.cgi?id=15941">15941</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>ICE when compiling with clang 3.4
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</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>Backend: X86
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ishiura-compiler@ml.kwansei.ac.jp
</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=10487" name="attach_10487" title="error-wevEDr.c and error-wevEDr.sh">attachment 10487</a> <a href="attachment.cgi?id=10487&action=edit" title="error-wevEDr.c and error-wevEDr.sh">[details]</a></span>
error-wevEDr.c and error-wevEDr.sh
LLVM + clang version 3.4 for x86_64 ICEs with "-O1" option.
The following files are attached:
error-wevEDr.c
error-wevEDr.sh
$ clang error.c -O1
clang: /home/hassy/llvm/lib/CodeGen/ScheduleDAG.cpp:511: void
llvm::ScheduleDAGTopologicalSort::InitDAGTopologicalSorting(): Assertion
`Node2Index[SU->NodeNum] > Node2Index[I->getSUnit()->NodeNum] && "Wrong
topological sorting"' failed.
0 clang 0x00000000020edef2 llvm::sys::PrintStackTrace(_IO_FILE*)
+ 34
1 clang 0x00000000020edb89
2 libpthread.so.0 0x00007faedfee8cb0
3 libc.so.6 0x00007faedef2f425 gsignal + 53
4 libc.so.6 0x00007faedef32b8b abort + 379
5 libc.so.6 0x00007faedef280ee
6 libc.so.6 0x00007faedef28192
7 clang 0x0000000001b79cf1
llvm::ScheduleDAGTopologicalSort::InitDAGTopologicalSorting() + 1233
8 clang 0x0000000001a0d7e7
9 clang 0x00000000019a17a6
llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 1078
10 clang 0x00000000019a4767
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 1943
11 clang 0x00000000019a5cd9
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 761
12 clang 0x000000000208834f
llvm::FPPassManager::runOnFunction(llvm::Function&) + 655
13 clang 0x000000000208881b
llvm::FPPassManager::runOnModule(llvm::Module&) + 43
14 clang 0x0000000002088a9b
llvm::MPPassManager::runOnModule(llvm::Module&) + 603
15 clang 0x0000000002088c7f
llvm::PassManagerImpl::run(llvm::Module&) + 223
16 clang 0x0000000000940f34
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 2196
17 clang 0x000000000093ee9c
18 clang 0x0000000000aa5f7b clang::ParseAST(clang::Sema&, bool,
bool) + 507
19 clang 0x000000000093d4ec clang::CodeGenAction::ExecuteAction()
+ 60
20 clang 0x00000000007cfcc9 clang::FrontendAction::Execute() +
249
21 clang 0x00000000007b05d5
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 357
22 clang 0x00000000007996a5
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1765
23 clang 0x0000000000793c88 cc1_main(char const**, char const**,
char const*, void*) + 1208
24 clang 0x00000000007757e8 main + 2152
25 libc.so.6 0x00007faedef1a76d __libc_start_main + 237
26 clang 0x0000000000792a2d
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name error.c
-mrelocation-model static -fmath-errno -masm-verbose -mconstructor-aliases
-munwind-tables -fuse-init-array -target-cpu x86-64 -target-linker-version
2.22.90.20120924 -momit-leaf-frame-pointer -resource-dir
/usr/local/bin/../lib/clang/3.4 -internal-isystem /usr/local/include
-internal-isystem /usr/local/bin/../lib/clang/3.4/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O1
-fdebug-compilation-dir /home/hassy/random_test -ferror-limit 19
-fmessage-length 85 -mstackrealign -fobjc-runtime=gcc
-fobjc-default-synthesize-properties -fdiagnostics-show-option
-fcolor-diagnostics -backend-option -vectorize-loops -o /tmp/error-1Ki9Dc.o -x
c error.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'error.c'.
4. Running pass 'X86 DAG->DAG Instruction Selection' on function '@main'
clang: error: unable to execute command: Aborted (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.4 (<a href="http://llvm.org/git/clang.git">http://llvm.org/git/clang.git</a>
3923d6a87fe7b2c91cc4a7dbd90c4ec7e2316bcd) (<a href="http://llvm.org/git/llvm.git">http://llvm.org/git/llvm.git</a>
363160a6be82df343fa60aa09d9d8f8f44605529)
Target: x86_64-unknown-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.
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/error-wevEDr.c
clang: note: diagnostic msg: /tmp/error-wevEDr.sh
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>