Summary: | KDevelop crashes after starting when scanning project | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Nick <nicksanders11> |
Component: | Language Support: PHP | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | audvare, badllama77, bugs, gofic_l, kai.danielmeier, olivier.jg, wuseldusel |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | 4.2.0 | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kdev-php/4d2f1abdc54017b8112621fda36907ef4d4676f3 | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: |
New crash information added by DrKonqi
New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi |
Description
Nick
2011-06-12 21:45:06 UTC
Created attachment 61174 [details]
New crash information added by DrKonqi
kdevelop (4.2.2) on KDE Platform 4.6.2 (4.6.2) using Qt 4.7.2
Same problem, opened project scanning started, reached 70% and crashed. I usually can resolve by removing the .kdev4 folder or if that fails recreating the session.
-- Backtrace (Reduced):
#6 0x00007fbad132fa50 in KDevelop::DUContext::type() const () from /usr/lib/libkdevplatformlanguage.so.3
#7 0x00007fbaa5032192 in Php::findDeclarationImportHelper(KDevelop::DUContext*, KDevelop::QualifiedIdentifier, Php::DeclarationType, Php::AstNode*, Php::EditorIntegrator*) () from /usr/lib/libkdev4phpduchain.so
#8 0x00007fbaa501ecb0 in Php::ExpressionVisitor::findDeclarationImport(Php::DeclarationType, Php::AstNode*, KDevelop::QualifiedIdentifier const&) () from /usr/lib/libkdev4phpduchain.so
#9 0x00007fbaa501f159 in Php::ExpressionVisitor::findClassContext(Php::NamespacedIdentifierAst*) () from /usr/lib/libkdev4phpduchain.so
#10 0x00007fbaa502001a in Php::ExpressionVisitor::visitFunctionCall(Php::FunctionCallAst*) () from /usr/lib/libkdev4phpduchain.so
Can you install extended debug symbols so I can see the actual line in which it crashes? If you compile on your own, make sure to set CMAKE_BUILD_TYPE=debugfull Alternatively: Is the project you try to parse (which reproducibly crashes) somehow accessible to me so I can take a look at what is going wrong? I have since corrected the problem, I deleted my .kdev4 directory in the project folder. This is a recurring problem though, and in the past I have had to go so far as to recreate the session. I have installed the debug symbols and will be able to give more info next occurence. Marking this bug as waiting for backtrace (w/ debug symbols). Created attachment 67353 [details]
New crash information added by DrKonqi
kdevelop (4.2.3) on KDE Platform 4.7.3 (4.7.3) using Qt 4.7.4
- What I was doing when the application crashed:
i opened up kdevelop and waited some time (the background parser keeps working). i dont have do anything else to make it crash at 97%. the project kdevelop is scanning is a symfony2 deployment with installed vendor libs and no custom bundles but only some configuration changes (just wanted to start).
-- Backtrace (Reduced):
#6 KDevelop::DUContext::type (this=0x0) at ../../language/duchain/ducontext.cpp:1176
#7 0x00007f0b44b3cd00 in Php::findDeclarationImportHelper (currentContext=<optimized out>, id=..., declarationType=<optimized out>, node=<optimized out>, editor=<optimized out>) at /build/buildd/kdevelop-php-1.2.3/duchain/helper.cpp:110
#8 0x00007f0b44b2b010 in Php::ExpressionVisitor::findDeclarationImport (this=0x7f0b3ec70890, declarationType=Php::ClassDeclarationType, node=0x7f0aec4cd888, identifier=<optimized out>) at /build/buildd/kdevelop-php-1.2.3/duchain/expressionvisitor.cpp:735
#9 0x00007f0b44b2b4a9 in Php::ExpressionVisitor::findClassContext (this=0x7f0b3ec70890, className=0x7f0aec4cd888) at /build/buildd/kdevelop-php-1.2.3/duchain/expressionvisitor.cpp:361
#10 0x00007f0b44b2c36a in Php::ExpressionVisitor::visitFunctionCall (this=0x7f0b3ec70890, node=0x7f0aec4cd840) at /build/buildd/kdevelop-php-1.2.3/duchain/expressionvisitor.cpp:292
Created attachment 67354 [details]
New crash information added by DrKonqi
kdevelop (4.2.3) on KDE Platform 4.7.3 (4.7.3) using Qt 4.7.4
- What I was doing when the application crashed:
i opened up kdevelop and waited some time (the background parser keeps working). i dont have do anything else to make it crash at 97%. the project kdevelop is scanning is a symfony2 deployment with installed vendor libs and no custom bundles but only some configuration changes (just wanted to start).
-- Backtrace (Reduced):
#6 KDevelop::DUContext::type (this=0x0) at ../../language/duchain/ducontext.cpp:1176
#7 0x00007f0b44b3cd00 in Php::findDeclarationImportHelper (currentContext=<optimized out>, id=..., declarationType=<optimized out>, node=<optimized out>, editor=<optimized out>) at /build/buildd/kdevelop-php-1.2.3/duchain/helper.cpp:110
#8 0x00007f0b44b2b010 in Php::ExpressionVisitor::findDeclarationImport (this=0x7f0b3ec70890, declarationType=Php::ClassDeclarationType, node=0x7f0aec4cd888, identifier=<optimized out>) at /build/buildd/kdevelop-php-1.2.3/duchain/expressionvisitor.cpp:735
#9 0x00007f0b44b2b4a9 in Php::ExpressionVisitor::findClassContext (this=0x7f0b3ec70890, className=0x7f0aec4cd888) at /build/buildd/kdevelop-php-1.2.3/duchain/expressionvisitor.cpp:361
#10 0x00007f0b44b2c36a in Php::ExpressionVisitor::visitFunctionCall (this=0x7f0b3ec70890, node=0x7f0aec4cd840) at /build/buildd/kdevelop-php-1.2.3/duchain/expressionvisitor.cpp:292
Created attachment 67355 [details]
New crash information added by DrKonqi
kdevelop (4.2.3) on KDE Platform 4.7.3 (4.7.3) using Qt 4.7.4
- What I was doing when the application crashed:
i opened up kdevelop and waited some time (the background parser keeps working). i dont have do anything else to make it crash at 97%. the project kdevelop is scanning is a symfony2 deployment with installed vendor libs and no custom bundles but only some configuration changes (just wanted to start).
-- Backtrace (Reduced):
#6 KDevelop::DUContext::type (this=0x0) at ../../language/duchain/ducontext.cpp:1176
#7 0x00007f0b44b3cd00 in Php::findDeclarationImportHelper (currentContext=<optimized out>, id=..., declarationType=<optimized out>, node=<optimized out>, editor=<optimized out>) at /build/buildd/kdevelop-php-1.2.3/duchain/helper.cpp:110
#8 0x00007f0b44b2b010 in Php::ExpressionVisitor::findDeclarationImport (this=0x7f0b3ec70890, declarationType=Php::ClassDeclarationType, node=0x7f0aec4cd888, identifier=<optimized out>) at /build/buildd/kdevelop-php-1.2.3/duchain/expressionvisitor.cpp:735
#9 0x00007f0b44b2b4a9 in Php::ExpressionVisitor::findClassContext (this=0x7f0b3ec70890, className=0x7f0aec4cd888) at /build/buildd/kdevelop-php-1.2.3/duchain/expressionvisitor.cpp:361
#10 0x00007f0b44b2c36a in Php::ExpressionVisitor::visitFunctionCall (this=0x7f0b3ec70890, node=0x7f0aec4cd840) at /build/buildd/kdevelop-php-1.2.3/duchain/expressionvisitor.cpp:292
Created attachment 67356 [details]
New crash information added by DrKonqi
kdevelop (4.2.3) on KDE Platform 4.7.3 (4.7.3) using Qt 4.7.4
- What I was doing when the application crashed:
i opened up kdevelop and waited some time (the background parser keeps working). i dont have do anything else to make it crash at 97%. the project kdevelop is scanning is a symfony2 deployment with installed vendor libs and no custom bundles but only some configuration changes (just wanted to start).
-- Backtrace (Reduced):
#6 KDevelop::DUContext::type (this=0x0) at ../../language/duchain/ducontext.cpp:1176
#7 0x00007f0b44b3cd00 in Php::findDeclarationImportHelper (currentContext=<optimized out>, id=..., declarationType=<optimized out>, node=<optimized out>, editor=<optimized out>) at /build/buildd/kdevelop-php-1.2.3/duchain/helper.cpp:110
#8 0x00007f0b44b2b010 in Php::ExpressionVisitor::findDeclarationImport (this=0x7f0b3ec70890, declarationType=Php::ClassDeclarationType, node=0x7f0aec4cd888, identifier=<optimized out>) at /build/buildd/kdevelop-php-1.2.3/duchain/expressionvisitor.cpp:735
#9 0x00007f0b44b2b4a9 in Php::ExpressionVisitor::findClassContext (this=0x7f0b3ec70890, className=0x7f0aec4cd888) at /build/buildd/kdevelop-php-1.2.3/duchain/expressionvisitor.cpp:361
#10 0x00007f0b44b2c36a in Php::ExpressionVisitor::visitFunctionCall (this=0x7f0b3ec70890, node=0x7f0aec4cd840) at /build/buildd/kdevelop-php-1.2.3/duchain/expressionvisitor.cpp:292
Created attachment 67357 [details]
New crash information added by DrKonqi
kdevelop (4.2.3) on KDE Platform 4.7.3 (4.7.3) using Qt 4.7.4
- What I was doing when the application crashed:
i opened up kdevelop and waited some time (the background parser keeps working). i dont have do anything else to make it crash at 97%. the project kdevelop is scanning is a symfony2 deployment with installed vendor libs and no custom bundles but only some configuration changes (just wanted to start).
-- Backtrace (Reduced):
#6 KDevelop::DUContext::type (this=0x0) at ../../language/duchain/ducontext.cpp:1176
#7 0x00007f0b44b3cd00 in Php::findDeclarationImportHelper (currentContext=<optimized out>, id=..., declarationType=<optimized out>, node=<optimized out>, editor=<optimized out>) at /build/buildd/kdevelop-php-1.2.3/duchain/helper.cpp:110
#8 0x00007f0b44b2b010 in Php::ExpressionVisitor::findDeclarationImport (this=0x7f0b3ec70890, declarationType=Php::ClassDeclarationType, node=0x7f0aec4cd888, identifier=<optimized out>) at /build/buildd/kdevelop-php-1.2.3/duchain/expressionvisitor.cpp:735
#9 0x00007f0b44b2b4a9 in Php::ExpressionVisitor::findClassContext (this=0x7f0b3ec70890, className=0x7f0aec4cd888) at /build/buildd/kdevelop-php-1.2.3/duchain/expressionvisitor.cpp:361
#10 0x00007f0b44b2c36a in Php::ExpressionVisitor::visitFunctionCall (this=0x7f0b3ec70890, node=0x7f0aec4cd840) at /build/buildd/kdevelop-php-1.2.3/duchain/expressionvisitor.cpp:292
Created attachment 70853 [details]
New crash information added by DrKonqi
kdevelop (4.3.1) on KDE Platform 4.8.3 (4.8.3) using Qt 4.8.1
- What I was doing when the application crashed:
Scanning a php Project from Symfony2 Template. Crashes always at the same percentage. Seems to be a problem with the parser.
-- Backtrace (Reduced):
#5 0x00007f7419000f80 in KDevelop::DUContext::type() const () from /usr/lib/libkdevplatformlanguage.so.5
#6 0x00007f73f6f4efd3 in Php::findDeclarationImportHelper(KDevelop::DUContext*, KDevelop::QualifiedIdentifier, Php::DeclarationType) () from /usr/lib/libkdev4phpduchain.so
#7 0x00007f73f6f3d738 in Php::ExpressionVisitor::findDeclarationImport(Php::DeclarationType, Php::AstNode*, KDevelop::QualifiedIdentifier const&) () from /usr/lib/libkdev4phpduchain.so
#8 0x00007f73f6f3dd08 in Php::ExpressionVisitor::findClassContext(Php::NamespacedIdentifierAst*) () from /usr/lib/libkdev4phpduchain.so
#9 0x00007f73f6f3ee40 in Php::ExpressionVisitor::visitFunctionCall(Php::FunctionCallAst*) () from /usr/lib/libkdev4phpduchain.so
ok, reopening the bug. can anyone supply me with a reproducible testcase? maybe some tarball containing a project that crashes when opening it in kdevelop? thanks Created attachment 73756 [details]
New crash information added by DrKonqi
kdevelop (4.3.1) on KDE Platform 4.9.1 using Qt 4.8.2
- What I was doing when the application crashed:
Loaded project that has the entire Symfony2 code embedded. Always crashes at 36% parsing.
-- Backtrace (Reduced):
#6 0x00007fb98bcf2600 in KDevelop::DUContext::type() const () from /usr/lib64/libkdevplatformlanguage.so.5
#7 0x00007fb96ec219c8 in Php::findDeclarationImportHelper(KDevelop::DUContext*, KDevelop::QualifiedIdentifier, Php::DeclarationType) () from /usr/lib64/libkdev4phpduchain.so
#8 0x00007fb96ec0f74e in Php::ExpressionVisitor::findDeclarationImport(Php::DeclarationType, Php::AstNode*, KDevelop::QualifiedIdentifier const&) () from /usr/lib64/libkdev4phpduchain.so
#9 0x00007fb96ec0fcf9 in Php::ExpressionVisitor::findClassContext(Php::NamespacedIdentifierAst*) () from /usr/lib64/libkdev4phpduchain.so
#10 0x00007fb96ec10b9a in Php::ExpressionVisitor::visitFunctionCall(Php::FunctionCallAst*) () from /usr/lib64/libkdev4phpduchain.so
Created attachment 74190 [details]
New crash information added by DrKonqi
kdevelop (4.3.1) on KDE Platform 4.9.1 using Qt 4.8.3
- What I was doing when the application crashed:
created a php project with the folder with already existing php symfony project.
-- Backtrace (Reduced):
#6 KDevelop::DUContext::type (this=0x0) at /var/tmp/portage/dev-util/kdevplatform-1.3.1/work/kdevplatform-1.3.1/language/duchain/ducontext.cpp:1177
#7 0x00007f9060f5ded0 in Php::findDeclarationImportHelper (currentContext=<optimized out>, id=..., declarationType=<optimized out>) at /var/tmp/portage/dev-util/kdevelop-php-1.3.1/work/kdevelop-php-1.3.1/duchain/helper.cpp:110
#8 0x00007f9060f4c109 in Php::ExpressionVisitor::findDeclarationImport (this=0x7f9013ffe290, declarationType=Php::ClassDeclarationType, node=<optimized out>, identifier=...) at /var/tmp/portage/dev-util/kdevelop-php-1.3.1/work/kdevelop-php-1.3.1/duchain/expressionvisitor.cpp:752
#9 0x00007f9060f4c6c9 in Php::ExpressionVisitor::findClassContext (this=0x7f9013ffe290, className=0x7f8ffaa9b200) at /var/tmp/portage/dev-util/kdevelop-php-1.3.1/work/kdevelop-php-1.3.1/duchain/expressionvisitor.cpp:365
#10 0x00007f9060f4d58a in Php::ExpressionVisitor::visitFunctionCall (this=0x7f9013ffe290, node=0x7f8ffaa9b1b8) at /var/tmp/portage/dev-util/kdevelop-php-1.3.1/work/kdevelop-php-1.3.1/duchain/expressionvisitor.cpp:296
Git commit 4d2f1abdc54017b8112621fda36907ef4d4676f3 by Milian Wolff. Committed on 01/10/2012 at 15:04. Pushed by mwolff into branch '1.4'. Validate imported parent context before accessing it. M +3 -2 duchain/helper.cpp http://commits.kde.org/kdev-php/4d2f1abdc54017b8112621fda36907ef4d4676f3 *** Bug 310254 has been marked as a duplicate of this bug. *** |