Bug 251275

Summary: Crash parsing php job on startup.
Product: [Applications] kdevelop Reporter: Miquel Canes <miquelcanes>
Component: generalAssignee: kdevelop-bugs-null
Status: RESOLVED NOT A BUG    
Severity: crash CC: francesco.nwokeka
Priority: NOR    
Version: 4.1.60   
Target Milestone: 4.1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Miquel Canes 2010-09-15 09:26:13 UTC
Application: kdevelop (4.1.60)
KDE Platform Version: 4.5.1 (KDE 4.5.1)
Qt Version: 4.6.3
Operating System: Linux 2.6.35-ARCH i686
Distribution (Platform): Archlinux Packages

-- Information about the crash:
Kate compiled from git.

Kdevelop crash on startup parsing a php job.

-- Backtrace:
Application: KDevelop (kdevelop), signal: Segmentation fault
[Current thread is 1 (Thread 0xb2de4930 (LWP 20629))]

Thread 6 (Thread 0xacfa0b70 (LWP 20636)):
#0  0xb76f1424 in __kernel_vsyscall ()
#1  0xb537d1f1 in select () from /lib/libc.so.6
#2  0xb6117c41 in ?? () from /usr/lib/libQtCore.so.4
#3  0xb604532e in ?? () from /usr/lib/libQtCore.so.4
#4  0xb5fd3e60 in start_thread () from /lib/libpthread.so.0
#5  0xb538420e in clone () from /lib/libc.so.6

Thread 5 (Thread 0xad7a1b70 (LWP 20645)):
#0  0xb46eed46 in clock_gettime () from /lib/librt.so.1
#1  0xb615eb8b in ?? () from /usr/lib/libQtCore.so.4
#2  0xb6162c72 in ?? () from /usr/lib/libQtCore.so.4
#3  0xb61616c2 in ?? () from /usr/lib/libQtCore.so.4
#4  0xb616175d in ?? () from /usr/lib/libQtCore.so.4
#5  0xb465d496 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#6  0xb465e333 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#7  0xb465ea04 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#8  0xb6161eb7 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#9  0xb6136119 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#10 0xb613638a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#11 0xb604288d in QThread::exec() () from /usr/lib/libQtCore.so.4
#12 0xb4e59a3b in KDevelop::CompletionWorkerThread::run (this=0xa743070) at /home/mcanes/kde/kdevplatform/language/codecompletion/codecompletionmodel.cpp:80
#13 0xb604532e in ?? () from /usr/lib/libQtCore.so.4
#14 0xb5fd3e60 in start_thread () from /lib/libpthread.so.0
#15 0xb538420e in clone () from /lib/libc.so.6

Thread 4 (Thread 0xadfa2b70 (LWP 20646)):
#0  0xb76f1424 in __kernel_vsyscall ()
#1  0xb5fd83fc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb5167eb7 in ?? () from /usr/lib/libQtScript.so.4
#3  0xb5167f01 in ?? () from /usr/lib/libQtScript.so.4
#4  0xb5fd3e60 in start_thread () from /lib/libpthread.so.0
#5  0xb538420e in clone () from /lib/libc.so.6

Thread 3 (Thread 0xab47db70 (LWP 20650)):
[KCrash Handler]
#7  0xfffffff8 in ?? ()
#8  0xb4e87fa9 in KDevelop::CodeHighlighting::highlightDUChain (this=0xa733568, context=...) at /home/mcanes/kde/kdevplatform/language/highlighting/codehighlighting.cpp:182
#9  0xabaf512f in Php::ParseJob::run (this=0xb38d658) at /home/mcanes/kde/php/phpparsejob.cpp:184
#10 0xb7084607 in ?? () from /usr/lib/libthreadweaver.so.4
#11 0xb7084751 in ThreadWeaver::Job::execute(ThreadWeaver::Thread*) () from /usr/lib/libthreadweaver.so.4
#12 0xb708607f in ThreadWeaver::JobCollection::execute(ThreadWeaver::Thread*) () from /usr/lib/libthreadweaver.so.4
#13 0xb7083daa in ?? () from /usr/lib/libthreadweaver.so.4
#14 0xb7083e9b in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#15 0xb604532e in ?? () from /usr/lib/libQtCore.so.4
#16 0xb5fd3e60 in start_thread () from /lib/libpthread.so.0
#17 0xb538420e in clone () from /lib/libc.so.6

