Maurice Gittens
2009-Jul-10 22:58 UTC
[LLVMdev] void llvm::PATypeHolder::addRef(): Assertion `Ty && "Type Holder has a null type!"' failed.
Hi, I am using current SVN and in the last week or so, something causing the following assertion failure has changed. void llvm::PATypeHolder::addRef(): Assertion `Ty && "Type Holder has a null type!"' failed. The corresponding stack trace is: #0 0x000000339ec332f5 in raise () from /lib64/libc.so.6 #1 0x000000339ec34b20 in abort () from /lib64/libc.so.6 #2 0x000000339ec2c2fa in __assert_fail () from /lib64/libc.so.6 #3 0x0000000000ba35e9 in llvm::PATypeHolder::addRef (this=0x1d7a740) at /home/maurice/installation/llvm-dev/include/llvm/Type.h:417 #4 0x0000000000dd872d in llvm::PATypeHolder::PATypeHolder(const struct llvm::Type *) (this=0x1d7a740, ty=0x0) at /home/maurice/installation/llvm-dev/include/llvm/AbstractTypeUser.h:143 #5 0x00000000015828d8 in llvm::DerivedType::dropAllTypeUses (this=0x1d777d0) at Type.cpp:469 #6 0x0000000001584b1f in llvm::DerivedType::unlockedRefineAbstractTypeTo (this=0x1d777d0, NewType=0x1d5b050) at Type.cpp:1454 #7 0x000000000158b84c in llvm::TypeMap<llvm::PointerValType, llvm::PointerType>::RefineAbstractType (this=0x1d5afe0, Ty=0x1d777d0, OldType=0x1d77780, NewType=0x1d54190) at Type.cpp:884 #8 0x0000000001584fe2 in llvm::PointerType::refineAbstractType (this=0x1d777d0, OldType=0x1d77780, NewType=0x1d54190) at Type.cpp:1575 #9 0x0000000001584b8f in llvm::DerivedType::unlockedRefineAbstractTypeTo (this=0x1d77780, NewType=0x1d54190) at Type.cpp:1473 #10 0x0000000001584cba in llvm::DerivedType::refineAbstractTypeTo (this=0x1d77780, NewType=0x1d54190) at Type.cpp:1493 #11 0x0000000000deedda in llvm::BitcodeReader::ParseTypeTable (this=0x1d75530) at BitcodeReader.cpp:580 #12 0x0000000000df230e in llvm::BitcodeReader::ParseModule (this=0x1d75530, ModuleID="receptacle-plug-test.bc") at BitcodeReader.cpp:1142 #13 0x0000000000df39b6 in llvm::BitcodeReader::ParseBitcode (this=0x1d75530) at BitcodeReader.cpp:1389 #14 0x0000000000df8431 in llvm::getBitcodeModuleProvider (Buffer=0x1d754c0, Context=@0x7fffffffdd90, ErrMsg=0x7fffffffd3f0) at BitcodeReader.cpp:2084 #15 0x0000000000df84e3 in llvm::ParseBitcodeFile (Buffer=0x1d754c0, Context=@0x7fffffffdd90, ErrMsg=0x7fffffffd3f0) at BitcodeReader.cpp:2102 #16 0x0000000000de1b76 in llvm::Linker::LoadObject (this=0x7fffffffdc60, FN=@0x1d6a330) at Linker.cpp:106 #17 0x0000000000dd03eb in llvm::Linker::LinkInFile (this=0x7fffffffdc60, File=@0x1d6a330, is_native=@0x7fffffffd64b) at LinkItems.cpp:196 #18 0x0000000000dd07ea in llvm::Linker::LinkInFiles (this=0x7fffffffdc60, Files=std::vector of length 1, capacity 1 = {...}) at LinkItems.cpp:235 #19 0x0000000000b8a904 in main (argc=2, argv=0x7fffffffe098, env=0x7fffffffe0b0) at main.cpp:209 If I do _not_ include the following line at the beginning of my program llvm::llvm_start_multithreaded(); then all is well. Does anyone have a clue what is going on? Thanks, Kind regards, Maurice -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090711/18348fdb/attachment.html>
Apparently Analagous Threads
- [PATCH] Move all interaction with the config file into Sys::VirtV2V::Config
- [LLVMdev] Re: [llvm-commits] CVS: llvm/include/llvm/CodeGen/DwarfWriter.h - LLVM build problem
- R-alpha: More problems with R0.50.a1
- Dovecot's as server based and mail filters and addressbooks holder?
- [PATCH 1/6] Convert config file to XML, and translate networks/bridge for all connections