[LLVMbugs] [Bug 3693] New: Assertion failed: (ATI != AbstractTypeMap.end() && " Abstract type not in AbstractTypeMap?"), function MoveConstantToNewSlot, file Constants.cpp, line 1196.

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Mar 1 01:16:15 PST 2009


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

           Summary: Assertion failed: (ATI != AbstractTypeMap.end() &&
                    "Abstract type not in AbstractTypeMap?"), function
                    MoveConstantToNewSlot, file Constants.cpp, line 1196.
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-ld
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: rdivacky at freebsd.org
                CC: llvmbugs at cs.uiuc.edu


I am hitting this assert when trying to llvm-ld FreeBSD kernel. this is the
backtrace. I can upload tar of all the .bc files if needed. this is on i386

(gdb) bt
#0  0x288343db in kill () from /lib/libc.so.7
#1  0x2860d2d7 in raise () from /lib/libthr.so.3
#2  0x288321ec in abort () from /lib/libc.so.7
#3  0x28819106 in __assert () from /lib/libc.so.7
#4  0x084938c5 in llvm::ValueMap<std::vector<llvm::Constant*,
std::allocator<llvm::Constant*> >, llvm::StructType, llvm::ConstantStruct,
true>::MoveConstantToNewSlot (this=0x28bfbce0, C=0x2d8506b4, I={_M_node =
0x2d3d0c70}) at Constants.cpp:1195
#5  0x08480aa9 in llvm::ConstantStruct::replaceUsesOfWithOnConstant
(this=0x2d8506b4, From=0x2af04e20, To=0x2bdfe400, U=0x2d85066c)
    at Constants.cpp:2581
#6  0x08510e19 in llvm::Value::uncheckedReplaceAllUsesWith (this=0x2af04e20,
New=0x2bdfe400) at Value.cpp:306
#7  0x08496114 in llvm::ConvertConstantType<llvm::ConstantPointerNull,
llvm::PointerType>::convert (OldC=0x2af04e20, NewTy=0x2d8eb7f0)
    at Constants.cpp:1575
#8  0x084961f1 in llvm::ValueMap<char, llvm::PointerType,
llvm::ConstantPointerNull, false>::refineAbstractType (this=0x28922880,
OldTy=0x2d7665b0, 
    NewTy=0x2d8eb7f0) at Constants.cpp:1223
#9  0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d7665b0,
NewType=0x2d8eb7f0) at Type.cpp:1421
#10 0x0850bd38 in llvm::TypeMap<llvm::PointerValType,
llvm::PointerType>::RefineAbstractType (this=0x28908460, Ty=0x2d7665b0,
OldType=0x2d7b1540, 
    NewType=0x2d8c0300) at Type.cpp:916
#11 0x084f9a6f in llvm::PointerType::refineAbstractType (this=0x2d7665b0,
OldType=0x2d7b1540, NewType=0x2d8c0300) at Type.cpp:1510
#12 0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d7b1540,
NewType=0x2d8c0300) at Type.cpp:1421
#13 0x0850d59b in llvm::TypeMap<llvm::FunctionValType,
llvm::FunctionType>::RefineAbstractType (this=0x28908d60, Ty=0x2d7b1540,
OldType=0x2d6df430, 
    NewType=0x2d89f070) at Type.cpp:916
#14 0x084f9baf in llvm::FunctionType::refineAbstractType (this=0x2d7b1540,
OldType=0x2d6df430, NewType=0x2d89f070) at Type.cpp:1457
#15 0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d6df430,
NewType=0x2d89f070) at Type.cpp:1421
#16 0x0850bd38 in llvm::TypeMap<llvm::PointerValType,
llvm::PointerType>::RefineAbstractType (this=0x28908460, Ty=0x2d6df430,
OldType=0x2d318880, 
    NewType=0x2d7a0940) at Type.cpp:916
#17 0x084f9a6f in llvm::PointerType::refineAbstractType (this=0x2d6df430,
OldType=0x2d318880, NewType=0x2d7a0940) at Type.cpp:1510
#18 0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d318880,
NewType=0x2d7a0940) at Type.cpp:1421
#19 0x0850c56f in llvm::TypeMap<llvm::StructValType,
llvm::StructType>::RefineAbstractType (this=0x28908be0, Ty=0x2d318880,
OldType=0x2d7e8ca0, 
    NewType=0x2d89f0d0) at Type.cpp:952
#20 0x084f9abf in llvm::StructType::refineAbstractType (this=0x2d318880,
OldType=0x2d7e8ca0, NewType=0x2d89f0d0) at Type.cpp:1497
#21 0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d7e8ca0,
NewType=0x2d89f0d0) at Type.cpp:1421
#22 0x0850bd38 in llvm::TypeMap<llvm::PointerValType,
llvm::PointerType>::RefineAbstractType (this=0x28908460, Ty=0x2d7e8ca0,
OldType=0x2d862a80, 
    NewType=0x2d863ec0) at Type.cpp:916
