[LLVMbugs] [Bug 10378] New: ASTContext.cpp assertion failure

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Jul 16 09:47:18 PDT 2011


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

           Summary: ASTContext.cpp assertion failure
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: ejtttje at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Using svn-bisect, I have determined that revision 131365 introduced an
assertion which is failing on one of my Objective-C++ source files.  (The
failure occurs at both that revision and through to the current trunk.)  Clang
was built as Release+Asserts

You can view the file in question here:
http://cvs.tekkotsu.org/viewvc/Tekkotsu/local/DataSources/CameraSourceQTKit.mm?view=markup

I will append the assertion failure report from clang below, let me know if
there is anything else I can provide to help resolve this, thanks!

Assertion failed:
(!FieldOrBaseOffsets[layout.getVBaseClassOffsetInBits(base)]), function
getObjCEncodingForStructureImpl, file ASTContext.cpp, line 4474.
0  clang             0x00000001016ef862
llvm::SmallVectorTemplateBase<llvm_regmatch_t, false>::grow(unsigned long) +
818
1  clang             0x00000001016f07e3
llvm::SmallVectorTemplateBase<llvm_regmatch_t, false>::grow(unsigned long) +
4787
2  libSystem.B.dylib 0x00007fff879bd1ba _sigtramp + 26
3  libSystem.B.dylib 0x00007fff5fbfb1a0 _sigtramp + 3626229760
4  clang             0x00000001016efce2
llvm::SmallVectorTemplateBase<llvm_regmatch_t, false>::grow(unsigned long) +
1970
5  clang             0x0000000100868a33 clang::ASTConsumer::~ASTConsumer() +
71699
6  clang             0x000000010086a495 clang::ASTConsumer::~ASTConsumer() +
78453
7  clang             0x0000000100869188 clang::ASTConsumer::~ASTConsumer() +
73576
8  clang             0x00000001008760de clang::ASTConsumer::~ASTConsumer() +
126654
9  clang             0x000000010025b816 llvm::IRBuilder<true,
llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true>
>::CreateStructGEP(llvm::Value*, unsigned int, llvm::Twine const&) + 24726
10 clang             0x000000010026949c llvm::IRBuilder<true,
llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true>
>::CreateStructGEP(llvm::Value*, unsigned int, llvm::Twine const&) + 81180
11 clang             0x00000001002777cf llvm::IRBuilder<true,
llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true>
>::CreateStructGEP(llvm::Value*, unsigned int, llvm::Twine const&) + 139343
12 clang             0x000000010027877a llvm::IRBuilder<true,
llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true>
>::CreateStructGEP(llvm::Value*, unsigned int, llvm::Twine const&) + 143354
13 clang             0x00000001002cd9c9 llvm::DenseMap<clang::Expr const*,
llvm::Value*, llvm::DenseMapInfo<clang::Expr const*>,
llvm::DenseMapInfo<llvm::Value*> >::grow(unsigned int) + 46393
14 clang             0x00000001002e00ff llvm::IRBuilder<true,
llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true>
>::CreateExtractValue(llvm::Value*, unsigned int, llvm::Twine const&) + 3231
15 clang             0x00000001002bbe3b
clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) + 155
16 clang             0x00000001002ecc72 llvm::IRBuilder<true,
llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true>
>::CreateAdd(llvm::Value*, llvm::Value*, llvm::Twine const&, bool, bool) + 674
17 clang             0x00000001002ba34c
llvm::DenseMap<clang::CodeGen::GlobalDecl, long long,
llvm::DenseMapInfo<clang::CodeGen::GlobalDecl>, llvm::DenseMapInfo<long long>
>::grow(unsigned int) + 2188
18 clang             0x0000000100041ff1 llvm::DenseMap<clang::IdentifierInfo
const*, unsigned int, llvm::DenseMapInfo<clang::IdentifierInfo const*>,
llvm::DenseMapInfo<unsigned int> >::grow(unsigned int) + 8945
19 clang             0x000000010000a4c5 std::_Rb_tree<std::string, std::string,
std::_Identity<std::string>, std::less<std::string>,
std::allocator<std::string> >::_M_insert_unique(std::string const&) + 1893
20 clang             0x0000000100001718
21 clang             0x0000000100009682 std::vector<std::string,
std::allocator<std::string> >::operator=(std::vector<std::string,
std::allocator<std::string> > const&) + 12962
22 clang             0x0000000100000b34
Stack dump:
0.    Program arguments: /usr/local/clang/bin/clang -cc1 -triple
x86_64-apple-macosx10.6.8 -emit-obj -mrelax-all -disable-free -main-file-name
CameraSourceQTKit.mm -pic-level 1 -mdisable-fp-elim -masm-verbose
-munwind-tables -target-cpu core2 -target-linker-version 123.2 -g
-coverage-file
/Users/ejt/todo/Tekkotsu/project/build/Make.build/Clang/tekkotsu-Chiara.build/Objects-normal/x86_64/CameraSourceQTKit.o
-resource-dir /usr/local/clang/bin/../lib/clang/3.0 -iquote
/Users/ejt/todo/Tekkotsu/project/build/Make.build/Clang/tekkotsu-Chiara.build/tekkotsu-CHIARA-generated-files.hmap
-iquote
/Users/ejt/todo/Tekkotsu/project/build/Make.build/Clang/tekkotsu-Chiara.build/tekkotsu-CHIARA-project-headers.hmap
-include-pch
/var/folders/yD/yDuH0ZKwH2eve2V192DILE+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/common-fpwetdlsyucehhcfiphrusldwvxi/common.h.pth
-D DEBUG -D HAVE_READDIR_R -D NO_LIBTEKKOTSU -D PLATFORM_LOCAL -D TGT_CHIARA -I
/Users/ejt/todo/Tekkotsu/project/build/Make.build/Clang/tekkotsu-Chiara.build/tekkotsu-CHIARA-own-target-headers.hmap
-I
/Users/ejt/todo/Tekkotsu/project/build/Make.build/Clang/tekkotsu-Chiara.build/tekkotsu-CHIARA-all-target-headers.hmap
-I /Users/ejt/todo/Tekkotsu/project/build/Clang/include -I
/Users/ejt/todo/Tekkotsu/project/build/Make.build/DerivedSources -I
/Users/ejt/todo/Tekkotsu -I /opt/local/include -I /usr/include/libxml2 -I
/Users/ejt/todo/Tekkotsu/project/build/Make.build/Clang/tekkotsu-Chiara.build/DerivedSources/x86_64
-I
/Users/ejt/todo/Tekkotsu/project/build/Make.build/Clang/tekkotsu-Chiara.build/DerivedSources
-F/Users/ejt/todo/Tekkotsu/project/build/Clang -O0 -Wno-trigraphs
-Wmissing-field-initializers -Wreturn-type -Wnon-virtual-dtor
-Woverloaded-virtual -Wmissing-braces -Wparentheses -Wswitch -Wunused-function
-Wunused-label -Wno-unused-parameter -Wunused-variable -Wunused-value
-Wsign-compare -Wnewline-eof -Wall -Wpointer-arith -Wcast-qual
-Woverloaded-virtual -Wdeprecated -Wno-mismatched-tags
-Wno-tautological-compare -Wno-shadow -Wno-mismatched-tags
-Wno-tautological-compare -fdeprecated-macro -ferror-limit 19 -fmessage-length
0 -fvisibility hidden -fvisibility-inlines-hidden
-fdiagnostics-print-source-range-info -fdiagnostics-parseable-fixits
-stack-protector 1 -fblocks -fobjc-exceptions -fcxx-exceptions -fexceptions
-fobjc-nonfragile-abi -fobjc-dispatch-method=mixed -fpascal-strings
-fdiagnostics-show-option -fdiagnostics-show-category id -o
/Users/ejt/todo/Tekkotsu/project/build/Make.build/Clang/tekkotsu-Chiara.build/Objects-normal/x86_64/CameraSourceQTKit.o
-x objective-c++
/Users/ejt/todo/Tekkotsu/local/DataSources/CameraSourceQTKit.mm 
1.    <eof> parser at end of file
2.    /Users/ejt/todo/Tekkotsu/local/DataSources/CameraSourceQTKit.mm:494:1:
LLVM IR generation of declaration 'CameraSourceQTKitDelegate'
clang: error: unable to execute command: Illegal instruction
clang: error: clang frontend command failed due to signal 1 (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