Hitting assert in templatedeclaration.h:274 in cppduchain

Andreas Pakulat apaku at gmx.de
Thu Jan 29 23:40:34 UTC 2009


Hi,

so I got kdev4 to load a project, open a .ui file (that was an accident,
but it worked) and then tried a .cpp -> Crash :(

Apparently I'm hitting the assert in line 274 in templatedeclaration.h in
cppduchain. I've loaded projectmanagerview.cpp from
kdevplatform/plugins/projectmanagerview and I did scroll down two pages
right after it opened...

Backtrace:
        kdev4cppduchain.dll!Cpp::SpecialTemplateDeclaration<KDevelop::ForwardDeclaration>::resolve(const
KDevelop::TopDUContext * __formal=0x137e1b78)  Zeile 274 + 0x20 Bytes   C++
>       kdevplatformlanguage.dll!KDevelop::ForwardDeclaration::logicalInternalContext(const
>       KDevelop::TopDUContext * topContext=0x137e1b78)  Zeile 100 + 0x13
>       Bytes   C++
        kdev4cppduchain.dll!Cpp::OverloadResolutionHelper::resolve(bool
partial=false)  Zeile 75 + 0x83 Bytes   C++
        kdev4cppduchain.dll!Cpp::ExpressionVisitor::visitBinaryExpression(BinaryExpressionAST
* node=0x13d06ba8)  Zeile 936 + 0x14 Bytes      C++
        kdev4cppparser.dll!Visitor::visit(AST * node=0x13d06ba8)  Zeile 113
+ 0x17 Bytes    C++
        kdev4cppduchain.dll!Cpp::ExpressionVisitor::visitExpressionStatement(ExpressionStatementAST
* node=0x13d06bc4)  Zeile 1329 + 0x16 Bytes     C++
        kdev4cppparser.dll!Visitor::visit(AST * node=0x13d06bc4)  Zeile 113
+ 0x17 Bytes    C++
        kdev4cppduchain.dll!Cpp::ExpressionVisitor::parse(AST *
ast=0x13d06bc4)  Zeile 227 + 0x13 Bytes C++
        kdev4cppduchain.dll!UseBuilder::visitExpression(AST *
node=0x13d06bc4)  Zeile 154     C++
        kdev4cppduchain.dll!UseBuilder::visitExpressionStatement(ExpressionStatementAST
* exp=0x13d06bc4)  Zeile 85     C++
        kdev4cppparser.dll!Visitor::visit(AST * node=0x13d06bc4)  Zeile 113
+ 0x17 Bytes    C++
        kdev4cppparser.dll!visitNodes<StatementAST *>(Visitor *
v=0x15b7fa48, const ListNode<StatementAST *> * nodes=0x13d06bd8)  Zeile 128
+ 0x15 Bytes    C++
        kdev4cppparser.dll!DefaultVisitor::visitCompoundStatement(CompoundStatementAST
* node=0x13d067f8)  Zeile 68 + 0x10 Bytes       C++
        kdev4cppduchain.dll!ContextBuilder::visitCompoundStatement(CompoundStatementAST
* node=0x13d067f8)  Zeile 702 + 0xf Bytes       C++
        kdev4cppparser.dll!Visitor::visit(AST * node=0x13d067f8)  Zeile 113
+ 0x17 Bytes    C++
        kdev4cppparser.dll!visitNodes<StatementAST *>(Visitor *
v=0x15b7fa48, const ListNode<StatementAST *> * nodes=0x13d07298)  Zeile 128
+ 0x15 Bytes    C++
        kdev4cppparser.dll!DefaultVisitor::visitCompoundStatement(CompoundStatementAST
* node=0x13d04ce0)  Zeile 68 + 0x10 Bytes       C++
        kdev4cppduchain.dll!ContextBuilder::visitCompoundStatement(CompoundStatementAST
* node=0x13d04ce0)  Zeile 702 + 0xf Bytes       C++
        kdev4cppparser.dll!Visitor::visit(AST * node=0x13d04ce0)  Zeile 113
+ 0x17 Bytes    C++
        kdev4cppduchain.dll!ContextBuilder::visitFunctionDefinition(FunctionDefinitionAST
* node=0x13d072a4)  Zeile 621 + 0x16 Bytes      C++
        kdev4cppparser.dll!Visitor::visit(AST * node=0x13d072a4)  Zeile 113
+ 0x17 Bytes    C++
        kdev4cppparser.dll!visitNodes<DeclarationAST *>(Visitor *
v=0x15b7fa48, const ListNode<DeclarationAST *> * nodes=0x13e304e4)  Zeile
128 + 0x15 Bytes        C++
        kdev4cppparser.dll!DefaultVisitor::visitTranslationUnit(TranslationUnitAST
* node=0x13cf7ec0)  Zeile 394 + 0x10 Bytes      C++
        kdev4cppparser.dll!Visitor::visit(AST * node=0x13cf7ec0)  Zeile 113
+ 0x17 Bytes    C++
        kdev4cppduchain.dll!ContextBuilder::startVisiting(AST *
node=0x13cf7ec0)  Zeile 161 + 0x17 Bytes        C++
        kdev4cppduchain.dll!KDevelop::AbstractContextBuilder<AST,NameAST>::supportBuild(AST
* node=0x13cf7ec0, KDevelop::DUContext * context=0x137e1b78)  Zeile 201 +
* 0x13 Bytes    C++
        kdev4cppduchain.dll!KDevelop::AbstractUseBuilder<AST,NameAST,ContextBuilder>::buildUses(AST
* node=0x13cf7ec0)  Zeile 71    C++
        kdev4cppduchain.dll!UseBuilder::buildUses(AST * node=0x13cf7ec0)
Zeile 67        C++
        kdevcpplanguagesupport.dll!CPPInternalParseJob::run()  Zeile 641 +
0x15 Bytes      C++
        threadweaver.dll!ThreadWeaver::JobRunHelper::runTheJob(ThreadWeaver::Thread
* th=0x1371de48, ThreadWeaver::Job * job=0x13753620)  Zeile 106 + 0xf Bytes
* C++
        threadweaver.dll!ThreadWeaver::Job::execute(ThreadWeaver::Thread *
th=0x1371de48)  Zeile 136       C++
        threadweaver.dll!ThreadWeaver::JobCollectionJobRunner::execute(ThreadWeaver::Thread
* t=0x1371de48)  Zeile 82 + 0x21 Bytes  C++
        threadweaver.dll!ThreadWeaver::ThreadRunHelper::run(ThreadWeaver::WeaverImpl
* parent=0x05b06750, ThreadWeaver::Thread * th=0x1371de48)  Zeile 95 + 0x19
* Bytes C++
        threadweaver.dll!ThreadWeaver::Thread::run()  Zeile 144 C++


-- 
Don't kiss an elephant on the lips today.




More information about the KDevelop-devel mailing list