Thread 2 (Thread 0xaac7cb70 (LWP 20651)):
#0  0xb76f1424 in __kernel_vsyscall ()
#1  0xb534e696 in nanosleep () from /lib/libc.so.6
#2  0xb537dc6c in usleep () from /lib/libc.so.6
#3  0xb4db2d23 in KDevelop::DUChainLock::lockForWrite (this=0xa1e4564, timeout=0) at /home/mcanes/kde/kdevplatform/language/duchain/duchainlock.cpp:201
#4  0xb4db305a in KDevelop::DUChainWriteLocker::lock (this=0xaac7b98c) at /home/mcanes/kde/kdevplatform/language/duchain/duchainlock.cpp:299
#5  0xb4db2fd1 in KDevelop::DUChainWriteLocker::DUChainWriteLocker (this=0xaac7b98c, duChainLock=0xa1e4564, timeout=0) at /home/mcanes/kde/kdevplatform/language/duchain/duchainlock.cpp:284
#6  0xac0b89fe in Php::ContextBuilder::visitClassStatement (this=0xaac7bdec, node=0xac226e40) at /home/mcanes/kde/php/duchain/builders/contextbuilder.cpp:231
#7  0xac073930 in Php::Visitor::visitNode (this=0xaac7be1c, node=0xac226e40) at /home/mcanes/kde/build-php/parser/phpvisitor.cpp:85
#8  0xac074dd8 in Php::DefaultVisitor::visitClassBody (this=0xaac7be1c, node=0xac69cf60) at /home/mcanes/kde/build-php/parser/phpdefaultvisitor.cpp:199
#9  0xac07389a in Php::Visitor::visitNode (this=0xaac7be1c, node=0xac69cf60) at /home/mcanes/kde/build-php/parser/phpvisitor.cpp:70
#10 0xac074e8c in Php::DefaultVisitor::visitClassDeclarationStatement (this=0xaac7be1c, node=0xac69cef8) at /home/mcanes/kde/build-php/parser/phpdefaultvisitor.cpp:212
#11 0xac0b8775 in Php::ContextBuilder::visitClassDeclarationStatement (this=0xaac7bdec, node=0xac69cef8) at /home/mcanes/kde/php/duchain/builders/contextbuilder.cpp:199
#12 0xac0a6f3c in Php::PreDeclarationBuilder::visitClassDeclarationStatement (this=0xaac7bdec, node=0xac69cef8) at /home/mcanes/kde/php/duchain/builders/predeclarationbuilder.cpp:84
#13 0xac0738b8 in Php::Visitor::visitNode (this=0xaac7be1c, node=0xac69cef8) at /home/mcanes/kde/build-php/parser/phpvisitor.cpp:73
#14 0xac076b48 in Php::DefaultVisitor::visitTopStatement (this=0xaac7be1c, node=0xac69ced0) at /home/mcanes/kde/build-php/parser/phpdefaultvisitor.cpp:989
#15 0xac074284 in Php::Visitor::visitNode (this=0xaac7be1c, node=0xac69ced0) at /home/mcanes/kde/build-php/parser/phpvisitor.cpp:310
#16 0xac076024 in Php::DefaultVisitor::visitOuterTopStatement (this=0xaac7be1c, node=0xac69ceb0) at /home/mcanes/kde/build-php/parser/phpdefaultvisitor.cpp:727
#17 0xac074044 in Php::Visitor::visitNode (this=0xaac7be1c, node=0xac69ceb0) at /home/mcanes/kde/build-php/parser/phpvisitor.cpp:256
#18 0xac07631a in Php::DefaultVisitor::visitStart (this=0xaac7be1c, node=0xa6112310) at /home/mcanes/kde/build-php/parser/phpdefaultvisitor.cpp:819
#19 0xac0741a4 in Php::Visitor::visitNode (this=0xaac7be1c, node=0xa6112310) at /home/mcanes/kde/build-php/parser/phpvisitor.cpp:289
#20 0xac0b80e7 in Php::ContextBuilder::startVisiting (this=0xaac7bdec, node=0xa6112310) at /home/mcanes/kde/php/duchain/builders/contextbuilder.cpp:116
#21 0xac0ab7fd in KDevelop::AbstractContextBuilder<Php::AstNode, Php::IdentifierAst>::supportBuild (this=0xaac7bdec, node=0xa6112310, context=0xa5b51ab0) at /usr/include/kdevplatform/language/duchain/builders/abstractcontextbuilder.h:133
#22 0xac0b33be in KDevelop::AbstractContextBuilder<Php::AstNode, Php::IdentifierAst>::build (this=0xaac7bdec, url=..., node=0xa6112310, updateContext=...) at /usr/include/kdevplatform/language/duchain/builders/abstractcontextbuilder.h:113
#23 0xac0b7dc3 in Php::ContextBuilder::build (this=0xaac7bdec, url=..., node=0xa6112310, updateContext=...) at /home/mcanes/kde/php/duchain/builders/contextbuilder.cpp:85
#24 0xac0ac3f0 in Php::DeclarationBuilder::build (this=0xaac7beac, url=..., node=0xa6112310, updateContext=...) at /home/mcanes/kde/php/duchain/builders/declarationbuilder.cpp:123
#25 0xabaf4c17 in Php::ParseJob::run (this=0xbbf6bb0) at /home/mcanes/kde/php/phpparsejob.cpp:146
#26 0xb7084607 in ?? () from /usr/lib/libthreadweaver.so.4
#27 0xb7084751 in ThreadWeaver::Job::execute(ThreadWeaver::Thread*) () from /usr/lib/libthreadweaver.so.4
#28 0xb708607f in ThreadWeaver::JobCollection::execute(ThreadWeaver::Thread*) () from /usr/lib/libthreadweaver.so.4
#29 0xb7083daa in ?? () from /usr/lib/libthreadweaver.so.4
#30 0xb7083e9b in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#31 0xb604532e in ?? () from /usr/lib/libQtCore.so.4
#32 0xb5fd3e60 in start_thread () from /lib/libpthread.so.0
#33 0xb538420e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb2de4930 (LWP 20629)):
#0  0xb76f1424 in __kernel_vsyscall ()
#1  0xb5fd83fc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb60459cf in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb6044a5b in QThread::wait(unsigned long) () from /usr/lib/libQtCore.so.4
#4  0xb61175d0 in ?? () from /usr/lib/libQtCore.so.4
#5  0xb52e2ddf in ?? () from /lib/libc.so.6
#6  0xb52e2e3f in exit () from /lib/libc.so.6
#7  0xb571899b in ?? () from /usr/lib/libQtGui.so.4
#8  0xb648f56a in KApplication::xioErrhandler(_XDisplay*) () from /usr/lib/libkdeui.so.5
#9  0xb648f5a6 in ?? () from /usr/lib/libkdeui.so.5
#10 0xb4a1be96 in _XIOError () from /usr/lib/libX11.so.6
#11 0xb4a22fdf in _XEventsQueued () from /usr/lib/libX11.so.6
#12 0xb4a0c24b in XEventsQueued () from /usr/lib/libX11.so.6
#13 0xb5753012 in ?? () from /usr/lib/libQtGui.so.4
#14 0xb465d496 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#15 0xb465e333 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#16 0xb465ea04 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#17 0xb6161e7c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#18 0xb57531b5 in ?? () from /usr/lib/libQtGui.so.4
#19 0xb6136119 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#20 0xb613638a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#21 0xb613ac6f in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#22 0xb56a4637 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#23 0x080514a6 in main (argc=1, argv=0xbfca8f64) at /home/mcanes/kde/kdevelop/app/main.cpp:402

