[LLVMbugs] [Bug 11982] New: llc segfaults when compiling GHC intermediate code for -march=arm
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Feb 11 02:02:27 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=11982
Bug #: 11982
Summary: llc segfaults when compiling GHC intermediate code for
-march=arm
Product: tools
Version: 3.0
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: llc
AssignedTo: unassignedbugs at nondot.org
ReportedBy: ricardo.wurmus at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 8040
--> http://llvm.org/bugs/attachment.cgi?id=8040
LLVM bytecode generated by GHC 7.4.1
I'm compiling Haskell code with GHC 7.4.1 which uses LLVM as a backend to
produce binaries for ARM. This command is executed:
llc file.bc -o file.lm_s -march=arm
(The generated LLVM bytecode that is fed to llc is attached.)
This results in a segfault:
0 libLLVM-3.0.so 0x00007fe422be883f
1 libLLVM-3.0.so 0x00007fe422be8e01
2 libpthread.so.0 0x00007fe421d64270
3 libLLVM-3.0.so 0x00007fe422d00e35 llvm::SelectionDAG::getNode(unsigned int,
llvm::DebugLoc, llvm::EVT, llvm::SDValue) + 1765
4 libLLVM-3.0.so 0x00007fe422d15435
5 libLLVM-3.0.so 0x00007fe422d24ae1
llvm::SelectionDAGISel::LowerArguments(llvm::BasicBlock const*) + 2817
6 libLLVM-3.0.so 0x00007fe422d59142
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 2770
7 libLLVM-3.0.so 0x00007fe422d5a812
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 578
8 libLLVM-3.0.so 0x00007fe4225a4249
llvm::FPPassManager::runOnFunction(llvm::Function&) + 537
9 libLLVM-3.0.so 0x00007fe4225a42f3
llvm::FPPassManager::runOnModule(llvm::Module&) + 51
10 libLLVM-3.0.so 0x00007fe4225a3ecf
llvm::MPPassManager::runOnModule(llvm::Module&) + 463
11 libLLVM-3.0.so 0x00007fe4225a3fe7 llvm::PassManagerImpl::run(llvm::Module&)
+ 119
12 llc 0x000000000040c381 main + 3105
13 libc.so.6 0x00007fe4216cf38d __libc_start_main + 237
14 llc 0x000000000040c791
Stack dump:
0. Program arguments: llc file.bc -o file.lm_s -march=arm
1. Running pass 'Function Pass Manager' on module 'file.bc'.
2. Running pass 'ARM Instruction Selection' on function '@s1Bi_info'
zsh: segmentation fault llc file.bc -o file.lm_s -march=arm
This happens for the architectures `arm' and `thumb'. Compiling succeeds with
other targets, such as `x86' or `c'.
--
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