[LLVMbugs] [Bug 6673] New: Use of blockadress() crashes llc in some cases
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Mar 22 03:35:55 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=6673
Summary: Use of blockadress() crashes llc in some cases
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: schlunki at cs.tu-berlin.de
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4566)
--> (http://llvm.org/bugs/attachment.cgi?id=4566)
test-cases, that crashes llc
In some cases the use of blockaddress() crashes llc.
I've attached two test-cases, one that crashes and for reference a slightly
modified one (just 2 lines are commented) that works.
I compile the files with
# llvm-as test_crash.ll -o - | llc -f -o temp.s -
and get
0 llc 0x0000000000c6ab6f
1 llc 0x0000000000c6b38d
2 libpthread.so.0 0x00007feccd2270f0
3 llc 0x00000000009a270f
llvm::DenseMap<llvm::AssertingVH<llvm::BasicBlock>,
llvm::MMIAddrLabelMap::AddrLabelSymEntry,
llvm::DenseMapInfo<llvm::AssertingVH<llvm::BasicBlock> >,
llvm::DenseMapInfo<llvm::MMIAddrLabelMap::AddrLabelSymEntry>
>::operator[](llvm::AssertingVH<llvm::BasicBlock> const&) + 31
4 llc 0x000000000099f5d0
llvm::MMIAddrLabelMap::UpdateForRAUWBlock(llvm::BasicBlock*, llvm::BasicBlock*)
+ 64
5 llc 0x0000000000c10c9a
llvm::ValueHandleBase::ValueIsRAUWd(llvm::Value*, llvm::Value*) + 442
6 llc 0x0000000000c11115
llvm::Value::uncheckedReplaceAllUsesWith(llvm::Value*) + 261
7 llc 0x0000000000ac86da
llvm::MergeBasicBlockIntoOnlyPred(llvm::BasicBlock*, llvm::Pass*) + 186
8 llc 0x0000000000a8780f
9 llc 0x0000000000a8830b
10 llc 0x0000000000a89cd6
11 llc 0x0000000000bfdf16
llvm::FPPassManager::runOnFunction(llvm::Function&) + 534
12 llc 0x0000000000bfe0f1
llvm::FunctionPassManagerImpl::run(llvm::Function&) + 129
13 llc 0x0000000000bfe31e
llvm::FunctionPassManager::run(llvm::Function&) + 110
14 llc 0x000000000052d334 main + 3556
15 libc.so.6 0x00007feccc311a3d __libc_start_main + 253
16 llc 0x000000000052b039
Stack dump:
0. Program arguments: llc -f -o temp.s -
1. Running pass 'Optimize for code generation' on function '@reduce_graph'
Segmentation fault
I'm using the svn-version, revision 98581.
Regards,
Sebastian
--
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