Bug 273291 - Crash when parsing php project
Summary: Crash when parsing php project
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 4.2.60
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: 4.2.0
Assignee: kdevelop-bugs-null
URL:
Keywords:
: 272308 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-05-14 20:30 UTC by Yörn Jünger
Modified: 2011-06-02 13:48 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
New crash information added by DrKonqi (35.29 KB, text/plain)
2011-05-19 18:40 UTC, Audun Nystad Bugge
Details
Console output (kdevelop 2> error.log) (38.37 KB, text/plain)
2011-05-19 18:45 UTC, Audun Nystad Bugge
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yörn Jünger 2011-05-14 20:30:39 UTC
Application: kdevelop (4.2.60)
KDE Platform Version: 4.6.3 (4.6.3) (Compiled from sources)
Qt Version: 4.7.2
Operating System: Linux 2.6.38.6 x86_64
Distribution (Platform): Gentoo Packages

-- Information about the crash:
KDevelop crashes everytime when i open a php project. I haven't tested other languages, yet. KDevelop is compiled from current git.

The crash can be reproduced every time.

-- Backtrace:
Application: KDevelop (kdevelop), signal: Aborted
[Current thread is 1 (Thread 0x7f5c0db49760 (LWP 11022))]

Thread 7 (Thread 0x7f5bf8692700 (LWP 11027)):
#0  0x00007f5c0a9f85d9 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f5c0bfa7001 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007f5c0835cc7a in ?? () from /usr/lib64/libkdevplatformlanguage.so.4
#3  0x00007f5c0bfa64c5 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007f5c0a9f3914 in start_thread () from /lib64/libpthread.so.0
#5  0x00007f5c0acda3cd in clone () from /lib64/libc.so.6

Thread 6 (Thread 0x7f5bea580700 (LWP 11028)):
#0  0xffffffffff600148 in ?? ()
#1  0x00007fff2cfe5771 in ?? ()
#2  0x00007f5c0977c2f8 in clock_gettime () from /lib64/librt.so.1
#3  0x00007f5c0bffaa72 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007f5c0c0c5e7d in ?? () from /usr/lib64/qt4/libQtCore.so.4
#5  0x00007f5c0c0c5ea5 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#6  0x00007f5c0c0c405d in ?? () from /usr/lib64/qt4/libQtCore.so.4
#7  0x00007f5c0c0c4105 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#8  0x00007f5c05784da8 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#9  0x00007f5c05785208 in ?? () from /usr/lib64/libglib-2.0.so.0
#10 0x00007f5c057857ec in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#11 0x00007f5c0c0c3e66 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#12 0x00007f5c0c096a82 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#13 0x00007f5c0c096e64 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#14 0x00007f5c0bfa349d in QThread::exec() () from /usr/lib64/qt4/libQtCore.so.4
#15 0x00007f5c0bfa64c5 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#16 0x00007f5c0a9f3914 in start_thread () from /lib64/libpthread.so.0
#17 0x00007f5c0acda3cd in clone () from /lib64/libc.so.6