#23 0x084f9a6f in llvm::PointerType::refineAbstractType (this=0x2d7e8ca0,
OldType=0x2d862a80, NewType=0x2d863ec0) at Type.cpp:1510
#24 0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d862a80,
NewType=0x2d863ec0) at Type.cpp:1421
#25 0x0850c56f in llvm::TypeMap<llvm::StructValType,
llvm::StructType>::RefineAbstractType (this=0x28908be0, Ty=0x2d862a80,
OldType=0x2d884b80, 
    NewType=0x2d8eb790) at Type.cpp:952
#26 0x084f9abf in llvm::StructType::refineAbstractType (this=0x2d862a80,
OldType=0x2d884b80, NewType=0x2d8eb790) at Type.cpp:1497
#27 0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d884b80,
NewType=0x2d8eb790) at Type.cpp:1421
#28 0x0850bd38 in llvm::TypeMap<llvm::PointerValType,
llvm::PointerType>::RefineAbstractType (this=0x28908460, Ty=0x2d884b80,
OldType=0x2d850100, 
    NewType=0x2d850f00) at Type.cpp:916
#29 0x084f9a6f in llvm::PointerType::refineAbstractType (this=0x2d884b80,
OldType=0x2d850100, NewType=0x2d850f00) at Type.cpp:1510
#30 0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d850100,
NewType=0x2d850f00) at Type.cpp:1421
#31 0x0850c56f in llvm::TypeMap<llvm::StructValType,
llvm::StructType>::RefineAbstractType (this=0x28908be0, Ty=0x2d850100,
OldType=0x2d884970, 
    NewType=0x2d8eb730) at Type.cpp:952
---Type <return> to continue, or q <return> to quit---
#32 0x084f9abf in llvm::StructType::refineAbstractType (this=0x2d850100,
OldType=0x2d884970, NewType=0x2d8eb730) at Type.cpp:1497
#33 0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d884970,
NewType=0x2d8eb730) at Type.cpp:1421
#34 0x0850bd38 in llvm::TypeMap<llvm::PointerValType,
llvm::PointerType>::RefineAbstractType (this=0x28908460, Ty=0x2d884970,
OldType=0x2d84c220, 
    NewType=0x2d881ee0) at Type.cpp:916
#35 0x084f9a6f in llvm::PointerType::refineAbstractType (this=0x2d884970,
OldType=0x2d84c220, NewType=0x2d881ee0) at Type.cpp:1510
#36 0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d84c220,
NewType=0x2d881ee0) at Type.cpp:1421
#37 0x0850d7ae in llvm::TypeMap<llvm::FunctionValType,
llvm::FunctionType>::RefineAbstractType (this=0x28908d60, Ty=0x2d84c220,
OldType=0x2d7b3c40, 
    NewType=0x2d88faf0) at Type.cpp:952
#38 0x084f9baf in llvm::FunctionType::refineAbstractType (this=0x2d84c220,
OldType=0x2d7b3c40, NewType=0x2d88faf0) at Type.cpp:1457
#39 0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d7b3c40,
NewType=0x2d88faf0) at Type.cpp:1421
#40 0x0850bf45 in llvm::TypeMap<llvm::PointerValType,
llvm::PointerType>::RefineAbstractType (this=0x28908460, Ty=0x2d7b3c40,
OldType=0x2d894400, 
    NewType=0x2d894e00) at Type.cpp:952
#41 0x084f9a6f in llvm::PointerType::refineAbstractType (this=0x2d7b3c40,
OldType=0x2d894400, NewType=0x2d894e00) at Type.cpp:1510
#42 0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d894400,
NewType=0x2d894e00) at Type.cpp:1421
#43 0x0850c56f in llvm::TypeMap<llvm::StructValType,
llvm::StructType>::RefineAbstractType (this=0x28908be0, Ty=0x2d894400,
OldType=0x2d8b0380, 
    NewType=0x2d8f6dc0) at Type.cpp:952
#44 0x084f9abf in llvm::StructType::refineAbstractType (this=0x2d894400,
OldType=0x2d8b0380, NewType=0x2d8f6dc0) at Type.cpp:1497
#45 0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d8b0380,
NewType=0x2d8f6dc0) at Type.cpp:1421
#46 0x0850c56f in llvm::TypeMap<llvm::StructValType,
llvm::StructType>::RefineAbstractType (this=0x28908be0, Ty=0x2d8b0380,
OldType=0x2d7bd100, 
    NewType=0x2d89f460) at Type.cpp:952
