Summary: | KDevelop-PHP plugin crashes when parsing a file | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Davide <netcelli.tux> |
Component: | general | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED WORKSFORME | ||
Severity: | crash | Keywords: | investigated, triaged |
Priority: | NOR | ||
Version: | 4.0.80 | ||
Target Milestone: | 4.1.0 | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Davide
2010-09-10 14:24:01 UTC
please give me a link to download said project so I can try to reproduce myself. otherwise reproduce with better debug symbols or at least tell me what the cli says before the crash (I think this is an assertion). Here the link: http://www.yiiframework.com/files/yii-1.1.4.tar.gz Right now it doesn't crash anymore; it's a bit strange because before it happened every time I opened that file. About debug symbol: on Gentoo kdevplatform, kdevelop and php plugin are compiled with debug use flag that enable debug. Btw I'm running kdevelop from cli and will let you now in case of new crash. Hello, KDevelop crashed again and you was right, it is an assertion. Here the output from console: kdevelop(12078)/kdevplatform (shell) KDevelop::Language::deactivate: deactivating language "Php" kdevelop(12078)/kdevplatform (shell) KDevelop::Language::activate: activating language "Php" kdevelop(12078)/kdevplatform (documentswitcher) DocumentSwitcherPlugin::changeView: moving view to front, list should now not contain this view anymore KDevelop::TextView(0x37419a0) "MainController.php" kdevelop(12078)/kdevplatform (documentswitcher) DocumentSwitcherPlugin::changeView: current area is: Sublime::Area(0x1404010, name = "code") "Code" mainwnidow: KDevelop::MainWindow(0x13c5740, name = "MainWindow") "myproject - [ myproject/lib/yii/framework/yiilite.php ] ? KDevelop" kdevelop(12078)/kdevplatform (documentswitcher) DocumentSwitcherPlugin::changeView: idx of this view in list: -1 kdevelop(12078)/kdevplatform (util) KDevelop::ActiveToolTip::eventFilter: closing because of click into KateViewInternal(0x42f0470) kdevelop(12078)/kdevplatform (util) KDevelop::ActiveToolTip::eventFilter: closing because of click into KateViewInternal(0x42f0470) kdevelop(12078)/kdevplatform (util) KDevelop::ActiveToolTip::eventFilter: closing because of mouse move kdevelop(12078)/kdevplatform (language) KDevelop::DUChainPrivate::loadChain: loading top-context 762 kdevelop(12078)/kdevplatform (language) KDevelop::DUChainPrivate::loadChain: loading top-context 1074 kdevelop(12078)/kdevplatform (usehighlight) ContextBrowserView::updateHistory: updating history kdevelop(12078)/kdevplatform (usehighlight) ContextBrowserView::updateDeclarationListBox: updated "usercontroller::actiononline()" ASSERT: "classDec" in file /var/tmp/portage/dev-util/kdevelop-php-1.0.80/work/kdevelop-php-1.0.80/duchain/builders/typebuilder.cpp, line 504 kdevelop: Fatal IO error: client killed FunctionTypeData::m_arguments There were items left on destruction: 1 ClassFunctionDeclarationData::m_defaultParameters There were items left on destruction: 300 ClassDeclarationData::baseClasses There were items left on destruction: 67 DUContextData::m_uses There were items left on destruction: 979 TopDUContextData::m_usedDeclarationIds There were items left on destruction: 258 DUContextData::m_importedContexts There were items left on destruction: 1326 kdevelop(12078) Konsole::SessionManager::~SessionManager: Konsole SessionManager destroyed with sessions still alive DUContextData::m_localDeclarations There were items left on destruction: 1182 DUContextData::m_importers There were items left on destruction: 1006 DUContextData::m_childContexts There were items left on destruction: 850 KCrash: Application 'kdevelop' crashing... KCrash: Attempting to start /usr/lib64/kde4/libexec/drkonqi from kdeinit sock_file=/home/netcelli//.kde4/socket-amd/kdeinit4__0 [1]+ Stopped kdevelop How it helps you. Another crash. Here the backtrace: (gdb) bt #0 0x00007ffff6727504 in QMutex::tryLock(int) () from /usr/lib64/qt4/libQtCore.so.4 #1 0x00007ffff2d1c755 in ?? () from /usr/lib/libkdevplatformlanguage.so.2 #2 0x00007ffff2d1c0a9 in KDevelop::DocumentRangeObject::syncFromSmart() const () from /usr/lib/libkdevplatformlanguage.so.2 #3 0x00007ffff2d1c229 in KDevelop::DocumentRangeObject::range() const () from /usr/lib/libkdevplatformlanguage.so.2 #4 0x00007ffff2d61983 in KDevelop::DUContext::findDeclarationAt(KDevelop::SimpleCursor const&) const () from /usr/lib/libkdevplatformlanguage.so.2 #5 0x00007fffd87d3f5f in Php::DeclarationBuilder::declareClassMember(KDevelop::DUContext*, TypePtr<KDevelop::AbstractType>, KDevelop::QualifiedIdentifier const&, Php::AstNode*) () from /usr/lib/libkdev4phpduchain.so #6 0x00007fffd87d4d1a in Php::DeclarationBuilder::visitAssignmentExpressionEqual(Php::AssignmentExpressionEqualAst*) () from /usr/lib/libkdev4phpduchain.so #7 0x00007fffd857f08b in Php::DefaultVisitor::visitAssignmentExpression(Php::AssignmentExpressionAst*) () from /usr/lib/libkdev4phpparser.so #8 0x00007fffd87d1c79 in Php::DeclarationBuilder::visitAssignmentExpression(Php::AssignmentExpressionAst*) () from /usr/lib/libkdev4phpduchain.so #9 0x00007fffd858046d in Php::DefaultVisitor::visitLogicalAndExpression(Php::LogicalAndExpressionAst*) () from /usr/lib/libkdev4phpparser.so #10 0x00007fffd85804ed in Php::DefaultVisitor::visitLogicalXorExpression(Php::LogicalXorExpressionAst*) () from /usr/lib/libkdev4phpparser.so #11 0x00007fffd85804ad in Php::DefaultVisitor::visitLogicalOrExpression(Php::LogicalOrExpressionAst*) () ---Type <return> to continue, or q <return> to quit--- from /usr/lib/libkdev4phpparser.so #12 0x00007fffd87e3726 in Php::TypeBuilder::visitExpr(Php::ExprAst*) () from /usr/lib/libkdev4phpduchain.so #13 0x00007fffd8580937 in Php::DefaultVisitor::visitStatement(Php::StatementAst*) () from /usr/lib/libkdev4phpparser.so #14 0x00007fffd87e23f0 in Php::TypeBuilder::visitStatement(Php::StatementAst*) () from /usr/lib/libkdev4phpduchain.so #15 0x00007fffd87d12fa in Php::DeclarationBuilder::visitStatement(Php::StatementAst*) () from /usr/lib/libkdev4phpduchain.so #16 0x00007fffd857fb66 in Php::DefaultVisitor::visitTopStatement(Php::TopStatementAst*) () from /usr/lib/libkdev4phpparser.so #17 0x00007fffd85803ed in Php::DefaultVisitor::visitInnerStatementList(Php::InnerStatementListAst*) () from /usr/lib/libkdev4phpparser.so #18 0x00007fffd85807ba in Php::DefaultVisitor::visitStatement(Php::StatementAst*) () from /usr/lib/libkdev4phpparser.so #19 0x00007fffd87e23f0 in Php::TypeBuilder::visitStatement(Php::StatementAst*) () from /usr/lib/libkdev4phpduchain.so #20 0x00007fffd87d12fa in Php::DeclarationBuilder::visitStatement(Php::StatementAst*) () from /usr/lib/libkdev4phpduchain.so #21 0x00007fffd85807d4 in Php::DefaultVisitor::visitStatement(Php::StatementAst*) () from /usr/lib/libkdev4phpparser.so #22 0x00007fffd87e23f0 in Php::TypeBuilder::visitStatement(Php::StatementAst*) () from /usr/lib/libkdev4phpduchain.so #23 0x00007fffd87d12fa in Php::DeclarationBuilder::visitStatement(Php::StatementAst*) () from /usr/lib/libkdev4phpduchain.so #24 0x00007fffd857fb66 in Php::DefaultVisitor::visitTopStatement(Php::TopStatementAst*) () from /usr/lib/libkdev4phpparser.so #25 0x00007fffd85803ed in Php::DefaultVisitor::visitInnerStatementList(Php::InnerStatementListAst*) () from /usr/lib/libkdev4phpparser.so ---Type <return> to continue, or q <return> to quit--- #26 0x00007fffd87dc8c6 in Php::ContextBuilder::visitClassStatement(Php::ClassStatementAst*) () from /usr/lib/libkdev4phpduchain.so #27 0x00007fffd87e4d79 in Php::TypeBuilder::visitClassStatement(Php::ClassStatementAst*) () from /usr/lib/libkdev4phpduchain.so #28 0x00007fffd87d5945 in Php::DeclarationBuilder::visitClassStatement(Php::ClassStatementAst*) () from /usr/lib/libkdev4phpduchain.so #29 0x00007fffd858010d in Php::DefaultVisitor::visitClassBody(Php::ClassBodyAst*) () from /usr/lib/libkdev4phpparser.so #30 0x00007fffd87dd128 in Php::ContextBuilder::visitClassDeclarationStatement(Php::ClassDeclarationStatementAst*) () from /usr/lib/libkdev4phpduchain.so #31 0x00007fffd87e3503 in Php::TypeBuilder::visitClassDeclarationStatement(Php::ClassDeclarationStatementAst*) () from /usr/lib/libkdev4phpduchain.so #32 0x00007fffd87d521d in Php::DeclarationBuilder::visitClassDeclarationStatement(Php::ClassDeclarationStatementAst*) () from /usr/lib/libkdev4phpduchain.so #33 0x00007fffd857fb80 in Php::DefaultVisitor::visitTopStatement(Php::TopStatementAst*) () from /usr/lib/libkdev4phpparser.so #34 0x00007fffd87d2c2e in Php::DeclarationBuilder::visitOuterTopStatement(Php::OuterTopStatementAst*) () from /usr/lib/libkdev4phpduchain.so #35 0x00007fffd858078d in Php::DefaultVisitor::visitStart(Php::StartAst*) () from /usr/lib/libkdev4phpparser.so #36 0x00007fffd87dd4e2 in Php::ContextBuilder::startVisiting(Php::AstNode*) () from /usr/lib/libkdev4phpduchain.so ---Type <return> to continue, or q <return> to quit--- #37 0x00007fffd87cf0cb in ?? () from /usr/lib/libkdev4phpduchain.so #38 0x00007fffd87d807e in ?? () from /usr/lib/libkdev4phpduchain.so #39 0x00007fffd87db24f in ?? () from /usr/lib/libkdev4phpduchain.so #40 0x00007fffd87d60ba in Php::DeclarationBuilder::build(KDevelop::IndexedString const&, Php::AstNode*, KDevelop::ReferencedTopDUContext, bool) () from /usr/lib/libkdev4phpduchain.so #41 0x00007fffd8a47150 in ?? () from /usr/lib64/kde4/kdevphplanguagesupport.so #42 0x00007fffede60eb5 in ?? () from /usr/lib/libthreadweaver.so.4 #43 0x00007fffede611ae in ThreadWeaver::Job::execute(ThreadWeaver::Thread*) () from /usr/lib/libthreadweaver.so.4 #44 0x00007fffede60207 in ?? () from /usr/lib/libthreadweaver.so.4 #45 0x00007fffede60788 in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4 #46 0x00007ffff672c5d5 in ?? () from /usr/lib64/qt4/libQtCore.so.4 #47 0x00007ffff51c6914 in start_thread () from /lib/libpthread.so.0 #48 0x00007ffff54ad1dd in clone () from /lib/libc.so.6 (gdb) CLI output: kdevelop(28294)/kdevplatform (documentswitcher) DocumentSwitcherPlugin::changeView: current area is: Sublime::Area(0x8288f0, name = "code") "Code" mainwnidow: KDevelop::MainWindow(0x7ef270, name = "MainWindow") "myproject - [ myproject/lib/yii/framework/validators/CValidator.php ] ? KDevelop" kdevelop(28294)/kdevplatform (documentswitcher) DocumentSwitcherPlugin::changeView: idx of this view in list: -1 kdevelop(28294)/kdevplatform (language) KDevelop::BackgroundParserPrivate::parseDocumentsInternal: creating parse-job KUrl("file:///var/www/localhost/htdocs/myproject/protected/models/RegList.php") new count of active parse-jobs: 1 kdevelop(28294)/kdevelop (php support) Php::ParseJob::run: parsing "/var/www/localhost/htdocs/dchublist.com.git/myproject/models/RegList.php" kdevelop(28294)/kdevelop (php support) Php::ParseSession::parse: Successfully parsed kdevelop(28294)/kdevelop (php support) Php::ContextBuilder::build: re-compiling "/var/www/localhost/htdocs/myproject/protected/models/RegList.php" Program received signal SIGSEGV, Segmentation fault. the framework itself I can parse without problems, so it's probably code you are writing on top of it showing that crash. I'd need a way to reproduce it to fix it properly, this looks rather strange. ps: the last crash is totally unrelated and already tracked somewhere else, please refrain from adding random crashes to one and the same bugreport. bye Sorry for that. Crash happened two times this morning when yiilite.php file is open, but as I said it doesn't crash always. Can you tell me a way to give you more info about that crash? Another crash with the following assert: ASSERT: "classDec" in file /var/tmp/portage/dev-util/kdevelop-php-9999/work/kdevelop-php-9999/duchain/builders/typebuilder.cpp, line 505 Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone! This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging Thank you for helping us make KDE software even better for everyone! |