Reported using DrKonqi
Comment 1 Miquel Canes 2010-09-15 09:37:23 UTC
It happends opening a php file too.

Application: KDevelop (kdevelop), signal: Segmentation fault
[Current thread is 1 (Thread 0xb2ed6930 (LWP 5121))]

Thread 6 (Thread 0xafe2fb70 (LWP 5122)):
#0  0xb77e3424 in __kernel_vsyscall ()
#1  0xb60ca7a4 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb613794f in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb4e41917 in KDevelop::DUChainPrivate::CleanupThread::run (this=0x9f76860) at /home/mcanes/kde/kdevplatform/language/duchain/duchain.cpp:283
#4  0xb613732e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb60c5e60 in start_thread () from /lib/libpthread.so.0
#6  0xb547620e in clone () from /lib/libc.so.6

Thread 5 (Thread 0xad355b70 (LWP 5125)):
#0  0xb77e3424 in __kernel_vsyscall ()
#1  0xb546f1f1 in select () from /lib/libc.so.6
#2  0xb6209c41 in ?? () from /usr/lib/libQtCore.so.4
#3  0xb613732e in ?? () from /usr/lib/libQtCore.so.4
#4  0xb60c5e60 in start_thread () from /lib/libpthread.so.0
#5  0xb547620e in clone () from /lib/libc.so.6

