[LLVMbugs] [Bug 7864] New: Assertion failed: (0 && "Unhandled type!"), function BuildVTablePointer, file CGRTTI.cpp, line 396.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Aug 10 11:11:47 PDT 2010


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

           Summary: Assertion failed: (0 && "Unhandled type!"), function
                    BuildVTablePointer, file CGRTTI.cpp, line 396.
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: james at markzware.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


use the file cDocStore.mm supplied for issue 7741:
http://llvm.org/bugs/show_bug.cgi?id=7741



The following crash log is generated



Assertion failed: (0 && "Unhandled type!"), function BuildVTablePointer, file
CGRTTI.cpp, line 396.
0  clang             0x0000000101312082 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&) + 11602
1  clang             0x0000000101312dd3 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&) + 15011
2  libSystem.B.dylib 0x00007fff86a4e35a _sigtramp + 26
3  libSystem.B.dylib 0x00007fff869f30aa tiny_malloc_from_free_list + 1196
4  libSystem.B.dylib 0x00007fff86ac99b4 __pthread_markcancel + 0
5  clang             0x000000010021faab llvm::IRBuilder<true,
llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true>
>::CreateCall(llvm::Value*, llvm::Value*, llvm::Twine const&) + 3979
6  clang             0x000000010022034c llvm::IRBuilder<true,
llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true>
>::CreateCall(llvm::Value*, llvm::Value*, llvm::Twine const&) + 6188
7  clang             0x00000001002211b9 llvm::IRBuilder<true,
llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true>
>::CreateCall(llvm::Value*, llvm::Value*, llvm::Twine const&) + 9881
8  clang             0x000000010018b15e std::vector<std::pair<llvm::WeakVH,
llvm::Constant*>, std::allocator<std::pair<llvm::WeakVH, llvm::Constant*> >
>::_M_insert_aux(__gnu_cxx::__normal_iterator<std::pair<llvm::WeakVH,
llvm::Constant*>*, std::vector<std::pair<llvm::WeakVH, llvm::Constant*>,
std::allocator<std::pair<llvm::WeakVH, llvm::Constant*> > > >,
std::pair<llvm::WeakVH, llvm::Constant*> const&) + 19454
9  clang             0x0000000100258acc
clang::SourceManager::getLocForStartOfFile(clang::FileID) const + 31420
10 clang             0x000000010025966a
clang::SourceManager::getLocForStartOfFile(clang::FileID) const + 34394
11 clang             0x0000000100261c59 llvm::DenseMap<clang::Expr const*,
llvm::Value*, llvm::DenseMapInfo<clang::Expr const*>,
llvm::DenseMapInfo<llvm::Value*> >::grow(unsigned int) + 28425
12 clang             0x0000000100264f6a llvm::DenseMap<clang::Expr const*,
llvm::Value*, llvm::DenseMapInfo<clang::Expr const*>,
llvm::DenseMapInfo<llvm::Value*> >::grow(unsigned int) + 41498
13 clang             0x00000001002651ff llvm::DenseMap<clang::Expr const*,
llvm::Value*, llvm::DenseMapInfo<clang::Expr const*>,
llvm::DenseMapInfo<llvm::Value*> >::grow(unsigned int) + 42159
14 clang             0x0000000100265bb0 llvm::DenseMap<clang::Expr const*,
llvm::Value*, llvm::DenseMapInfo<clang::Expr const*>,
llvm::DenseMapInfo<llvm::Value*> >::grow(unsigned int) + 44640
15 clang             0x000000010027ec8c
llvm::SmallVectorTemplateBase<llvm::APInt, false>::grow(unsigned long) + 1404
16 clang             0x000000010024f40b
llvm::DenseMap<std::pair<clang::CXXRecordDecl const*, unsigned int>, unsigned
long long, llvm::DenseMapInfo<std::pair<clang::CXXRecordDecl const*, unsigned
int> >, llvm::DenseMapInfo<unsigned long long> >::grow(unsigned int) + 1947
17 clang             0x00000001002939d2 llvm::DenseMap<clang::Stmt*, unsigned
int, llvm::DenseMapInfo<clang::Stmt*>, llvm::DenseMapInfo<unsigned int>
>::grow(unsigned int) + 690
18 clang             0x000000010024fcdc
llvm::DenseMap<std::pair<clang::CXXRecordDecl const*, unsigned int>, unsigned
long long, llvm::DenseMapInfo<std::pair<clang::CXXRecordDecl const*, unsigned
int> >, llvm::DenseMapInfo<unsigned long long> >::grow(unsigned int) + 4204
19 clang             0x0000000100033339 llvm::DenseMap<clang::IdentifierInfo
const*, unsigned int, llvm::DenseMapInfo<clang::IdentifierInfo const*>,
llvm::DenseMapInfo<unsigned int> >::grow(unsigned int) + 6505
20 clang             0x0000000100003205
21 clang             0x0000000100009f34 std::vector<std::string,
std::allocator<std::string> >::operator=(std::vector<std::string,
std::allocator<std::string> > const&) + 11316
22 clang             0x0000000100001334
23 clang             0x0000000000000037
Stack dump:
0.    Program arguments: /opt/bin/clang -cc1 -triple x86_64-apple-darwin9.0.0
-emit-obj -mrelax-all -disable-free -main-file-name cDocStore.mm -pic-level 1
-mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -g
-resource-dir /opt/lib/clang/2.8 -isysroot
/var/folders/cX/cXKleH18HyiK1CWAuQ836k++-+Y/-Caches-/com.apple.Xcode.1033/CompositeSDKs/MzSDK_1-MacOSX10.5-dlrshlecdsdsoecfswemdozhdpvj
-D DEBUG -I
/HOME/Documents/work_projects/devel/FC7QuarkReader/build/FC7QuarkReader.build/Debug/libReaderLib_Mac.build/ReaderLib_Mac.hmap
-F/HOME/Documents/work_projects/devel/FC7QuarkReader/build/Debug
-F"/var/folders/cX/cXKleH18HyiK1CWAuQ836k++-+Y/-Caches-/com.apple.Xcode.1033/CompositeSDKs/MzSDK_1-MacOSX10.5-dlrshlecdsdsoecfswemdozhdpvj/System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks"
-I /HOME/Documents/work_projects/devel/FC7QuarkReader/build/Debug/include -I
/var/folders/cX/cXKleH18HyiK1CWAuQ836k++-+Y/-Caches-/com.apple.Xcode.1033/CompositeSDKs/MzSDK_1-MacOSX10.5-dlrshlecdsdsoecfswemdozhdpvj/usr/local/include
-I
/HOME/Documents/work_projects/devel/FC7QuarkReader/build/FC7QuarkReader.build/Debug/libReaderLib_Mac.build/DerivedSources/x86_64
-I
/HOME/Documents/work_projects/devel/FC7QuarkReader/build/FC7QuarkReader.build/Debug/libReaderLib_Mac.build/DerivedSources
-O0 -Wno-trigraphs -Wreturn-type -Wunused-variable -ferror-limit 19
-fmessage-length 0 -fdiagnostics-print-source-range-info -fblocks -fexceptions
-fobjc-nonfragile-abi -fobjc-dispatch-method=non-legacy -fpascal-strings
-fdiagnostics-show-option -o
/HOME/Documents/work_projects/devel/FC7QuarkReader/build/FC7QuarkReader.build/Debug/libReaderLib_Mac.build/Objects-normal/x86_64/cDocStore-1F0AFC4B.o
-x objective-c++
/HOME/Documents/work_projects/devel/FC7QuarkReader/mac/cDocStore.mm 
1.   
/HOME/Documents/work_projects/devel/FC7QuarkReader/mac/cDocStore.mm:912:1:
current parser token 'NSArray'
2.   
/HOME/Documents/work_projects/devel/FC7QuarkReader/mac/cDocStore.mm:747:25:
LLVM IR generation of declaration
'nmsComMarkzware::nmsReaderLib::cDocStore_Private::resolveRelationshipForAllObjects'
3.   
/HOME/Documents/work_projects/devel/FC7QuarkReader/mac/cDocStore.mm:747:25:
Generating code for declaration
'nmsComMarkzware::nmsReaderLib::cDocStore_Private::resolveRelationshipForAllObjects'
clang: error: clang frontend command failed due to signal 6 (use -v to see
invocation)

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