[LLVMbugs] [Bug 1882] New: llvm-ar: Segmentation fault when archiving bitcode library

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Dec 28 06:51:38 PST 2007


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

           Summary: llvm-ar: Segmentation fault when archiving bitcode
                    library
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P2
         Component: llvm-ar
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: shackan at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=1307)
 --> (http://llvm.org/bugs/attachment.cgi?id=1307)
Bitcode files, to reproduce do `llvm-ar rcsf libavcodec.bca *.bc`

maybe a duplicate of #1881, but from the stack traces they seem two different
beasts

llvm[2]: Building Debug Bytecode Archive libavcodec.bca
llvm-ar: <llvmroot>/lib/Bitcode/Reader/BitcodeReader.cpp:162: llvm::Value*
llvm::BitcodeReaderValueList::getValueFwdRef(unsigned int, const llvm::Type*):
Assertion `(Ty == 0 || Ty == V->getType()) && "Type mismatch in value table!"'
failed.
<llvmroot>/build-x86/Debug/bin/llvm-ar((anonymous
namespace)::PrintStackTrace()+0x22)[0x82496c0]
<llvmroot>/build-x86/Debug/bin/llvm-ar((anonymous
namespace)::SignalHandler(int)+0x112)[0x8249986]
[0xffffe420]
/lib/tls/i686/cmov/libc.so.6(abort+0x101)[0x401af201]
/lib/tls/i686/cmov/libc.so.6(__assert_fail+0xee)[0x401a6b6e]
<llvmroot>/build-x86/Debug/bin/llvm-ar(llvm::BitcodeReaderValueList::getValueFwdRef(unsigned
int, llvm::Type const*)+0xe7)[0x816afb7]
<llvmroot>/build-x86/Debug/bin/llvm-ar(llvm::BitcodeReader::getFnValueByID(unsigned
int, llvm::Type const*)+0x25)[0x8180bc5]
<llvmroot>/build-x86/Debug/bin/llvm-ar(llvm::BitcodeReader::ParseFunctionBody(llvm::Function*)+0x2deb)[0x816de5b]
<llvmroot>/build-x86/Debug/bin/llvm-ar(llvm::BitcodeReader::materializeFunction(llvm::Function*,
std::basic_string<char, std::char_traits<char>, std::allocator<char>
>*)+0xea)[0x816e704]
<llvmroot>/build-x86/Debug/bin/llvm-ar(llvm::BitcodeReader::materializeModule(std::basic_string<char,
std::char_traits<char>, std::allocator<char> >*)+0x97)[0x81655b5]
<llvmroot>/build-x86/Debug/bin/llvm-ar(llvm::GetBitcodeSymbols(unsigned char
const*, unsigned int, std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, std::vector<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
std::allocator<std::basic_string<char, std::char_traits<char>,
std::allocator<char> > > >&, std::basic_string<char, std::char_traits<char>,
std::allocator<char> >*)+0x7b)[0x815d425]
<llvmroot>/build-x86/Debug/bin/llvm-ar(llvm::Archive::writeMember(llvm::ArchiveMember
const&, std::basic_ofstream<char, std::char_traits<char> >&, bool, bool, bool,
std::basic_string<char, std::char_traits<char>, std::allocator<char>
>*)+0x27b)[0x8164205]
<llvmroot>/build-x86/Debug/bin/llvm-ar(llvm::Archive::writeToDisk(bool, bool,
bool, std::basic_string<char, std::char_traits<char>, std::allocator<char>
>*)+0x344)[0x81649ee]
<llvmroot>/build-x86/Debug/bin/llvm-ar(doReplaceOrInsert(std::basic_string<char,
std::char_traits<char>, std::allocator<char> >*)+0x74d)[0x8155ddd]
<llvmroot>/build-x86/Debug/bin/llvm-ar(main+0x3be)[0x8157998]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0)[0x40199050]
<llvmroot>/build-x86/Debug/bin/llvm-ar(__gxx_personality_v0+0x2a5)[0x81546c1]
make[2]: *** [<toolroot>build-x86/projects/h264/Debug/lib/libavcodec.bca]
Aborted (core dumped)
make[2]: Leaving directory
`<toolroot>build-x86/projects/h264/ffmpeg/libavcodec'


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