[LLVMbugs] [Bug 12565] New: Assertion `Node2Index[SU->NodeNum] > Node2Index[I->getSUnit()->NodeNum] && "Wrong topological sorting"' failed.
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Apr 16 09:56:51 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=12565
Bug #: 12565
Summary: Assertion `Node2Index[SU->NodeNum] >
Node2Index[I->getSUnit()->NodeNum] && "Wrong
topological sorting"' failed.
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: regehr at cs.utah.edu
CC: chenyang at cs.utah.edu, llvmbugs at cs.uiuc.edu
Classification: Unclassified
[regehr at dyson r34]$ clang -c -O small.c
clang: ScheduleDAG.cpp:452: void
llvm::ScheduleDAGTopologicalSort::InitDAGTopologicalSorting(): Assertion
`Node2Index[SU->NodeNum] > Node2Index[I->getSUnit()->NodeNum] && "Wrong
topological sorting"' failed.
0 clang 0x0000000001b0b03f
1 clang 0x0000000001b0b559
2 libpthread.so.0 0x00007ffff7bcf8f0
3 libc.so.6 0x00007ffff6ebea75 gsignal + 53
4 libc.so.6 0x00007ffff6ec25c0 abort + 384
5 libc.so.6 0x00007ffff6eb7941 __assert_fail + 241
6 clang 0x00000000016e8a52
llvm::ScheduleDAGTopologicalSort::InitDAGTopologicalSorting() + 578
7 clang 0x00000000015d5b76
8 clang 0x000000000155767a
llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 5066
9 clang 0x0000000001554447
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 263
10 clang 0x0000000001553784
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 1156
11 clang 0x00000000016994f4
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 116
12 clang 0x0000000001aad16b
llvm::FPPassManager::runOnFunction(llvm::Function&) + 331
13 clang 0x0000000001aad4fb
llvm::FPPassManager::runOnModule(llvm::Module&) + 347
14 clang 0x0000000001aad63a
llvm::MPPassManager::runOnModule(llvm::Module&) + 282
15 clang 0x0000000001aadc1b llvm::PassManagerImpl::run(llvm::Module&)
+ 427
16 clang 0x0000000001aadd6a llvm::PassManager::run(llvm::Module&) +
10
17 clang 0x0000000000762b85
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 5125
18 clang 0x0000000000760aa1
19 clang 0x00000000008894a5 clang::ParseAST(clang::Sema&, bool, bool)
+ 389
20 clang 0x000000000075fead clang::CodeGenAction::ExecuteAction() +
1053
21 clang 0x000000000063895d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 957
22 clang 0x00000000006216bb
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3227
23 clang 0x0000000000617886 cc1_main(char const**, char const**, char
const*, void*) + 2950
24 clang 0x000000000061d738 main + 728
25 libc.so.6 0x00007ffff6ea9c4d __libc_start_main + 253
26 clang 0x0000000000616c39
Stack dump:
0. Program arguments:
/uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r154812-install/bin/clang
-cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name
small.c -mrelocation-model static -masm-verbose -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -target-linker-version 2.20.1
-momit-leaf-frame-pointer -coverage-file small.o -resource-dir
/uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r154812-install/bin/../lib/clang/3.1
-fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem
/usr/local/include -internal-isystem
/uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r154812-install/bin/../lib/clang/3.1/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O2
-fdebug-compilation-dir /home/regehr/z/reduce/r34 -ferror-limit 19
-fmessage-length 96 -mstackrealign -fgnu-runtime -fobjc-runtime-has-arc
-fobjc-runtime-has-weak -fobjc-fragile-abi -fdiagnostics-show-option
-fcolor-diagnostics -o small.o -x c small.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'small.c'.
4. Running pass 'X86 DAG->DAG Instruction Selection' on function '@fn2'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
information.
clang: note: diagnostic msg: Preprocessed source(s) and associated run
script(s) are located at:
clang: note: diagnostic msg: /tmp/small-aUQRVR.i
clang: note: diagnostic msg: /tmp/small-aUQRVR.sh
[regehr at dyson r34]$ cat small.c
int a, b, c;
int
fn1 (int p1, int p2)
{
return p2 ? p1 : 0;
}
void
fn2 ()
{
c = fn1 (a, --b);
}
[regehr at dyson r34]$ clang -v
clang version 3.1 (trunk 154812)
Target: x86_64-unknown-linux-gnu
Thread model: posix
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list