[LLVMbugs] [Bug 7741] New: assertion failed in cDocStore.mm

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jul 28 17:40:07 PDT 2010


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

           Summary: assertion failed in cDocStore.mm
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            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


the following error log is produced when compiling cDocStore.mm.  preprocessed
file is attached.





$ /opt/bin/clang++ cDocStore-1F0AFC4B.mii
In file included from
/HOME/Documents/work_projects/devel/PROJECT/mac/cDocStore.mm:1:
In file included from
/HOME/Documents/work_projects/devel/PROJECT/mac/cDocStore.mm:17:
In file included from
/HOME/Documents/work_projects/devel/PROJECT/readerLib/cDocStore.h:21:
In file included from
/HOME/Documents/work_projects/devel/PROJECT/readerLib/iFetchResultHandler.h:15:
In file included from
/HOME/Documents/work_projects/devel/PROJECT/readerLib/cItr.h:17:
In file included from
/HOME/Documents/work_projects/devel/PROJECT/readerLib/cProperty.h:19:
/HOME/Documents/work_projects/devel/PROJECT/readerLib/cSchemaKey.h:210:13:
warning: expression result unused [-Wunused-value]
            static_cast<cPropertyKey&>(tmpTest);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/HOME/Documents/work_projects/devel/PROJECT/readerLib/cSchemaKey.h:273:13:
warning: expression result unused [-Wunused-value]
            static_cast<cRelationshipKey&>(tmpTest);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from
/HOME/Documents/work_projects/devel/PROJECT/mac/cDocStore.mm:1:
In file included from
/HOME/Documents/work_projects/devel/PROJECT/mac/cDocStore.mm:17:
In file included from
/Users/jamesgregurich/Documents/work_projects/devel/PROJECT/readerLib/cDocStore.h:26:
/Users/jamesgregurich/Documents/work_projects/devel/PROJECT/readerLib/cPredicate.h:557:9:
warning: only local variables can be arguments to '#pragma unused'
#pragma unused(LIKE)
        ^      ~~~~
/Users/jamesgregurich/Documents/work_projects/devel/PROJECT/readerLib/cPredicate.h:559:9:
warning: only local variables can be arguments to '#pragma unused'
#pragma unused(BEGINSWITH)
        ^      ~~~~~~~~~~
/Users/jamesgregurich/Documents/work_projects/devel/PROJECT/readerLib/cPredicate.h:561:9:
warning: only local variables can be arguments to '#pragma unused'
#pragma unused(CONTAINS)
        ^      ~~~~~~~~
/Users/jamesgregurich/Documents/work_projects/devel/PROJECT/readerLib/cPredicate.h:563:9:
warning: only local variables can be arguments to '#pragma unused'
#pragma unused(ENDSWITH)
        ^      ~~~~~~~~
/Users/jamesgregurich/Documents/work_projects/devel/PROJECT/readerLib/cPredicate.h:565:9:
warning: only local variables can be arguments to '#pragma unused'
#pragma unused(MATCHES)
        ^      ~~~~~~~
/Users/jamesgregurich/Documents/work_projects/devel/PROJECT/readerLib/cPredicate.h:567:9:
warning: only local variables can be arguments to '#pragma unused'
#pragma unused(c)
        ^      ~
/HOME/Documents/work_projects/devel/PROJECT/readerLib/cPredicate.h:569:9:
warning: only local variables can be arguments to '#pragma unused'
#pragma unused(d)
        ^      ~
/HOME/Documents/work_projects/devel/PROJECT/readerLib/cPredicate.h:571:9:
warning: only local variables can be arguments to '#pragma unused'
#pragma unused(cd)
        ^      ~~
/HOME/Documents/work_projects/devel/PROJECT/readerLib/cPredicate.h:573:9:
warning: only local variables can be arguments to '#pragma unused'
#pragma unused(SELF)
        ^      ~~~~
/HOME/Documents/work_projects/devel/PROJECT/readerLib/cPredicate.h:575:9:
warning: only local variables can be arguments to '#pragma unused'
#pragma unused(BETWEEN)
        ^      ~~~~~~~