Thread 5 (Thread 0x7f5be6878700 (LWP 11031)):
#0  0x00007f5c0a9f826c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f5bf8ad1554 in ?? () from /usr/lib64/qt4/libQtScript.so.4
#2  0x00007f5bf8ad1589 in ?? () from /usr/lib64/qt4/libQtScript.so.4
#3  0x00007f5c0a9f3914 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f5c0acda3cd in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7f5be5ab4700 (LWP 11041)):
#0  0x00007f5c0a9f826c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f5c02d45a3d in ?? () from /usr/lib64/qt4/libQtWebKit.so.4
#2  0x00007f5c02d45b49 in ?? () from /usr/lib64/qt4/libQtWebKit.so.4
#3  0x00007f5c0a9f3914 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f5c0acda3cd in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f5be2ef5700 (LWP 11175)):
[KCrash Handler]
#6  0x00007f5c0ac3b065 in raise () from /lib64/libc.so.6
#7  0x00007f5c0ac3c2ff in abort () from /lib64/libc.so.6
#8  0x00007f5c0bf9c6a4 in qt_message_output(QtMsgType, char const*) () from /usr/lib64/qt4/libQtCore.so.4
#9  0x00007f5c0bf9c852 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#10 0x00007f5c0bf9ca05 in qFatal(char const*, ...) () from /usr/lib64/qt4/libQtCore.so.4
#11 0x00007f5beaa47910 in Php::ExpressionVisitor::buildNamespaceUses(Php::NamespacedIdentifierAst*, KDevelop::QualifiedIdentifier const&) () from /usr/lib64/libkdev4phpduchain.so
#12 0x00007f5beaa4972a in Php::ExpressionVisitor::visitFunctionCall(Php::FunctionCallAst*) () from /usr/lib64/libkdev4phpduchain.so
#13 0x00007f5bea7e6a5e in Php::DefaultVisitor::visitBaseVariableWithFunctionCalls(Php::BaseVariableWithFunctionCallsAst*) () from /usr/lib64/libkdev4phpparser.so
#14 0x00007f5bea7e8634 in Php::DefaultVisitor::visitVariable(Php::VariableAst*) () from /usr/lib64/libkdev4phpparser.so
#15 0x00007f5bea7e8574 in Php::DefaultVisitor::visitVarExpressionNormal(Php::VarExpressionNormalAst*) () from /usr/lib64/libkdev4phpparser.so
#16 0x00007f5beaa4995e in Php::ExpressionVisitor::visitVarExpressionNormal(Php::VarExpressionNormalAst*) () from /usr/lib64/libkdev4phpduchain.so
#17 0x00007f5bea7e84fc in Php::DefaultVisitor::visitUnaryExpressionNotPlusminus(Php::UnaryExpressionNotPlusminusAst*) () from /usr/lib64/libkdev4phpparser.so
#18 0x00007f5beaa47efb in Php::ExpressionVisitor::visitUnaryExpression(Php::UnaryExpressionAst*) () from /usr/lib64/libkdev4phpduchain.so
#19 0x00007f5bea7e7e44 in Php::DefaultVisitor::visitMultiplicativeExpression(Php::MultiplicativeExpressionAst*) () from /usr/lib64/libkdev4phpparser.so
#20 0x00007f5bea7e76f4 in Php::DefaultVisitor::visitAdditiveExpression(Php::AdditiveExpressionAst*) () from /usr/lib64/libkdev4phpparser.so
#21 0x00007f5bea7e8054 in Php::DefaultVisitor::visitShiftExpression(Php::ShiftExpressionAst*) () from /usr/lib64/libkdev4phpparser.so
#22 0x00007f5bea7e7fe8 in Php::DefaultVisitor::visitRelationalExpression(Php::RelationalExpressionAst*) () from /usr/lib64/libkdev4phpparser.so
#23 0x00007f5bea7e7c34 in Php::DefaultVisitor::visitEqualityExpression(Php::EqualityExpressionAst*) () from /usr/lib64/libkdev4phpparser.so
#24 0x00007f5bea7e78bd in Php::DefaultVisitor::visitBitAndExpression(Php::BitAndExpressionAst*) () from /usr/lib64/libkdev4phpparser.so
#25 0x00007f5bea7e793d in Php::DefaultVisitor::visitBitXorExpression(Php::BitXorExpressionAst*) () from /usr/lib64/libkdev4phpparser.so
#26 0x00007f5bea7e78fd in Php::DefaultVisitor::visitBitOrExpression(Php::BitOrExpressionAst*) () from /usr/lib64/libkdev4phpparser.so
#27 0x00007f5bea7e797d in Php::DefaultVisitor::visitBooleanAndExpression(Php::BooleanAndExpressionAst*) () from /usr/lib64/libkdev4phpparser.so
#28 0x00007f5bea7e79bd in Php::DefaultVisitor::visitBooleanOrExpression(Php::BooleanOrExpressionAst*) () from /usr/lib64/libkdev4phpparser.so
#29 0x00007f5bea7e6d0e in Php::DefaultVisitor::visitConditionalExpression(Php::ConditionalExpressionAst*) () from /usr/lib64/libkdev4phpparser.so
#30 0x00007f5beaa47e01 in Php::ExpressionVisitor::visitAssignmentExpression(Php::AssignmentExpressionAst*) () from /usr/lib64/libkdev4phpduchain.so
#31 0x00007f5beaa47e12 in Php::ExpressionVisitor::visitAssignmentExpression(Php::AssignmentExpressionAst*) () from /usr/lib64/libkdev4phpduchain.so
#32 0x00007f5beaa4ba5f in Php::ExpressionParser::evaluateType(Php::AstNode*, Php::EditorIntegrator*, KDevelop::CursorInRevision const&) () from /usr/lib64/libkdev4phpduchain.so
#33 0x00007f5beaa4bbd1 in Php::ExpressionParser::evaluateType(Php::AstNode*, Php::EditorIntegrator*) () from /usr/lib64/libkdev4phpduchain.so
#34 0x00007f5beaa43131 in Php::TypeBuilder::getTypeForNode(Php::AstNode*) () from /usr/lib64/libkdev4phpduchain.so
#35 0x00007f5beaa43efe in Php::TypeBuilder::visitAssignmentExpression(Php::AssignmentExpressionAst*) () from /usr/lib64/libkdev4phpduchain.so
#36 0x00007f5beaa33bfa in Php::DeclarationBuilder::visitAssignmentExpression(Php::AssignmentExpressionAst*) () from /usr/lib64/libkdev4phpduchain.so
#37 0x00007f5bea7e7d9d in Php::DefaultVisitor::visitLogicalAndExpression(Php::LogicalAndExpressionAst*) () from /usr/lib64/libkdev4phpparser.so
#38 0x00007f5bea7e7e1d in Php::DefaultVisitor::visitLogicalXorExpression(Php::LogicalXorExpressionAst*) () from /usr/lib64/libkdev4phpparser.so
#39 0x00007f5bea7e7ddd in Php::DefaultVisitor::visitLogicalOrExpression(Php::LogicalOrExpressionAst*) () from /usr/lib64/libkdev4phpparser.so
#40 0x00007f5bea7e8267 in Php::DefaultVisitor::visitStatement(Php::StatementAst*) () from /usr/lib64/libkdev4phpparser.so
#41 0x00007f5beaa43220 in Php::TypeBuilder::visitStatement(Php::StatementAst*) () from /usr/lib64/libkdev4phpduchain.so
#42 0x00007f5beaa33628 in Php::DeclarationBuilder::visitStatement(Php::StatementAst*) () from /usr/lib64/libkdev4phpduchain.so
#43 0x00007f5bea7e7496 in Php::DefaultVisitor::visitTopStatement(Php::TopStatementAst*) () from /usr/lib64/libkdev4phpparser.so
#44 0x00007f5bea7e7d1d in Php::DefaultVisitor::visitInnerStatementList(Php::InnerStatementListAst*) () from /usr/lib64/libkdev4phpparser.so
#45 0x00007f5beaa3e4d3 in Php::ContextBuilder::visitClassStatement(Php::ClassStatementAst*) () from /usr/lib64/libkdev4phpduchain.so
#46 0x00007f5beaa45619 in Php::TypeBuilder::visitClassStatement(Php::ClassStatementAst*) () from /usr/lib64/libkdev4phpduchain.so
#47 0x00007f5beaa37ca4 in Php::DeclarationBuilder::visitClassStatement(Php::ClassStatementAst*) () from /usr/lib64/libkdev4phpduchain.so
#48 0x00007f5bea7e7a3d in Php::DefaultVisitor::visitClassBody(Php::ClassBodyAst*) () from /usr/lib64/libkdev4phpparser.so
#49 0x00007f5beaa3ec78 in Php::ContextBuilder::visitClassDeclarationStatement(Php::ClassDeclarationStatementAst*) () from /usr/lib64/libkdev4phpduchain.so
#50 0x00007f5beaa430a3 in Php::TypeBuilder::visitClassDeclarationStatement(Php::ClassDeclarationStatementAst*) () from /usr/lib64/libkdev4phpduchain.so
#51 0x00007f5beaa3755d in Php::DeclarationBuilder::visitClassDeclarationStatement(Php::ClassDeclarationStatementAst*) () from /usr/lib64/libkdev4phpduchain.so
#52 0x00007f5bea7e74b0 in Php::DefaultVisitor::visitTopStatement(Php::TopStatementAst*) () from /usr/lib64/libkdev4phpparser.so
#53 0x00007f5beaa34be0 in Php::DeclarationBuilder::visitOuterTopStatement(Php::OuterTopStatementAst*) () from /usr/lib64/libkdev4phpduchain.so
#54 0x00007f5bea7e80bd in Php::DefaultVisitor::visitStart(Php::StartAst*) () from /usr/lib64/libkdev4phpparser.so
#55 0x00007f5beaa3efb2 in Php::ContextBuilder::startVisiting(Php::AstNode*) () from /usr/lib64/libkdev4phpduchain.so
#56 0x00007f5beaa2f729 in ?? () from /usr/lib64/libkdev4phpduchain.so
#57 0x00007f5beaa3a306 in ?? () from /usr/lib64/libkdev4phpduchain.so
#58 0x00007f5beaa3d371 in ?? () from /usr/lib64/libkdev4phpduchain.so
#59 0x00007f5beaa3842b in Php::DeclarationBuilder::build(KDevelop::IndexedString const&, Php::AstNode*, KDevelop::ReferencedTopDUContext) () from /usr/lib64/libkdev4phpduchain.so
#60 0x00007f5beaca4c40 in ?? () from /usr/lib64/kde4/kdevphplanguagesupport.so
#61 0x00007f5c0351c061 in ?? () from /usr/lib64/libthreadweaver.so.4
#62 0x00007f5c0351c35e in ThreadWeaver::Job::execute(ThreadWeaver::Thread*) () from /usr/lib64/libthreadweaver.so.4
#63 0x00007f5c0351b36f in ?? () from /usr/lib64/libthreadweaver.so.4
#64 0x00007f5c0351b8e8 in ThreadWeaver::Thread::run() () from /usr/lib64/libthreadweaver.so.4
#65 0x00007f5c0bfa64c5 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#66 0x00007f5c0a9f3914 in start_thread () from /lib64/libpthread.so.0
#67 0x00007f5c0acda3cd in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f5be26f4700 (LWP 11176)):
#0  0x00007f5c0a9f826c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f5c0bfa708b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007f5c03519c24 in ?? () from /usr/lib64/libthreadweaver.so.4
#3  0x00007f5c0351ce0b in ?? () from /usr/lib64/libthreadweaver.so.4
#4  0x00007f5c0351ce24 in ?? () from /usr/lib64/libthreadweaver.so.4
#5  0x00007f5c0351ce24 in ?? () from /usr/lib64/libthreadweaver.so.4
#6  0x00007f5c0351ce24 in ?? () from /usr/lib64/libthreadweaver.so.4
#7  0x00007f5c0351b39f in ?? () from /usr/lib64/libthreadweaver.so.4
#8  0x00007f5c0351b8e8 in ThreadWeaver::Thread::run() () from /usr/lib64/libthreadweaver.so.4
#9  0x00007f5c0bfa64c5 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#10 0x00007f5c0a9f3914 in start_thread () from /lib64/libpthread.so.0
#11 0x00007f5c0acda3cd in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f5c0db49760 (LWP 11022)):
#0  0x00007f5c0acd181b in poll () from /lib64/libc.so.6
#1  0x00007f5c01ae8b5a in ?? () from /usr/lib64/libxcb.so.1
#2  0x00007f5c01aea78c in xcb_wait_for_reply () from /usr/lib64/libxcb.so.1
#3  0x00007f5c0703274d in _XReply () from /usr/lib64/libX11.so.6
#4  0x00007f5c07016744 in XGetImage () from /usr/lib64/libX11.so.6
#5  0x00007f5c0b53cca3 in QX11PixmapData::transformed(QTransform const&, Qt::TransformationMode) const () from /usr/lib64/qt4/libQtGui.so.4
#6  0x00007f5c0b524570 in QPixmap::transformed(QTransform const&, Qt::TransformationMode) const () from /usr/lib64/qt4/libQtGui.so.4
#7  0x00007f5c0b5248cb in QPixmap::scaled(QSize const&, Qt::AspectRatioMode, Qt::TransformationMode) const () from /usr/lib64/qt4/libQtGui.so.4
#8  0x00007f5bff6a6173 in ?? () from /usr/lib64/kde4/plugins/styles/qtcurve.so
#9  0x00007f5bff6a6941 in ?? () from /usr/lib64/kde4/plugins/styles/qtcurve.so
#10 0x00007f5bff6b626b in ?? () from /usr/lib64/kde4/plugins/styles/qtcurve.so
#11 0x00007f5c0b4982da in QWidgetPrivate::paintBackground(QPainter*, QRegion const&, int) const () from /usr/lib64/qt4/libQtGui.so.4
#12 0x00007f5c0b499185 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/qt4/libQtGui.so.4
#13 0x00007f5c0b66b2cf in ?? () from /usr/lib64/qt4/libQtGui.so.4
#14 0x00007f5c0b48c420 in QWidgetPrivate::syncBackingStore() () from /usr/lib64/qt4/libQtGui.so.4
#15 0x00007f5c0b4929da in QWidget::event(QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#16 0x00007f5c0b8564cb in QMainWindow::event(QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#17 0x00007f5c0c9c7083 in KXmlGuiWindow::event(QEvent*) () from /usr/lib64/libkdeui.so.5
#18 0x00007f5c0b43c7dc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#19 0x00007f5c0b441c7d in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#20 0x00007f5c0c8b0276 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#21 0x00007f5c0c097d2b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#22 0x00007f5c0c09acb1 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/qt4/libQtCore.so.4
#23 0x00007f5c0c0c42d3 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#24 0x00007f5c05780fa1 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#25 0x00007f5c05785638 in ?? () from /usr/lib64/libglib-2.0.so.0
#26 0x00007f5c057857ec in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#27 0x00007f5c0c0c3e13 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#28 0x00007f5c0b4ee92e in ?? () from /usr/lib64/qt4/libQtGui.so.4
#29 0x00007f5c0c096a82 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#30 0x00007f5c0c096e64 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#31 0x00007f5c0c09aedb in QCoreApplication::exec() () from /usr/lib64/qt4/libQtCore.so.4
#32 0x00000000004093d5 in _start ()

