Created attachment 3623 [details] 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'
Bruno, any idea about this one? It has a nice small testcase :)
I haven't looked yet, I'm traveling for some weeks now and I'll be back next week, I'll take a look then, thanks for the ping (this is simple and should be fixed) :)
Fixed in r86543 http://llvm.org/viewvc/llvm-project?rev=86543&view=rev