/HOME/Documents/work_projects/devel/PROJECT/readerLib/cPredicate.h:577:9:
warning: only local variables can be arguments to '#pragma unused'
#pragma unused(IN)
        ^      ~~
Assertion failed: (isa<X>(Val) && "cast<Ty>() argument of incompatible type!"),
function cast, file /scratch/llvm_build/llvm/include/llvm/Support/Casting.h,
line 202.
0  clang             0x00000001012f0ac2 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&) + 11634
1  clang             0x00000001012f1813 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&) + 15043
2  libSystem.B.dylib 0x00007fff86a4e35a _sigtramp + 26
3  libSystem.B.dylib 0x0000000105e37cc0 _sigtramp + 2134808960
4  libSystem.B.dylib 0x00007fff86ac99b4 __pthread_markcancel + 0
5  clang             0x00000001006f2a3b clang::TemplateDecl*
llvm::PointerUnion4<clang::TemplateDecl*, clang::OverloadedTemplateStorage*,
clang::QualifiedTemplateName*,
clang::DependentTemplateName*>::get<clang::TemplateDecl*>() const + 18139
6  clang             0x000000010049dbec
clang::DeclaratorDecl::getTypeSourceInfo() const + 6908
7  clang             0x000000010049e479
clang::DeclaratorDecl::getTypeSourceInfo() const + 9097
8  clang             0x00000001003effee
llvm::DenseMap<clang::ObjCPropertyDecl*, char,
llvm::DenseMapInfo<clang::ObjCPropertyDecl*>, llvm::DenseMapInfo<char>
>::grow(unsigned int) + 58846
9  clang             0x00000001003b85f2
clang::SelectorTable::constructSetterName(clang::IdentifierTable&,
clang::SelectorTable&, clang::IdentifierInfo const*) + 9778
10 clang             0x00000001003ba7c4
clang::SelectorTable::constructSetterName(clang::IdentifierTable&,
clang::SelectorTable&, clang::IdentifierInfo const*) + 18436
11 clang             0x00000001003c7b31
clang::SelectorTable::constructSetterName(clang::IdentifierTable&,
clang::SelectorTable&, clang::IdentifierInfo const*) + 72561
12 clang             0x000000010037f5d3
llvm::cast_retty<clang::FunctionTypeLoc, clang::TypeLoc*>::ret_type
llvm::cast<clang::FunctionTypeLoc, clang::TypeLoc*>(clang::TypeLoc* const&) +
202627
13 clang             0x0000000100380066
llvm::cast_retty<clang::FunctionTypeLoc, clang::TypeLoc*>::ret_type
llvm::cast<clang::FunctionTypeLoc, clang::TypeLoc*>(clang::TypeLoc* const&) +
205334
14 clang             0x00000001003807cc
llvm::cast_retty<clang::FunctionTypeLoc, clang::TypeLoc*>::ret_type
llvm::cast<clang::FunctionTypeLoc, clang::TypeLoc*>(clang::TypeLoc* const&) +
207228
15 clang             0x0000000100381697
llvm::cast_retty<clang::FunctionTypeLoc, clang::TypeLoc*>::ret_type
llvm::cast<clang::FunctionTypeLoc, clang::TypeLoc*>(clang::TypeLoc* const&) +
211015
16 clang             0x0000000100723fd5 clang::Declarator::clear() + 6357
17 clang             0x0000000100724c47 clang::Declarator::clear() + 9543
18 clang             0x00000001007259fa clang::Declarator::clear() + 13050
19 clang             0x0000000100726ce6 clang::Declarator::clear() + 17894
20 clang             0x000000010070c77c clang::Parser::ConsumeAnyToken() +
18252
21 clang             0x00000001007170c3 clang::Parser::ConsumeAnyToken() +
61587
22 clang             0x0000000100717cb6 clang::Parser::ConsumeAnyToken() +
64646
23 clang             0x0000000100717db9 clang::Parser::ConsumeAnyToken() +
64905
24 clang             0x0000000100743f3a
clang::PragmaWeakHandler::~PragmaWeakHandler() + 10442
25 clang             0x00000001007441e3
clang::PragmaWeakHandler::~PragmaWeakHandler() + 11123
26 clang             0x0000000100744773
clang::PragmaWeakHandler::~PragmaWeakHandler() + 12547
27 clang             0x0000000100743a57
clang::PragmaWeakHandler::~PragmaWeakHandler() + 9191
28 clang             0x00000001007462a8
clang::PragmaWeakHandler::~PragmaWeakHandler() + 19512
29 clang             0x0000000100743cf5
clang::PragmaWeakHandler::~PragmaWeakHandler() + 9861
30 clang             0x00000001007441e3
clang::PragmaWeakHandler::~PragmaWeakHandler() + 11123
31 clang             0x000000010074466d
clang::PragmaWeakHandler::~PragmaWeakHandler() + 12285
32 clang             0x000000010075633c
llvm::SmallVectorTemplateBase<clang::ParsedTemplateArgument,
false>::grow(unsigned long) + 42588
33 clang             0x00000001007174a2 clang::Parser::ConsumeAnyToken() +
62578
34 clang             0x0000000100753781
llvm::SmallVectorTemplateBase<clang::ParsedTemplateArgument,
false>::grow(unsigned long) + 31393
35 clang             0x0000000100753bbe
llvm::SmallVectorTemplateBase<clang::ParsedTemplateArgument,
false>::grow(unsigned long) + 32478
36 clang             0x00000001007546b5
llvm::SmallVectorTemplateBase<clang::ParsedTemplateArgument,
false>::grow(unsigned long) + 35285
37 clang             0x0000000100755188
llvm::SmallVectorTemplateBase<clang::ParsedTemplateArgument,
false>::grow(unsigned long) + 38056
38 clang             0x000000010028697b llvm::DenseMap<clang::Stmt*, unsigned
int, llvm::DenseMapInfo<clang::Stmt*>, llvm::DenseMapInfo<unsigned int>
>::grow(unsigned int) + 667
39 clang             0x0000000100243bfc llvm::IRBuilder<true,
llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true>
>::CreateConstInBoundsGEP1_64(llvm::Value*, unsigned long long, llvm::Twine
const&) + 4620
40 clang             0x000000010002e7f9 llvm::DenseMap<clang::IdentifierInfo
const*, unsigned int, llvm::DenseMapInfo<clang::IdentifierInfo const*>,
llvm::DenseMapInfo<unsigned int> >::grow(unsigned int) + 6521
41 clang             0x00000001000029e5
42 clang             0x00000001000095a4 std::vector<std::string,
std::allocator<std::string> >::operator=(std::vector<std::string,
std::allocator<std::string> > const&) + 10820
43 clang             0x0000000100000b34
Stack dump:
0.    Program arguments: /opt/bin/clang -cc1 -triple x86_64-apple-darwin10.0.0
-emit-obj -mrelax-all -disable-free -main-file-name cDocStore-1F0AFC4B.mii
-pic-level 1 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2
-resource-dir /opt/lib/clang/2.8 -ferror-limit 19 -fmessage-length 173
-stack-protector 1 -fblocks -fexceptions -fobjc-nonfragile-abi
-fobjc-dispatch-method=mixed -fdiagnostics-show-option -fcolor-diagnostics -o
/var/folders/cX/cXKleH18HyiK1CWAuQ836k++-+Y/-Tmp-/cc-SRd1GK.o -x
objective-c++-cpp-output cDocStore-1F0AFC4B.mii 
1.    /HOME/Documents/work_projects/devel/PROJECT/mac/cDocStore.mm:865:92:
current parser token ')'
2.    /HOME/Documents/work_projects/devel/PROJECT/mac/cDocStore.mm:749:1:
parsing function body
'nmsComMarkzware::nmsReaderLib::cDocStore_Private::resolveRelationshipForAllObjects'
3.    /HOME/Documents/work_projects/devel/PROJECT/mac/cDocStore.mm:749:1: in
compound statement ('{}')
4.    /HOME/Documents/work_projects/devel/PROJECT/mac/cDocStore.mm:830:5: in
compound statement ('{}')
clang: error: clang frontend command failed due to signal 6 (use -v to see
invocation)
bubba:x86_64 jamesgregurich$

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