Thread 4 (Thread 0xadb56b70 (LWP 5202)):
#0  0xb47e0d46 in clock_gettime () from /lib/librt.so.1
#1  0xb6250b8b in ?? () from /usr/lib/libQtCore.so.4
#2  0xb6254c72 in ?? () from /usr/lib/libQtCore.so.4
#3  0xb62536c2 in ?? () from /usr/lib/libQtCore.so.4
#4  0xb625375d in ?? () from /usr/lib/libQtCore.so.4
#5  0xb474f496 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#6  0xb4750333 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#7  0xb4750a04 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#8  0xb6253eb7 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#9  0xb6228119 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#10 0xb622838a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#11 0xb613488d in QThread::exec() () from /usr/lib/libQtCore.so.4
#12 0xb4f4ba3b in KDevelop::CompletionWorkerThread::run (this=0xa58bc10) at /home/mcanes/kde/kdevplatform/language/codecompletion/codecompletionmodel.cpp:80
#13 0xb613732e in ?? () from /usr/lib/libQtCore.so.4
#14 0xb60c5e60 in start_thread () from /lib/libpthread.so.0
#15 0xb547620e in clone () from /lib/libc.so.6

Thread 3 (Thread 0xae357b70 (LWP 5203)):
#0  0xb77e3424 in __kernel_vsyscall ()
#1  0xb60ca3fc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb61379cf in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb71748a2 in ?? () from /usr/lib/libthreadweaver.so.4
#4  0xb717716c in ?? () from /usr/lib/libthreadweaver.so.4
#5  0xb717448b in ?? () from /usr/lib/libthreadweaver.so.4
#6  0xb717725a in ?? () from /usr/lib/libthreadweaver.so.4
#7  0xb71743b3 in ?? () from /usr/lib/libthreadweaver.so.4
#8  0xb7175dde in ?? () from /usr/lib/libthreadweaver.so.4
#9  0xb7175e9b in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#10 0xb613732e in ?? () from /usr/lib/libQtCore.so.4
#11 0xb60c5e60 in start_thread () from /lib/libpthread.so.0
#12 0xb547620e in clone () from /lib/libc.so.6