Possible duplicates by query: bug 272308.

Reported using DrKonqi
Comment 1 Audun Nystad Bugge 2011-05-19 18:40:55 UTC
Created attachment 60163 [details]
New crash information added by DrKonqi

kdevelop (4.2.60) on KDE Platform 4.6.2 (4.6.2) using Qt 4.7.2

I have experienced the same crash the last couple weeks or so. Compiling sources from git.

-- Backtrace (Reduced):
#11 0x00007f675fea606a in Php::ExpressionVisitor::buildNamespaceUses (this=0x7f6754e63280, namespaces=0x7f67586f1420, identifier=...) at /home/audun/projects/kde4/kdev-php/duchain/expressionvisitor.cpp:707
#12 0x00007f675fea3a07 in Php::ExpressionVisitor::visitFunctionCall (this=0x7f6754e63280, node=0x7f67586f13d8) at /home/audun/projects/kde4/kdev-php/duchain/expressionvisitor.cpp:322
#13 0x00007f675fc34eaa in Php::Visitor::visitNode (this=0x7f6754e63280, node=0x7f67586f13d8) at /home/audun/projects/.build/kde4/kdev-php/parser/phpvisitor.cpp:181
#14 0x00007f675fea268b in Php::ExpressionVisitor::visitNode (this=0x7f6754e63280, node=0x7f67586f13d8) at /home/audun/projects/kde4/kdev-php/duchain/expressionvisitor.cpp:131
#15 0x00007f675fc36195 in Php::DefaultVisitor::visitBaseVariableWithFunctionCalls (this=0x7f6754e63280, node=0x7f67586f13a8) at /home/audun/projects/.build/kde4/kdev-php/parser/phpdefaultvisitor.cpp:91
Comment 2 Audun Nystad Bugge 2011-05-19 18:45:13 UTC
Created attachment 60164 [details]
Console output (kdevelop 2> error.log)
Comment 3 Milian Wolff 2011-05-28 23:51:56 UTC
can you please try to find out which file it is crashing at?

