Application: kdevelop (3.9.98 (using KDevPlatform 0.9.98)) KDE Platform Version: 4.4.00 (KDE 4.4.0) Qt Version: 4.6.2 Operating System: Linux 2.6.31-14-386 i686 Distribution: Linux Mint 7 Gloria - KDE Community Edition -- Information about the crash: I have a large PHP file (about 1200 lines) and KDevelop consequently fails to parse it. It crashes when I type anything in file or go to problems tab and click to re-parse file. Kdevelop/kdeplatform/php-plugin is beta3 compiled from source, but rest is official packages. glibc is in 2.11.1 from lucid, so this rather this is not a malloc bug. The crash can be reproduced every time. -- Backtrace: Application: KDevelop (kdevelop.bin), signal: Segmentation fault [Current thread is 1 (Thread 0xb77789d0 (LWP 8860))] Thread 8 (Thread 0xb4971b70 (LWP 8861)): #0 0x009bd422 in __kernel_vsyscall () #1 0x00516282 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_timedwait.S:179 #2 0x07b3d24f in QWaitConditionPrivate::wait (this=0x849c554, mutex=0x849c558, time=200000) at thread/qwaitcondition_unix.cpp:85 #3 QWaitCondition::wait (this=0x849c554, mutex=0x849c558, time=200000) at thread/qwaitcondition_unix.cpp:159 #4 0x062dc535 in KDevelop::DUChainPrivate::CleanupThread::run (this=0x849c548) at /home/cyryl/soft/kdevplatform-0.9.98/language/duchain/duchain.cpp:286 #5 0x07b3c36e in QThreadPrivate::start (arg=0x849c548) at thread/qthread_unix.cpp:248 #6 0x005118de in start_thread (arg=0xb4971b70) at pthread_create.c:300 #7 0x0254295e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130 Thread 7 (Thread 0xb2303b70 (LWP 8867)): #0 0x07d5de16 in *__GI_clock_gettime (clock_id=131473396, tp=0xb2302f98) at ../sysdeps/unix/clock_gettime.c:100 #1 0x07c6792b in qt_gettime () at kernel/qcore_unix.cpp:111 #2 0x07c6ca15 in QTimerInfoList::updateCurrentTime (this=0x896d09c) at kernel/qeventdispatcher_unix.cpp:340 #3 0x07c6ca5a in QTimerInfoList::timerWait (this=0x896d09c, tm=...) at kernel/qeventdispatcher_unix.cpp:443 #4 0x07c6aa48 in timerSourcePrepareHelper (src=<value optimized out>, timeout=0xb23030ac) at kernel/qeventdispatcher_glib.cpp:136 #5 0x07c6aad5 in timerSourcePrepare (source=0x0, timeout=0x7d61ff4) at kernel/qeventdispatcher_glib.cpp:169 #6 0x0275a2ea in g_main_context_prepare () from /lib/libglib-2.0.so.0 #7 0x0275a709 in ?? () from /lib/libglib-2.0.so.0 #8 0x0275acc8 in g_main_context_iteration () from /lib/libglib-2.0.so.0 #9 0x07c6a83f in QEventDispatcherGlib::processEvents (this=0x88fbaf8, flags=...) at kernel/qeventdispatcher_glib.cpp:414 #10 0x07c3d209 in QEventLoop::processEvents (this=0xb2303270, flags=) at kernel/qeventloop.cpp:149 #11 0x07c3d65a in QEventLoop::exec (this=0xb2303270, flags=...) at kernel/qeventloop.cpp:201 #12 0x07b395e8 in QThread::exec (this=0x896c898) at thread/qthread.cpp:487 #13 0x063e1fa0 in KDevelop::CompletionWorkerThread::run (this=0x896c898) at /home/cyryl/soft/kdevplatform-0.9.98/language/codecompletion/codecompletionmodel.cpp:82 #14 0x07b3c36e in QThreadPrivate::start (arg=0x896c898) at thread/qthread_unix.cpp:248 #15 0x005118de in start_thread (arg=0xb2303b70) at pthread_create.c:300 #16 0x0254295e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130 Thread 6 (Thread 0xb16cbb70 (LWP 8868)): #0 0x009bd422 in __kernel_vsyscall () #1 0x00515f55 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122 #2 0x04189887 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x42621a0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2304 #3 0x041898d1 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0x42621a0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1438 #4 0x005118de in start_thread (arg=0xb16cbb70) at pthread_create.c:300 #5 0x0254295e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130 The current source language is "auto; currently c". Thread 5 (Thread 0xb083db70 (LWP 8875)): [KCrash Handler] #6 KDevelop::Declaration::indexedType (this=0x0) at /home/cyryl/soft/kdevplatform-0.9.98/language/duchain/declaration.cpp:304 #7 0x0631efb1 in KDevelop::isPublicBaseClassInternal (self=0x0, base=0xaf7cea98, topContext=0xaecef8c0, baseConversionLevels=0x0, depth=0, checked=0x0) at /home/cyryl/soft/kdevplatform-0.9.98/language/duchain/classdeclaration.cpp:102 #8 0x0631f356 in KDevelop::ClassDeclaration::isPublicBaseClass (this=0x0, base=0xaf7cea98, topContext=0xaecef8c0, baseConversionLevels=0x0) at /home/cyryl/soft/kdevplatform-0.9.98/language/duchain/classdeclaration.cpp:128 #9 0x038b0505 in Php::TypeBuilder::visitStatement (this=0xb083cce8, node=0xaec0e254) at /home/cyryl/soft/php-1.0-beta3/duchain/builders/typebuilder.cpp:474 #10 0x038a3869 in Php::DeclarationBuilder::visitStatement (this=0xb083cce8, node=0xaec0e254) at /home/cyryl/soft/php-1.0-beta3/duchain/builders/declarationbuilder.cpp:915 #11 0x03894eb9 in Php::Visitor::visitNode (this=0xb083cd18, node=0x0) at /home/cyryl/soft/php-1.0-beta3/parser/generated/phpvisitor.h:22 #12 0x033e2c1d in Php::DefaultVisitor::visitTopStatement (this=0xb083cd18, node=0xaec0e22c) at /home/cyryl/soft/php-1.0-beta3/parser/generated/phpdefaultvisitor.cpp:898 #13 0x0389ae33 in Php::DeclarationBuilder::visitTopStatement (this=0xb083cce8, node=0xaec0e22c) at /home/cyryl/soft/php-1.0-beta3/duchain/builders/declarationbuilder.cpp:601 #14 0x03894eb9 in Php::Visitor::visitNode (this=0xb083cd18, node=0x0) at /home/cyryl/soft/php-1.0-beta3/parser/generated/phpvisitor.h:22 #15 0x033e214e in Php::DefaultVisitor::visitInnerStatementList (this=0xb083cd18, node=0xaec04808) at /home/cyryl/soft/php-1.0-beta3/parser/generated/phpdefaultvisitor.cpp:534 #16 0x03894eb9 in Php::Visitor::visitNode (this=0xb083cd18, node=0x0) at /home/cyryl/soft/php-1.0-beta3/parser/generated/phpvisitor.h:22 #17 0x033e272d in Php::DefaultVisitor::visitStatement (this=0xb083cd18, node=0xaec04770) at /home/cyryl/soft/php-1.0-beta3/parser/generated/phpdefaultvisitor.cpp:758 #18 0x038aff6c in Php::TypeBuilder::visitStatement (this=0xb083cce8, node=0xaec04770) at /home/cyryl/soft/php-1.0-beta3/duchain/builders/typebuilder.cpp:412 #19 0x038a3869 in Php::DeclarationBuilder::visitStatement (this=0xb083cce8, node=0xaec04770) at /home/cyryl/soft/php-1.0-beta3/duchain/builders/declarationbuilder.cpp:915 #20 0x03894eb9 in Php::Visitor::visitNode (this=0xb083cd18, node=0x0) at /home/cyryl/soft/php-1.0-beta3/parser/generated/phpvisitor.h:22 #21 0x033e1f31 in Php::DefaultVisitor::visitForeachStatement (this=0xb083cd18, node=0xaec04750) at /home/cyryl/soft/php-1.0-beta3/parser/generated/phpdefaultvisitor.cpp:471 #22 0x03894eb9 in Php::Visitor::visitNode (this=0xb083cd18, node=0x0) at /home/cyryl/soft/php-1.0-beta3/parser/generated/phpvisitor.h:22 #23 0x033e2871 in Php::DefaultVisitor::visitStatement (this=0xb083cd18, node=0xaec04508) at /home/cyryl/soft/php-1.0-beta3/parser/generated/phpdefaultvisitor.cpp:776 #24 0x038aff6c in Php::TypeBuilder::visitStatement (this=0xb083cce8, node=0xaec04508) at /home/cyryl/soft/php-1.0-beta3/duchain/builders/typebuilder.cpp:412 #25 0x038a3869 in Php::DeclarationBuilder::visitStatement (this=0xb083cce8, node=0xaec04508) at /home/cyryl/soft/php-1.0-beta3/duchain/builders/declarationbuilder.cpp:915 #26 0x03894eb9 in Php::Visitor::visitNode (this=0xb083cd18, node=0x0) at /home/cyryl/soft/php-1.0-beta3/parser/generated/phpvisitor.h:22 #27 0x033e2c1d in Php::DefaultVisitor::visitTopStatement (this=0xb083cd18, node=0xaec044e0) at /home/cyryl/soft/php-1.0-beta3/parser/generated/phpdefaultvisitor.cpp:898 #28 0x0389ae33 in Php::DeclarationBuilder::visitTopStatement (this=0xb083cce8, node=0xaec044e0) at /home/cyryl/soft/php-1.0-beta3/duchain/builders/declarationbuilder.cpp:601 #29 0x03894eb9 in Php::Visitor::visitNode (this=0xb083cd18, node=0x0) at /home/cyryl/soft/php-1.0-beta3/parser/generated/phpvisitor.h:22 #30 0x033e214e in Php::DefaultVisitor::visitInnerStatementList (this=0xb083cd18, node=0xaf717e70) at /home/cyryl/soft/php-1.0-beta3/parser/generated/phpdefaultvisitor.cpp:534 #31 0x03894eb9 in Php::Visitor::visitNode (this=0xb083cd18, node=0x0) at /home/cyryl/soft/php-1.0-beta3/parser/generated/phpvisitor.h:22 #32 0x033e22bb in Php::DefaultVisitor::visitMethodBody (this=0xb083cd18, node=0xaf717e54) at /home/cyryl/soft/php-1.0-beta3/parser/generated/phpdefaultvisitor.cpp:592 #33 0x03894eb9 in Php::Visitor::visitNode (this=0xb083cd18, node=0x0) at /home/cyryl/soft/php-1.0-beta3/parser/generated/phpvisitor.h:22 #34 0x038a82ce in Php::ContextBuilder::visitClassStatement (this=0xb083cce8, node=0xaf717d6c) at /home/cyryl/soft/php-1.0-beta3/duchain/builders/contextbuilder.cpp:230 #35 0x038afb6e in Php::TypeBuilder::visitClassStatement (this=0xb083cce8, node=0xaf717d6c) at /home/cyryl/soft/php-1.0-beta3/duchain/builders/typebuilder.cpp:294 #36 0x0389fd40 in Php::DeclarationBuilder::visitClassStatement (this=0xb083cce8, node=0xaf717d6c) at /home/cyryl/soft/php-1.0-beta3/duchain/builders/declarationbuilder.cpp:338 #37 0x03894eb9 in Php::Visitor::visitNode (this=0xb083cd18, node=0x0) at /home/cyryl/soft/php-1.0-beta3/parser/generated/phpvisitor.h:22 #38 0x033e16de in Php::DefaultVisitor::visitClassBody (this=0xb083cd18, node=0xae87871c) at /home/cyryl/soft/php-1.0-beta3/parser/generated/phpdefaultvisitor.cpp:199 #39 0x03894eb9 in Php::Visitor::visitNode (this=0xb083cd18, node=0x0) at /home/cyryl/soft/php-1.0-beta3/parser/generated/phpvisitor.h:22 #40 0x033e1789 in Php::DefaultVisitor::visitClassDeclarationStatement (this=0xb083cd18, node=0xae8786b4) at /home/cyryl/soft/php-1.0-beta3/parser/generated/phpdefaultvisitor.cpp:218 #41 0x038a7f1c in Php::ContextBuilder::visitClassDeclarationStatement (this=0xb083cce8, node=0xae8786b4) at /home/cyryl/soft/php-1.0-beta3/duchain/builders/contextbuilder.cpp:194 #42 0x038ad184 in Php::TypeBuilder::visitClassDeclarationStatement (this=0xb083cce8, node=0xae8786b4) at /home/cyryl/soft/php-1.0-beta3/duchain/builders/typebuilder.cpp:276 #43 0x0389d5a8 in Php::DeclarationBuilder::visitClassDeclarationStatement (this=0xb083cce8, node=0xae8786b4) at /home/cyryl/soft/php-1.0-beta3/duchain/builders/declarationbuilder.cpp:166 #44 0x03894eb9 in Php::Visitor::visitNode (this=0xb083cd18, node=0x0) at /home/cyryl/soft/php-1.0-beta3/parser/generated/phpvisitor.h:22 #45 0x033e2c3b in Php::DefaultVisitor::visitTopStatement (this=0xb083cd18, node=0xae87868c) at /home/cyryl/soft/php-1.0-beta3/parser/generated/phpdefaultvisitor.cpp:900 #46 0x0389ae33 in Php::DeclarationBuilder::visitTopStatement (this=0xb083cce8, node=0xae87868c) at /home/cyryl/soft/php-1.0-beta3/duchain/builders/declarationbuilder.cpp:601 #47 0x03894eb9 in Php::Visitor::visitNode (this=0xb083cd18, node=0x0) at /home/cyryl/soft/php-1.0-beta3/parser/generated/phpvisitor.h:22 #48 0x033e214e in Php::DefaultVisitor::visitInnerStatementList (this=0xb083cd18, node=0xae825c2c) at /home/cyryl/soft/php-1.0-beta3/parser/generated/phpdefaultvisitor.cpp:534 #49 0x03894eb9 in Php::Visitor::visitNode (this=0xb083cd18, node=0x0) at /home/cyryl/soft/php-1.0-beta3/parser/generated/phpvisitor.h:22 #50 0x033e270b in Php::DefaultVisitor::visitStart (this=0xb083cd18, node=0xae825c10) at /home/cyryl/soft/php-1.0-beta3/parser/generated/phpdefaultvisitor.cpp:753 #51 0x03894eb9 in Php::Visitor::visitNode (this=0xb083cd18, node=0x0) at /home/cyryl/soft/php-1.0-beta3/parser/generated/phpvisitor.h:22 #52 0x038a737e in Php::ContextBuilder::startVisiting (this=0xb083cce8, node=0xae825c10) at /home/cyryl/soft/php-1.0-beta3/duchain/builders/contextbuilder.cpp:112 #53 0x0389a65e in Php::DeclarationBuilder::startVisiting (this=0xb083cce8, node=0xae825c10) at /home/cyryl/soft/php-1.0-beta3/duchain/builders/declarationbuilder.cpp:141 #54 0x0389b9d9 in KDevelop::AbstractContextBuilder<Php::AstNode, Php::IdentifierAst>::supportBuild (this=0xb083cce8, node=0xae825c10, context=0xaecef8c0) at /usr/include/kdevplatform/language/duchain/builders/abstractcontextbuilder.h:201 #55 KDevelop::AbstractTypeBuilder<Php::AstNode, Php::IdentifierAst, Php::ContextBuilder>::supportBuild (this=0xb083cce8, node=0xae825c10, context=0xaecef8c0) at /usr/include/kdevplatform/language/duchain/builders/abstracttypebuilder.h:85 #56 Php::DeclarationBuilder::supportBuild (this=0xb083cce8, node=0xae825c10, context=0xaecef8c0) at /home/cyryl/soft/php-1.0-beta3/duchain/builders/declarationbuilder.cpp:1035 #57 0x038a6071 in KDevelop::AbstractContextBuilder<Php::AstNode, Php::IdentifierAst>::build(KDevelop::IndexedString const&, Php::AstNode*, KDevelop::ReferencedTopDUContext, bool) () from /usr/lib/libkdev4phpduchain.so #58 0x0389ea17 in Php::DeclarationBuilder::build (this=0xb083cce8, url=..., node=0xae825c10, updateContext=..., useSmart=true) at /home/cyryl/soft/php-1.0-beta3/duchain/builders/declarationbuilder.cpp:135 #59 0x043af106 in Php::ParseJob::run (this=0x9613460) at /home/cyryl/soft/php-1.0-beta3/phpparsejob.cpp:260 #60 0x0055f52d in ThreadWeaver::JobRunHelper::runTheJob (this=0xb083d1cc, th=0x8e8f3f0, job=0x9613460) at ../../../threadweaver/Weaver/Job.cpp:106 #61 0x0055f891 in ThreadWeaver::Job::execute (this=0x9613460, th=0x8e8f3f0) at ../../../threadweaver/Weaver/Job.cpp:135 #62 0x00561c47 in ThreadWeaver::JobCollection::execute (this=0x9613460, t=0x8e8f3f0) at ../../../threadweaver/Weaver/JobCollection.cpp:207 #63 0x0055e4ca in ThreadWeaver::ThreadRunHelper::run (this=0xb083d2a4, parent=0x83fc9c8, th=0x8e8f3f0) at ../../../threadweaver/Weaver/Thread.cpp:95 #64 0x0055eb1b in ThreadWeaver::Thread::run (this=0x8e8f3f0) at ../../../threadweaver/Weaver/Thread.cpp:142 #65 0x07b3c36e in QThreadPrivate::start (arg=0x8e8f3f0) at thread/qthread_unix.cpp:248 #66 0x005118de in start_thread (arg=0xb083db70) at pthread_create.c:300 #67 0x0254295e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130 Thread 4 (Thread 0xb003cb70 (LWP 8876)): #0 0x009bd422 in __kernel_vsyscall () #1 0x00515f55 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122 #2 0x07b3d2c7 in QWaitConditionPrivate::wait (this=0x83fc9e0, mutex=0x83fcc38, time=4294967295) at thread/qwaitcondition_unix.cpp:87 #3 QWaitCondition::wait (this=0x83fc9e0, mutex=0x83fcc38, time=4294967295) at thread/qwaitcondition_unix.cpp:159 #4 0x0055d8a0 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x83fc9c8, th=0x8e20cc8) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365 #5 0x0056041c in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x83fccf8, th=0x8e20cc8) at ../../../threadweaver/Weaver/WorkingHardState.cpp:80 #6 0x0055c26b in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x83fc9c8, th=0x8e20cc8) at ../../../threadweaver/Weaver/WeaverImpl.cpp:356 #7 0x00560512 in ThreadWeaver::WorkingHardState::applyForWork (this=0x83fccf8, th=0x8e20cc8) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71 #8 0x0055db23 in ThreadWeaver::WeaverImpl::applyForWork (this=0x83fc9c8, th=0x8e20cc8, previous=0x0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351 #9 0x00560531 in ThreadWeaver::WorkingHardState::applyForWork (this=0x83fccf8, th=0x8e20cc8) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74 #10 0x0055db23 in ThreadWeaver::WeaverImpl::applyForWork (this=0x83fc9c8, th=0x8e20cc8, previous=0x9503878) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351 #11 0x0055e4fe in ThreadWeaver::ThreadRunHelper::run (this=0xb003c2a4, parent=0x83fc9c8, th=0x8e20cc8) at ../../../threadweaver/Weaver/Thread.cpp:87 #12 0x0055eb1b in ThreadWeaver::Thread::run (this=0x8e20cc8) at ../../../threadweaver/Weaver/Thread.cpp:142 #13 0x07b3c36e in QThreadPrivate::start (arg=0x8e20cc8) at thread/qthread_unix.cpp:248 #14 0x005118de in start_thread (arg=0xb003cb70) at pthread_create.c:300 #15 0x0254295e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130 Thread 3 (Thread 0xadeffb70 (LWP 8882)): #0 0x009bd422 in __kernel_vsyscall () #1 0x00515f55 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122 #2 0x07b3d2c7 in QWaitConditionPrivate::wait (this=0x986b860, mutex=0x986bd40, time=4294967295) at thread/qwaitcondition_unix.cpp:87 #3 QWaitCondition::wait (this=0x986b860, mutex=0x986bd40, time=4294967295) at thread/qwaitcondition_unix.cpp:159 #4 0x0055d8a0 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x986b848, th=0x986c0a8) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365 #5 0x0056041c in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x986bdd8, th=0x986c0a8) at ../../../threadweaver/Weaver/WorkingHardState.cpp:80 #6 0x0055c26b in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x986b848, th=0x986c0a8) at ../../../threadweaver/Weaver/WeaverImpl.cpp:356 #7 0x00560512 in ThreadWeaver::WorkingHardState::applyForWork (this=0x986bdd8, th=0x986c0a8) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71 #8 0x0055db23 in ThreadWeaver::WeaverImpl::applyForWork (this=0x986b848, th=0x986c0a8, previous=0x0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351 #9 0x00560531 in ThreadWeaver::WorkingHardState::applyForWork (this=0x986bdd8, th=0x986c0a8) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74 #10 0x0055db23 in ThreadWeaver::WeaverImpl::applyForWork (this=0x986b848, th=0x986c0a8, previous=0x9831788) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351 #11 0x0055e4fe in ThreadWeaver::ThreadRunHelper::run (this=0xadeff2a4, parent=0x986b848, th=0x986c0a8) at ../../../threadweaver/Weaver/Thread.cpp:87 #12 0x0055eb1b in ThreadWeaver::Thread::run (this=0x986c0a8) at ../../../threadweaver/Weaver/Thread.cpp:142 #13 0x07b3c36e in QThreadPrivate::start (arg=0x986c0a8) at thread/qthread_unix.cpp:248 #14 0x005118de in start_thread (arg=0xadeffb70) at pthread_create.c:300 #15 0x0254295e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130 Thread 2 (Thread 0xad6feb70 (LWP 8883)): #0 0x009bd422 in __kernel_vsyscall () #1 0x00515f55 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122 #2 0x07b3d2c7 in QWaitConditionPrivate::wait (this=0x986b860, mutex=0x986bd40, time=4294967295) at thread/qwaitcondition_unix.cpp:87 #3 QWaitCondition::wait (this=0x986b860, mutex=0x986bd40, time=4294967295) at thread/qwaitcondition_unix.cpp:159 #4 0x0055d8a0 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x986b848, th=0x9897468) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365 #5 0x0056041c in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x986bdd8, th=0x9897468) at ../../../threadweaver/Weaver/WorkingHardState.cpp:80 #6 0x0055c26b in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x986b848, th=0x9897468) at ../../../threadweaver/Weaver/WeaverImpl.cpp:356 #7 0x00560512 in ThreadWeaver::WorkingHardState::applyForWork (this=0x986bdd8, th=0x9897468) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71 #8 0x0055db23 in ThreadWeaver::WeaverImpl::applyForWork (this=0x986b848, th=0x9897468, previous=0x9894508) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351 #9 0x0055e4fe in ThreadWeaver::ThreadRunHelper::run (this=0xad6fe2a4, parent=0x986b848, th=0x9897468) at ../../../threadweaver/Weaver/Thread.cpp:87 #10 0x0055eb1b in ThreadWeaver::Thread::run (this=0x9897468) at ../../../threadweaver/Weaver/Thread.cpp:142 #11 0x07b3c36e in QThreadPrivate::start (arg=0x9897468) at thread/qthread_unix.cpp:248 #12 0x005118de in start_thread (arg=0xad6feb70) at pthread_create.c:300 #13 0x0254295e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130 Thread 1 (Thread 0xb77789d0 (LWP 8860)): #0 0x009bd422 in __kernel_vsyscall () #1 0x02534b66 in *__GI___poll (fds=0x25c4ff4, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87 #2 0x05e60d80 in ?? () from /usr/lib/libxcb.so.1 #3 0x05e629d2 in xcb_wait_for_reply () from /usr/lib/libxcb.so.1 #4 0x039a1506 in _XReply () from /usr/lib/libX11.so.6 #5 0x03996b71 in XTranslateCoordinates () from /usr/lib/libX11.so.6 #6 0x01546ee6 in QWidget::mapFromGlobal (this=0x82b7dc8, pos=...) at kernel/qwidget_x11.cpp:1325 #7 0x014a0d3e in QApplicationPrivate::sendSyntheticEnterLeave (this=0x818ba70, widget=0x849c568) at kernel/qapplication.cpp:3032 #8 0x015008bf in QWidget::setVisible (this=0x849c568, visible=true) at kernel/qwidget.cpp:7421 #9 0x001fcc6a in QWidget::show (this=0x849c568, item=0x91b9360, value=0) at /usr/include/qt4/QtGui/qwidget.h:485 #10 KDevelop::StatusbarProgressWidget::slotProgressItemProgress (this=0x849c568, item=0x91b9360, value=0) at /home/cyryl/soft/kdevplatform-0.9.98/shell/progresswidget.cpp:200 #11 0x001fdf18 in KDevelop::StatusbarProgressWidget::qt_metacall (this=0x849c568, _c=QMetaObject::InvokeMetaMethod, _id=30, _a=0xbfda6184) at /home/cyryl/soft/kdevplatform-0.9.98/build/shell/progresswidget.moc:87 #12 0x07c43e5a in QMetaObject::metacall (object=0x849c568, cl=QMetaObject::ReadProperty, idx=30, argv=0xbfda6184) at kernel/qmetaobject.cpp:237 #13 0x07c525f5 in QMetaObject::activate (sender=0x91b9360, m=0x22fbb4, local_signal_index=1, argv=0xbfda6184) at kernel/qobject.cpp:3293 #14 0x001fb009 in KDevelop::ProgressItem::progressItemProgress (this=0x91b9360, _t1=0x91b9360, _t2=0) at /home/cyryl/soft/kdevplatform-0.9.98/build/shell/progressmanager.moc:117 #15 0x001fb077 in KDevelop::ProgressItem::setBusy (this=0x91b9360, busy=false) at /home/cyryl/soft/kdevplatform-0.9.98/shell/progressmanager.cpp:125 #16 0x001be840 in KDevelop::StatusBar::showProgress (this=0x84877b0, status=0x83fcea8, minimum=0, maximum=1000, value=0) at /home/cyryl/soft/kdevplatform-0.9.98/shell/statusbar.cpp:239 #17 0x001c0692 in KDevelop::StatusBar::qt_metacall (this=0x84877b0, _c=QMetaObject::InvokeMetaMethod, _id=40, _a=0xbfda63cc) at /home/cyryl/soft/kdevplatform-0.9.98/build/shell/statusbar.moc:94 #18 0x07c43e5a in QMetaObject::metacall (object=0x84877b0, cl=QMetaObject::ReadProperty, idx=40, argv=0xbfda63cc) at kernel/qmetaobject.cpp:237 #19 0x07c525f5 in QMetaObject::activate (sender=0x83fcea0, m=0x6438a64, local_signal_index=5, argv=0xbfda63cc) at kernel/qobject.cpp:3293 #20 0x062a4e75 in KDevelop::BackgroundParser::showProgress (this=0x83fcea0, _t1=0x83fcea8, _t2=0, _t3=1000, _t4=0) at /home/cyryl/soft/kdevplatform-0.9.98/build/language/backgroundparser.moc:236 #21 0x062a52e0 in KDevelop::BackgroundParser::updateProgressBar (this=0x83fcea0) at /home/cyryl/soft/kdevplatform-0.9.98/language/backgroundparser/backgroundparser.cpp:594 #22 0x062ad74d in KDevelop::BackgroundParserPrivate::parseDocumentsInternal() () from /usr/lib/libkdevplatformlanguage.so.1 #23 0x062a7199 in KDevelop::BackgroundParser::parseDocuments (this=0x83fcea0) at /home/cyryl/soft/kdevplatform-0.9.98/language/backgroundparser/backgroundparser.cpp:514 #24 0x062a98d9 in KDevelop::BackgroundParser::qt_metacall (this=0x83fcea0, _c=QMetaObject::InvokeMetaMethod, _id=19, _a=0xbfda671c) at /home/cyryl/soft/kdevplatform-0.9.98/build/language/backgroundparser.moc:175 #25 0x07c43e5a in QMetaObject::metacall (object=0x83fcea0, cl=QMetaObject::ReadProperty, idx=23, argv=0xbfda671c) at kernel/qmetaobject.cpp:237 #26 0x07c525f5 in QMetaObject::activate (sender=0x83fbfdc, m=0x7d535a4, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3293 #27 0x07ca3c97 in QTimer::timeout (this=0x83fbfdc) at .moc/release-shared/moc_qtimer.cpp:134 #28 0x07c5a79e in QTimer::timerEvent (this=0x83fbfdc, e=0xbfda6c50) at kernel/qtimer.cpp:271 #29 0x07c4f494 in QObject::event (this=0x83fbfdc, e=0xffffffff) at kernel/qobject.cpp:1212 #30 0x0149a3cc in QApplicationPrivate::notify_helper (this=0x818ba70, receiver=0x83fbfdc, e=0xbfda6c50) at kernel/qapplication.cpp:4300 #31 0x014a101e in QApplication::notify (this=0xbfda7004, receiver=0x83fbfdc, e=0xbfda6c50) at kernel/qapplication.cpp:3704 #32 0x059bc1fa in KApplication::notify (this=0xbfda7004, receiver=0x83fbfdc, event=0xbfda6c50) at ../../kdeui/kernel/kapplication.cpp:302 #33 0x07c3ebeb in QCoreApplication::notifyInternal (this=0xbfda7004, receiver=0x83fbfdc, event=0xbfda6c50) at kernel/qcoreapplication.cpp:704 #34 0x07c6deb6 in QCoreApplication::sendEvent (this=0x818eb34) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215 #35 QTimerInfoList::activateTimers (this=0x818eb34) at kernel/qeventdispatcher_unix.cpp:603 #36 0x07c6ab47 in timerSourceDispatch (source=0x818e6b0) at kernel/qeventdispatcher_glib.cpp:184 #37 idleTimerSourceDispatch (source=0x818e6b0) at kernel/qeventdispatcher_glib.cpp:231 #38 0x02756e05 in g_main_context_dispatch () from /lib/libglib-2.0.so.0 #39 0x0275ab08 in ?? () from /lib/libglib-2.0.so.0 #40 0x0275acc8 in g_main_context_iteration () from /lib/libglib-2.0.so.0 #41 0x07c6a805 in QEventDispatcherGlib::processEvents (this=0x815d880, flags=...) at kernel/qeventdispatcher_glib.cpp:412 #42 0x01559b35 in QGuiEventDispatcherGlib::processEvents (this=0x815d880, flags=...) at kernel/qguieventdispatcher_glib.cpp:204 #43 0x07c3d209 in QEventLoop::processEvents (this=0xbfda6f14, flags=) at kernel/qeventloop.cpp:149 #44 0x07c3d65a in QEventLoop::exec (this=0xbfda6f14, flags=...) at kernel/qeventloop.cpp:201 #45 0x07c4184f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981 #46 0x0149a467 in QApplication::exec () at kernel/qapplication.cpp:3579 #47 0x0804dcfb in main (argc=1, argv=0xbfda7534) at /home/cyryl/soft/kdevelop-3.9.98/app/main_internal.cpp:139 Reported using DrKonqi
I managed to narrow problem to one line of code. KDevelop crashes while parsiong this line: $object->$relname = new Collection($collection);
Works for me, please update to current trunk and see whether it's still crashing. If so, please give me more information, i.e.: does it crash with a document only containing the above posted line? what are the types of the vars, does it matter? what is Collection, how is it defined - does it matter?
Created attachment 41132 [details] testace - create new project with those files Simple testcase. Create new project with those two files. Can't upgrade to trunk since weird build error, which I didn't managed to pass over yet: /home/cyryl/soft/php/duchain/completioncodemodel.cpp:74: error: expected initializer before ‘<’ token /home/cyryl/soft/php/duchain/completioncodemodel.cpp:74: error: ‘temporaryHashCompletionCodeModelRepositoryItemitemsType’ was not declared in this scope /home/cyryl/soft/php/duchain/completioncodemodel.cpp:74: error: template argument 1 is invalid /home/cyryl/soft/php/duchain/completioncodemodel.cpp:74: error: invalid type in declaration before ‘=’ token /home/cyryl/soft/php/duchain/completioncodemodel.cpp:74: error: expected type-specifier before ‘temporaryHashCompletionCodeModelRepositoryItemitemsType’ /home/cyryl/soft/php/duchain/completioncodemodel.cpp:74: error: ISO C++ forbids declaration of ‘temporaryHashCompletionCodeModelRepositoryItemitemsType’ with no type /home/cyryl/soft/php/duchain/completioncodemodel.cpp:74: error: ‘temporaryHashCompletionCodeModelRepositoryItemitemsType’ declared as an ‘inline’ field /home/cyryl/soft/php/duchain/completioncodemodel.cpp:74: error: expected ‘;’ before ‘*’ token
You probably need kdevplatform + kdevelop trunk also. Anyways, it still works for me with the given test files, so it probably got fixed. Setting to resolved.