Thread 2 (Thread 0xac054b70 (LWP 5204)):
#0  0xb77e3424 in __kernel_vsyscall ()
#1  0xb60ca3fc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb61379cf in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb71748a2 in ?? () from /usr/lib/libthreadweaver.so.4
#4  0xb717716c in ?? () from /usr/lib/libthreadweaver.so.4
#5  0xb717448b in ?? () from /usr/lib/libthreadweaver.so.4
#6  0xb717725a in ?? () from /usr/lib/libthreadweaver.so.4
#7  0xb71743b3 in ?? () from /usr/lib/libthreadweaver.so.4
#8  0xb7177279 in ?? () from /usr/lib/libthreadweaver.so.4
#9  0xb71743b3 in ?? () from /usr/lib/libthreadweaver.so.4
#10 0xb7175dde in ?? () from /usr/lib/libthreadweaver.so.4
#11 0xb7175e9b in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#12 0xb613732e in ?? () from /usr/lib/libQtCore.so.4
#13 0xb60c5e60 in start_thread () from /lib/libpthread.so.0
#14 0xb547620e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb2ed6930 (LWP 5121)):
[KCrash Handler]
#7  0xfffffff8 in ?? ()
#8  0xb4f79fa9 in KDevelop::CodeHighlighting::highlightDUChain (this=0xa7bb308, context=...) at /home/mcanes/kde/kdevplatform/language/highlighting/codehighlighting.cpp:182
#9  0xb4e3e9ee in KDevelop::DUChain::documentLoadedPrepare (this=0x9f73958, doc=0xb64e1c0) at /home/mcanes/kde/kdevplatform/language/duchain/duchain.cpp:1491
#10 0xb4e401a1 in KDevelop::DUChain::qt_metacall (this=0x9f73958, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0xbfc553c8) at /home/mcanes/kde/build-kdevplatform/language/duchain.moc:164
#11 0xb622eeba in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#12 0xb623df9b in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#13 0xb75528a8 in KDevelop::IDocumentController::documentLoadedPrepare (this=0x9e7bd30, _t1=0xb64e1c0) at /home/mcanes/kde/build-kdevplatform/interfaces/idocumentcontroller.moc:279
#14 0xb754ece4 in KDevelop::IDocument::notifyLoaded (this=0xb64e1c0) at /home/mcanes/kde/kdevplatform/interfaces/idocument.cpp:119
#15 0xb74d0d81 in KDevelop::TextDocumentPrivate::slotDocumentLoaded (this=0xaa30600) at /home/mcanes/kde/kdevplatform/shell/textdocument.cpp:174
#16 0xb74d00ed in KDevelop::TextDocument::qt_metacall (this=0xb64e1b0, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0xbfc55508) at /home/mcanes/kde/build-kdevplatform/shell/textdocument.moc:94
#17 0xb622eeba in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#18 0xb623df9b in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#19 0xb7199d16 in KTextEditor::Document::textChanged (this=0xa65b0d8, _t1=0xa65b0d8) at /home/mcanes/kde/build-kate/ktexteditor/document.moc:180
#20 0xb06f35f3 in KateDocument::openFile (this=0xa65b0d8) at /home/mcanes/kde/kate/part/document/katedocument.cpp:2013
#21 0xb71ddc64 in KParts::ReadOnlyPart::openUrl(KUrl const&) () from /usr/lib/libkparts.so.4
#22 0xb74cd736 in KDevelop::TextDocument::createViewWidget (this=0xb64e1b0, parent=0xa179958) at /home/mcanes/kde/kdevplatform/shell/textdocument.cpp:261
#23 0xb74ceca7 in KDevelop::TextView::createWidget (this=0xaa3a518, parent=0xa179958) at /home/mcanes/kde/kdevplatform/shell/textdocument.cpp:536
#24 0xb4d8629a in Sublime::View::widget (this=0xaa3a518, parent=0xa179958) at /home/mcanes/kde/kdevplatform/sublime/view.cpp:82
#25 0xb4d7f83f in Sublime::MainWindowPrivate::ViewCreator::operator() (this=0xbfc559f0, index=0x9cc9e58) at /home/mcanes/kde/kdevplatform/sublime/mainwindow_p.cpp:248
#26 0xb4d84b68 in Sublime::Area::walkViewsInternal<Sublime::MainWindowPrivate::ViewCreator> (this=0x9cc9e68, op=..., index=0x9cc9e58) at /home/mcanes/kde/kdevplatform/sublime/areawalkers.h:32
#27 0xb4d83be5 in Sublime::Area::walkViews<Sublime::MainWindowPrivate::ViewCreator> (this=0x9cc9e68, op=..., index=0x9cc9e58) at /home/mcanes/kde/kdevplatform/sublime/areawalkers.h:48
#28 0xb4d80775 in Sublime::MainWindowPrivate::viewAdded (this=0x9cf4668, index=0x9cc9e58, view=0xaa3a518) at /home/mcanes/kde/kdevplatform/sublime/mainwindow_p.cpp:404
#29 0xb4d7b4e6 in Sublime::MainWindow::qt_metacall (this=0x9ce9c78, _c=QMetaObject::InvokeMetaMethod, _id=12, _a=0xbfc55b14) at /home/mcanes/kde/build-kdevplatform/sublime/mainwindow.moc:123
#30 0xb74a705f in KDevelop::MainWindow::qt_metacall (this=0x9ce9c78, _c=QMetaObject::InvokeMetaMethod, _id=62, _a=0xbfc55b14) at /home/mcanes/kde/build-kdevplatform/shell/mainwindow.moc:90
#31 0xb622eeba in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#32 0xb623df9b in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#33 0xb4d6b6a5 in Sublime::Area::viewAdded (this=0x9cc9e68, _t1=0x9cc9e58, _t2=0xaa3a518) at /home/mcanes/kde/build-kdevplatform/sublime/area.moc:115
#34 0xb4d69710 in Sublime::Area::addView (this=0x9cc9e68, view=0xaa3a518, index=0x9cc9e58) at /home/mcanes/kde/kdevplatform/sublime/area.cpp:167
#35 0xb4d69932 in Sublime::Area::addView (this=0x9cc9e68, view=0xaa3a518, after=0x0) at /home/mcanes/kde/kdevplatform/sublime/area.cpp:191
#36 0xb74d68a8 in KDevelop::DocumentControllerPrivate::openDocumentInternal (this=0x9eea1d0, doc=0xb64e1c0, range=..., activationParams=...) at /home/mcanes/kde/kdevplatform/shell/documentcontroller.cpp:352
#37 0xb74d62c3 in KDevelop::DocumentControllerPrivate::openDocumentInternal (this=0x9eea1d0, inputUrl=..., prefName=..., range=..., encoding=..., activationParams=...) at /home/mcanes/kde/kdevplatform/shell/documentcontroller.cpp:280
#38 0xb74d2583 in KDevelop::DocumentController::openDocument (this=0x9e7bd30, inputUrl=..., range=..., activationParams=..., encoding=...) at /home/mcanes/kde/kdevplatform/shell/documentcontroller.cpp:551
#39 0xaca97ddb in ProjectManagerView::openUrl (this=0xa22a9f8, url=...) at /home/mcanes/kde/kdevplatform/plugins/projectmanagerview/projectmanagerview.cpp:191
#40 0xaca97f3b in ProjectManagerView::qt_metacall (this=0xa22a9f8, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0xbfc55fb8) at /home/mcanes/kde/build-kdevplatform/plugins/projectmanagerview/projectmanagerview.moc:80
#41 0xb622eeba in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#42 0xb623df9b in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#43 0xaca9a944 in ProjectTreeView::activateUrl (this=0xa26bfb8, _t1=...) at /home/mcanes/kde/build-kdevplatform/plugins/projectmanagerview/projecttreeview.moc:94
#44 0xaca998fd in ProjectTreeView::slotActivated (this=0xa26bfb8, index=...) at /home/mcanes/kde/kdevplatform/plugins/projectmanagerview/projecttreeview.cpp:147
#45 0xaca9a8c6 in ProjectTreeView::qt_metacall (this=0xa26bfb8, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xbfc560f8) at /home/mcanes/kde/build-kdevplatform/plugins/projectmanagerview/projecttreeview.moc:80
#46 0xb622eeba in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#47 0xb623df9b in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#48 0xb5d00493 in QAbstractItemView::doubleClicked(QModelIndex const&) () from /usr/lib/libQtGui.so.4
#49 0xb5d4af77 in QTreeView::mouseDoubleClickEvent(QMouseEvent*) () from /usr/lib/libQtGui.so.4
#50 0xb57f0146 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#51 0xb5bd2cf3 in QFrame::event(QEvent*) () from /usr/lib/libQtGui.so.4
#52 0xb5c5f022 in QAbstractScrollArea::viewportEvent(QEvent*) () from /usr/lib/libQtGui.so.4
#53 0xb5cfd50f in QAbstractItemView::viewportEvent(QEvent*) () from /usr/lib/libQtGui.so.4
#54 0xb5d45e29 in QTreeView::viewportEvent(QEvent*) () from /usr/lib/libQtGui.so.4
#55 0xb5c619c5 in ?? () from /usr/lib/libQtGui.so.4
#56 0xb622906a in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#57 0xb5798ef0 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#58 0xb579dab9 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#59 0xb658285a in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#60 0x0804babf in KDevelopApplication::notify (this=0xbfc57470, receiver=0xa105dd8, event=0xbfc56bb8) at /home/mcanes/kde/kdevelop/app/main.cpp:87
#61 0xb6228ecb in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#62 0xb5799dc7 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/libQtGui.so.4
#63 0xb581ee1c in ?? () from /usr/lib/libQtGui.so.4
#64 0xb581df69 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#65 0xb5845572 in ?? () from /usr/lib/libQtGui.so.4
#66 0xb474ff72 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#67 0xb4750750 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#68 0xb4750a04 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#69 0xb6253e7c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#70 0xb58451b5 in ?? () from /usr/lib/libQtGui.so.4
#71 0xb6228119 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#72 0xb622838a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#73 0xb622cc6f in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#74 0xb5796637 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#75 0x080514a6 in main (argc=1, argv=0xbfc57c04) at /home/mcanes/kde/kdevelop/app/main.cpp:402
Comment 2 Francesco Nwokeka 2010-09-17 01:34:21 UTC
Same problem for me on Arch Linux 64bit. I get this crash ALWAYS when opening a session with php files. The program doesn't finish loading and just crashes