run kdebugdialog and enable the php + kdevplatform language debug areas

then open your crashing project in kdevelop again and take a look at the command line output - it should output the name of the parsed file some lines before the crash. then attach that file here so I can investigate
Comment 4 Audun Nystad Bugge 2011-05-29 12:02:04 UTC
The lines just before it crashes:

kdevelop(19452)/kdevelop (php support) Php::ContextBuilder::build: compiling "/var/www/banto/modules/wolframalpha/language/norwegian.php"
ASSERT: "identifier.count() == namespaces->namespaceNameSequence->count()" in file /home/audun/projects/kde4/kdev-php/duchain/expressionvisitor.cpp, line 707
kdevelop: Fatal IO error: client killed
KCrash: Application 'kdevelop' crashing...

norwegian.php is a quite small file:
<?php
$this->lang_mod = array( 
'MODULE_NAME' => 'Wolfram Alpha',
'NO_RESPONSE' => 'Ingen respons',
'NOT_INITIALIZED' => 'Ikke klargjort',
'FETCH_CONTENT' => 'Hent innhold',
'GOTO' => 'Vis i Wolfram|Alpha',
'SHOW_MORE' => 'Vis mer',
'QUERY' => 'Forespørsel:'
);
?>

I suspected the pipe character could be the problem, and removing it seemed to fix this file. Which led me to the next crashing file:

<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

?>
Another pipe! Actually, the first time I removed the pipe it didn't fix it. Deleting everything in the file did (It obviously didn't do anything..), and led me to the next file: http://paste.kde.org/76051/

No pipe char there.

Side note: I recreated the Tools | Templates file, it crashed on that file again, I then removed the pipe and it failed on another file again. (Compared to still failing on the same file containing just the comment without the pipe previously).

Another failed file (funny how it's always small, simple files that fail):
<?php

function gallery_autoexec()
{
	banto()->modules->addCreateMenu('gallery', 'create', 'GALLERY_CREATE_NEW');
}

?>

And so the story goes. It always fails on the same assertion, line 707. Don't hesitate to ask for more information, I love kdevelop with php support and will be happy to help. I'd take a look at the source myself, but I don't have time atm..

I'm still using the git version from a couple of weeks ago, btw. I'll update now and let you know if anything has changed since that.
Comment 5 Audun Nystad Bugge 2011-05-29 20:51:00 UTC
I now have removed my kdevelop installation completely, cloned git again and recompiled, and this bug seems to be gone. I had some issues compiling kdev-php, something about Php::Php not being defined in duchain.moc, this was fixed by removing the build directory and recompiling. I changed from -DCMAKE_BUILD_TYPE=debugfull to RelWithDebInfo in the process according to instructions at kdevelop.org, could this be related to anything? I'm still using a very old version of your bash_setup_kde4_programming, guess I should update that anyways..

I'm digressing. The point is: This bug is gone for me after rebuilding everything :)
Comment 6 Milian Wolff 2011-05-30 15:30:48 UTC
debugfull is better for compiled stuff as it will ensure best-quality backtraces. Anyhow, RelWithDebInfo should be fine for now.

Anyhow, Yörn could you try the same as Audun? If it does not help you, please reopen the bug.
Comment 7 Milian Wolff 2011-05-30 16:15:59 UTC
*** Bug 272308 has been marked as a duplicate of this bug. ***
Comment 8 Yörn Jünger 2011-06-02 13:48:32 UTC
I'm back from holiday :)

At the time i have deleted cache, user settings and rebuilded whole kdev*. And it changed nothing.
Yesterday i have rebuilded (Gentoo) everything from cloned git, but without changing flags. Magically it doesn't crash anymore. Therefore bug keeps closed.