#47 0x084f9abf in llvm::StructType::refineAbstractType (this=0x2d8b0380,
OldType=0x2d7bd100, NewType=0x2d89f460) at Type.cpp:1497
#48 0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d7bd100,
NewType=0x2d89f460) at Type.cpp:1421
#49 0x0850bf45 in llvm::TypeMap<llvm::PointerValType,
llvm::PointerType>::RefineAbstractType (this=0x28908460, Ty=0x2d7bd100,
OldType=0x2d7b3d30, 
    NewType=0x2d89f1c0) at Type.cpp:952
#50 0x084f9a6f in llvm::PointerType::refineAbstractType (this=0x2d7bd100,
OldType=0x2d7b3d30, NewType=0x2d89f1c0) at Type.cpp:1510
#51 0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d7b3d30,
NewType=0x2d89f1c0) at Type.cpp:1421
#52 0x0850bf45 in llvm::TypeMap<llvm::PointerValType,
llvm::PointerType>::RefineAbstractType (this=0x28908460, Ty=0x2d7b3d30,
OldType=0x2d863680, 
    NewType=0x2d863f80) at Type.cpp:952
#53 0x084f9a6f in llvm::PointerType::refineAbstractType (this=0x2d7b3d30,
OldType=0x2d863680, NewType=0x2d863f80) at Type.cpp:1510
#54 0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d863680,
NewType=0x2d863f80) at Type.cpp:1421
#55 0x0850c56f in llvm::TypeMap<llvm::StructValType,
llvm::StructType>::RefineAbstractType (this=0x28908be0, Ty=0x2d863680,
OldType=0x2d8b05c0, 
    NewType=0x2d8cb340) at Type.cpp:952
#56 0x084f9abf in llvm::StructType::refineAbstractType (this=0x2d863680,
OldType=0x2d8b05c0, NewType=0x2d8cb340) at Type.cpp:1497
#57 0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d8b05c0,
NewType=0x2d8cb340) at Type.cpp:1421
#58 0x0850c362 in llvm::TypeMap<llvm::StructValType,
llvm::StructType>::RefineAbstractType (this=0x28908be0, Ty=0x2d8b05c0,
OldType=0x2d861d80, 
    NewType=0x2d8c29c0) at Type.cpp:916
#59 0x084f9abf in llvm::StructType::refineAbstractType (this=0x2d8b05c0,
OldType=0x2d861d80, NewType=0x2d8c29c0) at Type.cpp:1497
#60 0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d861d80,
NewType=0x2d8c29c0) at Type.cpp:1421
#61 0x0850c362 in llvm::TypeMap<llvm::StructValType,
llvm::StructType>::RefineAbstractType (this=0x28908be0, Ty=0x2d861d80,
OldType=0x2d890220, 
    NewType=0x2d8eb9d0) at Type.cpp:916
#62 0x084f9abf in llvm::StructType::refineAbstractType (this=0x2d861d80,
OldType=0x2d890220, NewType=0x2d8eb9d0) at Type.cpp:1497
#63 0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d890220,
NewType=0x2d8eb9d0) at Type.cpp:1421
#64 0x0850bd38 in llvm::TypeMap<llvm::PointerValType,
llvm::PointerType>::RefineAbstractType (this=0x28908460, Ty=0x2d890220,
OldType=0x2d88fdc0, 
    NewType=0x2d8e6760) at Type.cpp:916
---Type <return> to continue, or q <return> to quit---
#65 0x084f9a6f in llvm::PointerType::refineAbstractType (this=0x2d890220,
OldType=0x2d88fdc0, NewType=0x2d8e6760) at Type.cpp:1510
#66 0x084f998a in llvm::DerivedType::refineAbstractTypeTo (this=0x2d88fdc0,
NewType=0x2d8e6760) at Type.cpp:1421
#67 0x08299ca6 in ResolveTypes (DestTy=0x2d88fdc0, SrcTy=0x2d8e6760) at
LinkModules.cpp:62
#68 0x0829c4e3 in LinkTypes (Dest=0x28908310, Src=0x2af0c040, Err=0xbfbfbd24)
at LinkModules.cpp:284
#69 0x0829cbca in llvm::Linker::LinkModules (Dest=0x28908310, Src=0x2af0c040,
ErrorMsg=0xbfbfbd24) at LinkModules.cpp:1258
#70 0x0829735d in llvm::Linker::LinkInModule (this=0xbfbfbd10, Src=0x2af0c040,
ErrorMsg=0xbfbfbd24) at Linker.h:247
#71 0x082967d4 in llvm::Linker::LinkInFile (this=0xbfbfbd10, File=@0xbfbfbc00,
is_native=@0xbfbfbbf2) at LinkItems.cpp:199
#72 0x08296ee8 in llvm::Linker::LinkInItems (this=0xbfbfbd10,
Items=@0xbfbfbcdc, NativeItems=@0xbfbfbd04) at LinkItems.cpp:45
#73 0x0826bf1d in main (argc=727, argv=0xbfbfbe58, envp=0xbfbfc9b8) at
llvm-ld.cpp:546
(gdb)


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