Launched kdevelop with gdb:

Starting program: /usr/bin/kdevelop 
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
[Thread debugging using libthread_db enabled]
WARNING: deleting stale lockfile /home/z3r0/.kde4/share/apps/kdevelop/sessions//{c8eb7129-faa6-4000-83b8-63f39967f3a5}/lock
process 16439 is executing new program: /usr/bin/kdevelop.bin
[Thread debugging using libthread_db enabled]
WARNING: deleting stale lockfile /home/z3r0/.kdevduchain/{c8eb7129-faa6-4000-83b8-63f39967f3a5}/0/lock
<unknown program name>(16439)/ KDevelop::allocateRepository: picked duchain directory "/home/z3r0/.kdevduchain/{c8eb7129-faa6-4000-83b8-63f39967f3a5}/0"
<unknown program name>(16439)/ KDevelop::ItemRepositoryRegistry::open: version-hint not found, seems to be an old version 
<unknown program name>(16439)/ KDevelop::ItemRepositoryRegistry::open: current count of crashes:  1
<unknown program name>(16439)/ KDevelop::ItemRepositoryRegistry::open: "The data-repository at /home/z3r0/.kdevduchain/{c8eb7129-faa6-4000-83b8-63f39967f3a5}/0 has to be cleared." 
<unknown program name>(16439)/ KDevelop::allocateRepository: picked duchain directory "/home/z3r0/.kdevduchain/{c8eb7129-faa6-4000-83b8-63f39967f3a5}/0"
QFSFileEngine::map: Mapping a file beyond its size is not portable
QFSFileEngine::map: Mapping a file beyond its size is not portable
QFSFileEngine::map: Mapping a file beyond its size is not portable
QFSFileEngine::map: Mapping a file beyond its size is not portable
QFSFileEngine::map: Mapping a file beyond its size is not portable
QFSFileEngine::map: Mapping a file beyond its size is not portable
QFSFileEngine::map: Mapping a file beyond its size is not portable
QFSFileEngine::map: Mapping a file beyond its size is not portable
[New Thread 0x7fffe45ca710 (LWP 16449)]
[New Thread 0x7fffde33d710 (LWP 16450)]
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
kdevelop(16439) PatchReviewPlugin::setPatch: setting new patch "Custom Patch" with file KUrl("")
kdevelop(16439) PatchReviewPlugin::notifyPatchChanged: notifying patch change:  KUrl("")
kdevelop(16439)/kdecore (KLibrary) findLibraryInternal: plugins should not have a 'lib' prefix: "libkonsolepart.so"
[New Thread 0x7fffd4c5f710 (LWP 16451)]
[New Thread 0x7fffd445e710 (LWP 16452)]
[New Thread 0x7fffd3c5d710 (LWP 16453)]
[Thread 0x7fffd4c5f710 (LWP 16451) exited]
QFSFileEngine::map: Mapping a file beyond its size is not portable
[New Thread 0x7fffd4c5f710 (LWP 16458)]
could not find DUChain for internal function file, connecting to background parser 
[Thread 0x7fffd445e710 (LWP 16452) exited]
QFSFileEngine::map: Mapping a file beyond its size is not portable
kdevelop(16439)/kdecore (services) KMimeTypeFactory::parseMagic: Now parsing  "/usr/share/mime/magic"
kdevelop(16439)/kdecore (services) KMimeTypeFactory::parseMagic: Now parsing  "/home/z3r0/.local/share/mime/magic"
kdevelop(16439) PatchReviewPlugin::addHighlighting: highlightFile(): no model
kdevelop(16439) PatchReviewPlugin::addHighlighting: highlightFile(): no model
kdevelop(16439)/kdevplatform (shell) KDevelop::SessionControllerPrivate::performRecovery: Starting recovery from  "/home/z3r0/.kde4/share/apps/kdevelop/sessions/{c8eb7129-faa6-4000-83b8-63f39967f3a5}/recovery/current" 
kdevelop(16439) PatchReviewPlugin::updateKompareModel: updating model
[New Thread 0x7fffd445e710 (LWP 16471)]
[New Thread 0x7fffd03cd710 (LWP 16472)]
could not find DUChain for internal function file, connecting to background parser 
QFSFileEngine::map: Mapping a file beyond its size is not portable
QFSFileEngine::map: Mapping a file beyond its size is not portable
kdevelop(16439)/kdevelop (php support) Php::ContextBuilder::startVisiting: importing internalFunctions failed "/srv/http/2s2hwebsite/functions/functions.php" 
QFSFileEngine::map: Mapping a file beyond its size is not portable
QFSFileEngine::map: Mapping a file beyond its size is not portable
QFSFileEngine::map: Mapping a file beyond its size is not portable
kdevelop(16439)/kdevelop (php support) Php::ContextBuilder::startVisiting: importing internalFunctions failed "/srv/http/2s2hwebsite/functions/WebClass.php" 

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffd03cd710 (LWP 16472)]
0x00007ffff58697d3 in __dynamic_cast () from /usr/lib/libstdc++.so.6




