Bug 321636 - C++ background parser crashes: missing KDevelop::AbstractType object
Summary: C++ background parser crashes: missing KDevelop::AbstractType object
Status: RESOLVED DUPLICATE of bug 318972
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (show other bugs)
Version: git master
Platform: Other Linux
: NOR crash
Target Milestone: 4.3.0
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-26 14:12 UTC by Vasiliy Yeremeyev
Modified: 2013-07-01 17:38 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vasiliy Yeremeyev 2013-06-26 14:12:58 UTC
Kdevelop crashes after some period of time on some (unknown?) c++ type or something like that -- please see the backtrace provided. Everything works fine if background C++ parser isn't enabled.

#0  KDevelop::AbstractType::makeDynamic (this=this@entry=0x0) at kdevplatform/language/duchain/types/abstracttype.cpp:35
#1  0x00007ffff1e3ffc1 in d_func_dynamic (this=0x0) at kdevplatform/language/duchain/types/abstracttype.h:284
#2  KDevelop::AbstractType::setModifiers (this=0x0, modifiers=1) at kdevplatform/language/duchain/types/abstracttype.cpp:57
#3  0x00007fff489fc70d in TypeBuilder::createIntegralTypeForExpression (this=0x7fff2e3ebbb0, expression=0x7ffee7e13550) at kdevelop/languages/cpp/cppduchain/typebuilder.cpp:469
#4  0x00007fff489cde6e in ContextBuilder::visitDeclarator (this=0x7fff2e3ebbb0, node=0x7ffee7e12d20) at kdevelop/languages/cpp/cppduchain/contextbuilder.cpp:937
#5  0x00007fff489e0695 in DeclarationBuilder::visitDeclarator (this=0x7fff2e3ebbb0, node=0x7ffee7e12d20) at kdevelop/languages/cpp/cppduchain/declarationbuilder.cpp:532
#6  0x00007fff489cf057 in ContextBuilder::visitInitDeclarator (this=0x7fff2e3ebbb0, node=0x7ffee7e135a0) at kdevelop/languages/cpp/cppduchain/contextbuilder.cpp:912
#7  0x00007fff489dc52f in DeclarationBuilder::visitInitDeclarator (this=0x7fff2e3ebbb0, node=0x7ffee7e135a0) at kdevelop/languages/cpp/cppduchain/declarationbuilder.cpp:256
#8  0x00007fff489faa3c in TypeBuilder::visitSimpleDeclaration (this=0x7fff2e3ebbb0, node=0x7ffee7e135e0) at kdevelop/languages/cpp/cppduchain/typebuilder.cpp:673
#9  0x00007fff489deee8 in DeclarationBuilder::visitSimpleDeclaration (this=0x7fff2e3ebbb0, node=0x7ffee7e135e0) at kdevelop/languages/cpp/cppduchain/declarationbuilder.cpp:422
#10 0x00007fff487259d9 in visitNodes<StatementAST*> (nodes=<optimized out>, v=<optimized out>) at kdevelop/languages/cpp/parser/visitor.h:139
#11 DefaultVisitor::visitCompoundStatement (this=0x7fff2e3ebc10, node=<optimized out>) at kdevelop/languages/cpp/parser/default_visitor.cpp:73
#12 0x00007fff489cdd3c in ContextBuilder::visitCompoundStatement (this=0x7fff2e3ebbb0, node=0x7ffee7e0f8a0) at kdevelop/languages/cpp/cppduchain/contextbuilder.cpp:674
#13 0x00007fff489cdc5f in ContextBuilder::visitFunctionDefinition (this=0x7fff2e3ebbb0, node=0x7ffee7e1e7f0) at kdevelop/languages/cpp/cppduchain/contextbuilder.cpp:592
#14 0x00007fff487262b9 in visitNodes<DeclarationAST*> (v=0x7fff2e3ebc10, nodes=<optimized out>) at kdevelop/languages/cpp/parser/visitor.h:139
#15 0x00007fff489d02c9 in KDevelop::AbstractContextBuilder<AST, NameAST>::supportBuild (this=0x7fff2e3ebbb0, node=0x7ffedcaf3950, context=<optimized out>) at /usr/include/kdevplatform/language/duchain/builders/abstractcontextbuilder.h:133
#16 0x00007fff489cf88a in ContextBuilder::buildContexts (this=0x7fff2e3ebbb0, file=..., node=0x7ffedcaf3950, includes=<optimized out>, updateContext=..., removeOldImports=false)
    at kdevelop/languages/cpp/cppduchain/contextbuilder.cpp:422
#17 0x00007fff489db052 in DeclarationBuilder::buildDeclarations (this=<optimized out>, file=..., node=<optimized out>, includes=<optimized out>, updateContext=..., removeOldImports=false)
    at kdevelop/languages/cpp/cppduchain/declarationbuilder.cpp:96
#18 0x00007fff48ef4a46 in CPPInternalParseJob::run (this=<optimized out>) at kdevelop/languages/cpp/cppparsejob.cpp:644
#19 0x00007fffec32c8fa in ?? () from /usr/lib64/libthreadweaver.so.4
#20 0x00007fffec32ca71 in ThreadWeaver::Job::execute(ThreadWeaver::Thread*) () from /usr/lib64/libthreadweaver.so.4
#21 0x00007fffec32da73 in ?? () from /usr/lib64/libthreadweaver.so.4
#22 0x00007fffec32c0df in ?? () from /usr/lib64/libthreadweaver.so.4
#23 0x00007fffec32c19b in ThreadWeaver::Thread::run() () from /usr/lib64/libthreadweaver.so.4
#24 0x00007ffff5c92a0c in ?? () from /usr/lib64/qt4/libQtCore.so.4
#25 0x00007ffff46bef4a in start_thread () from /lib64/libpthread.so.0
#26 0x00007ffff49bd23d in clone () from /lib64/libc.so.6

kdevpatform: 7e25612 Aleix Pol Wed, 26 Jun 2013 02:41:02 +0200 Relicense the ProjectChangesModel
kdevelop: 333aa33 Aleix Pol Tue, 25 Jun 2013 02:53:49 +0200 Fix loading Qt help
KDE: 4.10.3

This bug is related to #318972. 

Reproducible: Always

Steps to Reproduce:
Seems like this bug depends on c++ code.
Comment 1 Kevin Funk 2013-07-01 17:38:54 UTC

*** This bug has been marked as a duplicate of bug 318972 ***