[LLVMbugs] [Bug 7498] New: ice: Invalid basic block argument to remove!

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jun 25 12:51:35 PDT 2010


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

           Summary: ice: Invalid basic block argument to remove!
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: regehr at cs.utah.edu
                CC: llvmbugs at cs.uiuc.edu, chenyang at cs.utah.edu


Created an attachment (id=5112)
 --> (http://llvm.org/bugs/attachment.cgi?id=5112)
failure inducing c

[regehr at babel tmp501]$ clang -v
clang version 2.0 (trunk 106870)
Target: x86_64-unknown-linux-gnu
Thread model: posix

[regehr at babel tmp501]$ opt -O2 small.s
WARNING: You're attempting to print out a bitcode file.
This is inadvisable as it may cause display problems. If
you REALLY want to taste LLVM bitcode first-hand, you
can force output with the `-f' option.

opt:
/uusoc/exports/scratch/regehr/z/compiler-build/llvm-r106870/include/llvm/Instructions.h:1880:
llvm::Value* llvm::PHINode::removeIncomingValue(const llvm::BasicBlock*, bool):
Assertion `Idx >= 0 && "Invalid basic block argument to remove!"' failed.
0  opt             0x000000000085c4df
1  opt             0x000000000085e572
2  libpthread.so.0 0x00007f1ae9c5c190
3  libc.so.6       0x00007f1ae8f624b5 gsignal + 53
4  libc.so.6       0x00007f1ae8f65f50 abort + 384
5  libc.so.6       0x00007f1ae8f5b481 __assert_fail + 241
6  opt             0x00000000005ff8df
llvm::SplitBlockPredecessors(llvm::BasicBlock*, llvm::BasicBlock* const*,
unsigned int, char const*, llvm::Pass*) + 2271
7  opt             0x0000000000539e4d
8  opt             0x000000000053ad2e
9  opt             0x000000000053b0ee
10 opt             0x000000000053c38b
11 opt             0x00000000007ec90d
llvm::FPPassManager::runOnFunction(llvm::Function&) + 637
12 opt             0x0000000000651cdb
13 opt             0x0000000000652455
14 opt             0x00000000007ec40e
llvm::MPPassManager::runOnModule(llvm::Module&) + 494
15 opt             0x00000000007ec587 llvm::PassManagerImpl::run(llvm::Module&)
+ 167
16 opt             0x00000000004c3cd2 main + 2626
17 libc.so.6       0x00007f1ae8f4dabd __libc_start_main + 253
18 opt             0x00000000004b7fa9
Stack dump:
0.    Program arguments: opt -O2 small.s 
1.    Running pass 'CallGraph Pass Manager' on module 'small.s'.
2.    Running pass 'Jump Threading' on function '@uint8func'
Aborted

-- 
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