and here is the backtrace:

#0  0x00007ffff58697d3 in __dynamic_cast () from /usr/lib/libstdc++.so.6
#1  0x00007fffd2282f3b in Php::ClassDeclaration::setInSymbolTable(bool) () from /usr/lib/libkdev4phpduchain.so
#2  0x00007fffd224c241 in Php::PreDeclarationBuilder::visitClassDeclarationStatement(Php::ClassDeclarationStatementAst*) ()
   from /usr/lib/libkdev4phpduchain.so
#3  0x00007fffd200c980 in Php::DefaultVisitor::visitTopStatement(Php::TopStatementAst*) () from /usr/lib/libkdev4phpparser.so
#4  0x00007fffd200bf4d in Php::DefaultVisitor::visitInnerStatementList(Php::InnerStatementListAst*) () from /usr/lib/libkdev4phpparser.so
#5  0x00007fffd225b281 in Php::ContextBuilder::startVisiting(Php::AstNode*) () from /usr/lib/libkdev4phpduchain.so
#6  0x00007fffd224ceb3 in ?? () from /usr/lib/libkdev4phpduchain.so
#7  0x00007fffd2257b7d in ?? () from /usr/lib/libkdev4phpduchain.so
#8  0x00007fffd225cf15 in Php::ContextBuilder::build(KDevelop::IndexedString const&, Php::AstNode*, KDevelop::ReferencedTopDUContext, bool) ()
   from /usr/lib/libkdev4phpduchain.so
