[LLVMbugs] [Bug 5149] New: MIPS code generator crash when compiling GCC's _muldi3.o

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Oct 7 10:56:31 PDT 2009


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

           Summary: MIPS code generator crash when compiling GCC's _muldi3.o
           Product: libraries
           Version: 2.6
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nbd at openwrt.org
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=3623)
 --> (http://llvm.org/bugs/attachment.cgi?id=3623)
Simplified test case

I hit the following failed assertion while trying to build a llvm-gcc mips
cross compiler (llvm, llvm-gcc from the 2.6 release branch, r83451):

Assertion failed: (unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
"Invalid Object Idx!"), function setObjectOffset, file
/Users/nbd/llvm/build_dir/host/llvm-2.6_r83451/include/llvm/CodeGen/MachineFrameInfo.h,
line 281.
0   llc               0x0000000100bc6f92 std::vector<llvm::sys::Path,
std::allocator<llvm::sys::Path>
>::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::sys::Path*,
std::vector<llvm::sys::Path, std::allocator<llvm::sys::Path> > >,
llvm::sys::Path const&) + 8402
1   llc               0x0000000100bc7656 std::vector<llvm::sys::Path,
std::allocator<llvm::sys::Path>
>::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::sys::Path*,
std::vector<llvm::sys::Path, std::allocator<llvm::sys::Path> > >,
llvm::sys::Path const&) + 10134
2   libSystem.B.dylib 0x00007fff8332c14a _sigtramp + 26
3   libSystem.B.dylib 0x00007fff832d0caa tiny_malloc_from_free_list + 1196
4   libSystem.B.dylib 0x00007fff833a8104 __pthread_markcancel + 0
5   llc               0x000000010025dce2
llvm::MachineFrameInfo::setObjectOffset(int, long long) + 98
6   llc               0x0000000100931d2d llvm::DenseMap<llvm::VNInfo*,
llvm::SmallPtrSet<llvm::MachineInstr*, 4u>, llvm::DenseMapInfo<llvm::VNInfo*>,
llvm::DenseMapInfo<llvm::SmallPtrSet<llvm::MachineInstr*, 4u> >
>::FindAndConstruct(llvm::VNInfo* const&) + 13213
7   llc               0x00000001008f7cdb llvm::sys::Path
llvm::WriteGraph<llvm::MachineFunction const*>(llvm::MachineFunction const*
const&, std::string const&, bool, std::string const&) + 2363
8   llc               0x0000000100b49faa llvm::FunctionPass::~FunctionPass() +
42906
9   llc               0x0000000100b4a614 llvm::FunctionPass::~FunctionPass() +
44548
10  llc               0x0000000100b4a952 llvm::FunctionPass::~FunctionPass() +
45378
11  llc               0x00000001000203b2 llvm::sys::SmartMutex<true>::release()
+ 24418
12  llc               0x000000010001e828 llvm::sys::SmartMutex<true>::release()
+ 17368
13  llc               0x0000000000000005 llvm::sys::SmartMutex<true>::release()
+ 4294859701
Stack dump:
0.      Program arguments: /Users/nbd/llvm/staging_dir/host/bin/llc -o
bugpoint-test-program.bc.llc.s -f bugpoint-test-program.bc 
1.      Running pass 'Prolog/Epilog Insertion & Frame Finalization' on function
'@__muldi3'


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