[LLVMbugs] [Bug 6565] New: Assertion failed: incorrect data size provided to CreateTypeSourceInfo!

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Mar 10 02:40:29 PST 2010


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

           Summary: Assertion failed: incorrect data size provided to
                    CreateTypeSourceInfo!
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: Fons.Rademakers at cern.ch
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


When doing clang++ -c aap.cxx the result will be:

Assertion failed: (DataSize == TypeLoc::getFullDataSizeForType(T) && "incorrect
data size provided to CreateTypeSourceInfo!"), function CreateTypeSourceInfo,
file /Users/rdm/llvm/src/tools/clang/lib/AST/ASTContext.cpp, line 1144.
0  clang             0x0000000100d49c5f PrintStackTrace(void*) + 38
1  clang             0x0000000100d4a1ed SignalHandler(int) + 336
2  libSystem.B.dylib 0x00007fff88a66eaa _sigtramp + 26
3  libSystem.B.dylib 0x00000015002623ec _sigtramp + 2004858204
4  libSystem.B.dylib 0x00007fff88ae2e74 __pthread_markcancel + 0
5  clang             0x00000001004e7d37
clang::ASTContext::CreateTypeSourceInfo(clang::QualType, unsigned int) + 103
6  clang             0x000000010037d6d7
clang::TypeLocBuilder::getTypeSourceInfo(clang::ASTContext&, clang::QualType) +
143
7  clang             0x000000010039ca6c clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformType(clang::TypeSourceInfo*,
clang::QualType) + 286
8  clang             0x000000010039e26c clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformType(clang::QualType,
clang::QualType) + 178
9  clang             0x00000001003a30c2 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformNestedNameSpecifier(clang::NestedNameSpecifier*,
clang::SourceRange, clang::QualType, clang::NamedDecl*) + 934
10 clang             0x00000001003a8841 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformDeclRefExpr(clang::DeclRefExpr*) +
171
11 clang             0x00000001003a8d39 (anonymous
namespace)::TemplateInstantiator::TransformDeclRefExpr(clang::DeclRefExpr*) +
173
12 clang             0x0000000100392ab5 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformExpr(clang::Expr*) + 753
13 clang             0x0000000100397a01 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformImplicitCastExpr(clang::ImplicitCastExpr*)
+ 63
14 clang             0x00000001003930a0 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformExpr(clang::Expr*) + 2268
15 clang             0x00000001003983ae clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCallExpr(clang::CallExpr*) + 98
16 clang             0x0000000100392e9d clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformExpr(clang::Expr*) + 1753
17 clang             0x0000000100399a79 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformReturnStmt(clang::ReturnStmt*) + 77
18 clang             0x0000000100391b54 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformStmt(clang::Stmt*) + 2066
19 clang             0x000000010039227a clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCompoundStmt(clang::CompoundStmt*,
bool) + 178
20 clang             0x00000001003a8ef5 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCompoundStmt(clang::CompoundStmt*)
+ 55
21 clang             0x0000000100391631 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformStmt(clang::Stmt*) + 751
22 clang             0x00000001003ab710 clang::Sema::SubstStmt(clang::Stmt*,
clang::MultiLevelTemplateArgumentList const&) + 200
23 clang             0x00000001003becf6
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 1224
24 clang             0x00000001003a50e7
clang::Sema::InstantiateClassMembers(clang::SourceLocation,
clang::CXXRecordDecl*, clang::MultiLevelTemplateArgumentList const&,
clang::TemplateSpecializationKind) + 461
25 clang             0x00000001003ac638
clang::Sema::InstantiateClassTemplateSpecializationMembers(clang::SourceLocation,
clang::ClassTemplateSpecializationDecl*, clang::TemplateSpecializationKind) +
92
26 clang             0x000000010036b2f8
clang::Sema::ActOnExplicitInstantiation(clang::Scope*, clang::SourceLocation,
clang::SourceLocation, unsigned int, clang::SourceLocation, clang::CXXScopeSpec
const&, clang::OpaquePtr<2>, clang::SourceLocation, clang::SourceLocation,
clang::ASTTemplateArgsPtr, clang::SourceLocation, clang::AttributeList*) + 2012
27 clang             0x00000001005cd17c
clang::Parser::ParseClassSpecifier(clang::tok::TokenKind,
clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo
const&, clang::AccessSpecifier, bool) + 2930
28 clang             0x00000001005c0e7d
clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext) + 6781
29 clang             0x00000001005fa801
clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int,
clang::Parser::ParsedTemplateInfo const&, clang::SourceLocation&,
clang::AccessSpecifier) + 365
30 clang             0x00000001005fac9b
clang::Parser::ParseExplicitInstantiation(clang::SourceLocation,
clang::SourceLocation, clang::SourceLocation&) + 65
31 clang             0x00000001005fb17d
clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier) + 133
32 clang             0x00000001005c4f4f
clang::Parser::ParseDeclaration(unsigned int, clang::SourceLocation&,
clang::CXX0XAttributeList) + 331
33 clang             0x00000001006012f5
clang::Parser::ParseExternalDeclaration(clang::CXX0XAttributeList) + 1985
34 clang             0x0000000100601517
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<1>&) + 247
35 clang             0x0000000100231e71 clang::ParseAST(clang::Preprocessor&,
clang::ASTConsumer*, clang::ASTContext&, bool, bool,
clang::CodeCompleteConsumer*) + 523
36 clang             0x000000010005a2d8
clang::ASTFrontendAction::ExecuteAction() + 256
37 clang             0x000000010005a3c8 clang::FrontendAction::Execute() + 226
38 clang             0x000000010003e114
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 726
39 clang             0x000000010001e15c cc1_main(char const**, char const**,
char const*, void*) + 1296
40 clang             0x0000000100022361 main + 252
41 clang             0x000000010001d134 start + 52
Stack dump:
0.      Program arguments: /Users/rdm/llvm/inst/bin/clang -cc1 -triple
x86_64-apple-darwin10.0.0 -S -disable-free -main-file-name aap.cxx -pic-level 1
-mdisable-fp-elim -munwind-tables -target-cpu core2 -resource-dir
/Users/rdm/llvm/inst/lib/clang/1.1 -fmessage-length 80 -stack-protector 1
-fblocks -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
/var/folders/zK/zKJDfZztH5upJbZEL05q7U+++TI/-Tmp-/cc-3gn258.s -x c++ aap.cxx 
1.      math/mathcore/src/TKDTree.cxx:1212:39: current parser token ';'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)

File compiles fine with g++.

Cheers, Fons.

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