#9  0x00007fffd22511ed in Php::DeclarationBuilder::build(KDevelop::IndexedString const&, Php::AstNode*, KDevelop::ReferencedTopDUContext, bool) ()
   from /usr/lib/libkdev4phpduchain.so
#10 0x00007fffd24c825e in ?? () from /usr/lib/kde4/kdevphplanguagesupport.so
#11 0x00007fffed293b45 in ?? () from /usr/lib/libthreadweaver.so.4
#12 0x00007fffed293c7e in ThreadWeaver::Job::execute(ThreadWeaver::Thread*) () from /usr/lib/libthreadweaver.so.4
#13 0x00007fffed29344f in ?? () from /usr/lib/libthreadweaver.so.4
#14 0x00007fffed293508 in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#15 0x00007ffff6785485 in ?? () from /usr/lib/libQtCore.so.4
#16 0x00007ffff523bcb0 in start_thread () from /lib/libpthread.so.0
#17 0x00007ffff55207ad in clone () from /lib/libc.so.6
#18 0x0000000000000000 in ?? ()
Comment 3 Milian Wolff 2010-09-17 19:22:41 UTC
does this persist when you recompile kdevplatform, kdevelop and the PHP plugin? I highly suspsect a binary compatibility issue.
Comment 4 Francesco Nwokeka 2010-09-20 16:03:22 UTC
(In reply to comment #3)
> does this persist when you recompile kdevplatform, kdevelop and the PHP plugin?
> I highly suspsect a binary compatibility issue.

Recompiled kdevplatform, kdevelop and the php plugin + php docs from git and all goes well.