[LLVMbugs] [Bug 4496] New: linker/lto: assertion fails when linking FreeBSD kernel

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Jul 2 06:41:08 PDT 2009


           Summary: linker/lto: assertion fails when linking FreeBSD kernel
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: edwintorok at gmail.com
                CC: llvmbugs at cs.uiuc.edu

Created an attachment (id=3144)
 --> (http://llvm.org/bugs/attachment.cgi?id=3144)
tar/gz: in_pcb.o in_proto.o ip_icmp.o ip_input.o

Roman Divacky reported that when linking the FreeBSD kernel with gold using the
LLVM plugin there is an assertion failure. 

I reproduced the failure with llvm-ld:

llvm-ld: /home/edwin/llvm-svn/llvm/lib/VMCore/Constants.cpp:1320: void
llvm::ValueMap<ValType, TypeClass, ConstantClass,
HasLargeKey>::MoveConstantToNewSlot(ConstantClass*, typename
std::map<std::pair<const llvm::Type*, ValType>, llvm::Constant*,
std::less<std::pair<const llvm::Type*, ValType> >,
std::allocator<std::pair<const std::pair<const llvm::Type*, ValType>,
llvm::Constant*> > >::iterator) [with ValType = std::vector<llvm::Constant*,
std::allocator<llvm::Constant*> >, TypeClass = llvm::StructType, ConstantClass
= llvm::ConstantStruct, bool HasLargeKey = true]: Assertion `ATI !=
AbstractTypeMap.end() && "Abstract type not in AbstractTypeMap?"' failed.

Commandline used (the .o files are all LLVM bitcodes):
~/llvm-svn/llvm-obj/Release/bin/llvm-ld -v -o x.bc  in_pcb.o in_proto.o
ip_icmp.o ip_input.o

Unfortunately bugpoint is not able to reduce bugs in the linker (it crashes
itself), so all I can do is attach these .o files.

It seems that the bug reproduces only when linking all of these files at once,
linking some of them incrementally and then linking the final  ip_input.o
doesn't reproduce the bug.

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