Application that crashed: kdevelop Version of the application: 3.9.97 (using KDevPlatform 0.9.97) KDE Version: 4.3.3 (KDE 4.3.3) Qt Version: 4.5.3 Operating System: Linux 2.6.30-gentoo-r5 x86_64 What I was doing when the application crashed: Can't reproduce, please look at the backtrace. -- Backtrace: Application: KDevelop (kdevelop), signal: Segmentation fault [Current thread is 0 (LWP 15041)] Thread 10 (Thread 0x7f45b31be910 (LWP 15043)): #0 0x00007f45c128fd31 in nanosleep () from /lib/libc.so.6 #1 0x00007f45c12b7b54 in usleep () from /lib/libc.so.6 #2 0x00007f45bf891127 in KDevelop::DUChainLock::lockForWrite (this=0x10bd6c8, timeout=0) at /home/niko/kdesvn/kdevplatform/language/duchain/duchainlock.cpp:198 #3 0x00007f45bf891193 in KDevelop::DUChainWriteLocker::lock (this=0x7f45b31bd8c0) at /home/niko/kdesvn/kdevplatform/language/duchain/duchainlock.cpp:296 #4 0x00007f45bf89125e in DUChainWriteLocker (this=0x7f45b31bd8c0, duChainLock=0x10bd6c8, timeout=0) at /home/niko/kdesvn/kdevplatform/language/duchain/duchainlock.cpp:281 #5 0x00007f45bf844098 in KDevelop::DUChainPrivate::doMoreCleanup (this=0x10bd6b0, retries=0, needLockRepository=false) at /home/niko/kdesvn/kdevplatform/language/duchain/duchain.cpp:705 #6 0x00007f45bf844d5a in KDevelop::DUChainPrivate::doMoreCleanup (this=0x10bd6b0, retries=1, needLockRepository=true) at /home/niko/kdesvn/kdevplatform/language/duchain/duchain.cpp:881 #7 0x00007f45bf845050 in KDevelop::DUChainPrivate::CleanupThread::run (this=0x1185b80) at /home/niko/kdesvn/kdevplatform/language/duchain/duchain.cpp:294 #8 0x00007f45c28d578e in ?? () from /usr/lib64/qt4/libQtCore.so.4 #9 0x00007f45c2667247 in start_thread () from /lib/libpthread.so.0 #10 0x00007f45c12bd99d in clone () from /lib/libc.so.6 #11 0x0000000000000000 in ?? () Thread 9 (Thread 0x7f45aed7e910 (LWP 15061)): #0 0x00007f45c266bd19 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #1 0x00007f45c28d5e91 in QWaitCondition::wait () from /usr/lib64/qt4/libQtCore.so.4 #2 0x00007f45c3f677e1 in ?? () from /usr/lib/libthreadweaver.so.4 #3 0x00007f45c3f69985 in ?? () from /usr/lib/libthreadweaver.so.4 #4 0x00007f45c3f681b3 in ?? () from /usr/lib/libthreadweaver.so.4 #5 0x00007f45c3f6855a in ThreadWeaver::Thread::run () from /usr/lib/libthreadweaver.so.4 #6 0x00007f45c28d578e in ?? () from /usr/lib64/qt4/libQtCore.so.4 #7 0x00007f45c2667247 in start_thread () from /lib/libpthread.so.0 #8 0x00007f45c12bd99d in clone () from /lib/libc.so.6 #9 0x0000000000000000 in ?? () Thread 8 (Thread 0x7f45aa887910 (LWP 15067)): [KCrash Handler] #4 0x00007f45bf862576 in KDevelop::TopDUContext::indexed (this=0x7f45a7fd48f0) at /home/niko/kdesvn/kdevplatform/language/duchain/topducontext.cpp:773 #5 0x00007f45bf86c7c1 in KDevelop::TopDUContextLocalPrivate::addImportedContextRecursion (this=0x7f459417cfd0, traceNext=0x7f4593393730, imported=0x7f45a7fd48f0, depth=3, temporary=false) at /home/niko/kdesvn/kdevplatform/language/duchain/topducontext.cpp:440 #6 0x00007f45bf86cb30 in KDevelop::TopDUContextLocalPrivate::addImportedContextRecursively (this=0x7f459417cfd0, context=0x7f4593393730, temporary=false, local=true) at /home/niko/kdesvn/kdevplatform/language/duchain/topducontext.cpp:308 #7 0x00007f45bf86f0ce in KDevelop::TopDUContextLocalPrivate::rebuildDynamicImportStructure (this=0x7f459417cfd0) at /home/niko/kdesvn/kdevplatform/language/duchain/topducontext.cpp:221 #8 0x00007f45bf863dfb in KDevelop::TopDUContext::rebuildDynamicImportStructure (this=0x7f459289b3f0) at /home/niko/kdesvn/kdevplatform/language/duchain/topducontext.cpp:763 #9 0x00007f45bf83fd4d in KDevelop::DUChainPrivate::loadChain (this=0x10bd6b0, index=4923, loaded=@0x7f45aa884610) at /home/niko/kdesvn/kdevplatform/language/duchain/duchain.cpp:593 #10 0x00007f45bf82433b in KDevelop::DUChain::loadChain (this=0xfca8d0, index=4923) at /home/niko/kdesvn/kdevplatform/language/duchain/duchain.cpp:1279 #11 0x00007f45bf83fe50 in KDevelop::DUChain::chainForIndex (this=0xfca8d0, index=4923) at /home/niko/kdesvn/kdevplatform/language/duchain/duchain.h:180 #12 0x00007f45bf8655ff in KDevelop::IndexedTopDUContext::data (this=0x7f45aa8846d0) at /home/niko/kdesvn/kdevplatform/language/duchain/topducontext.cpp:118 #13 0x00007f45bf8a7597 in KDevelop::ParsingEnvironmentFile::topContext (this=0x44ab520) at /home/niko/kdesvn/kdevplatform/language/duchain/parsingenvironment.cpp:140 #14 0x00007f45a81f04d6 in Php::CodeCompletionContext::completionItems (this=0x7f45985f8800, abort=@0x1fc5930, fullCompletion=false) at /home/niko/kdesvn/kdevelop-php/completion/context.cpp:1395 #15 0x00007f45bf93f725 in KDevelop::CodeCompletionWorker::computeCompletions (this=0x1fc5910, context=@0x7f45aa8866a0, position=@0x6879560, view=0x7f45a48ab260, contextRange=@0x7f45aa886550, contextText=@0x7f45aa886540) at /home/niko/kdesvn/kdevplatform/language/codecompletion/codecompletionworker.cpp:159 #16 0x00007f45bf93fe17 in KDevelop::CodeCompletionWorker::computeCompletions (this=0x1fc5910, context=@0x7f45aa886720, position=@0x6879560, view=0x7f45a48ab260) at /home/niko/kdesvn/kdevplatform/language/codecompletion/codecompletionworker.cpp:119 #17 0x00007f45bf93ff7c in KDevelop::CodeCompletionWorker::qt_metacall (this=0x1fc5910, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xb12f8a0) at /home/niko/kdesvn/build/kdevplatform/language/codecompletionworker.moc:78 #18 0x00007f45a81e70eb in Php::CodeCompletionWorker::qt_metacall (this=0x1fc5910, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0xb12f8a0) at /home/niko/kdesvn/build/kdevelop-php/completion/worker.moc:60 #19 0x00007f45c29a181b in QObject::event () from /usr/lib64/qt4/libQtCore.so.4 #20 0x00007f45c1b59f20 in QApplicationPrivate::notify_helper () from /usr/lib64/qt4/libQtGui.so.4 #21 0x00007f45c1b6055a in QApplication::notify () from /usr/lib64/qt4/libQtGui.so.4 #22 0x00007f45c30c5656 in KApplication::notify () from /usr/lib/libkdeui.so.5 #23 0x00007f45c2994066 in QCoreApplication::notifyInternal () from /usr/lib64/qt4/libQtCore.so.4 #24 0x00007f45c299513d in QCoreApplicationPrivate::sendPostedEvents () from /usr/lib64/qt4/libQtCore.so.4 #25 0x00007f45c29b57e5 in ?? () from /usr/lib64/qt4/libQtCore.so.4 #26 0x00007f45bb6ebf91 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #27 0x00007f45bb6eee85 in ?? () from /usr/lib/libglib-2.0.so.0 #28 0x00007f45bb6ef2b8 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #29 0x00007f45c29b5a5a in QEventDispatcherGlib::processEvents () from /usr/lib64/qt4/libQtCore.so.4 #30 0x00007f45c299368b in QEventLoop::processEvents () from /usr/lib64/qt4/libQtCore.so.4 #31 0x00007f45c29937ef in QEventLoop::exec () from /usr/lib64/qt4/libQtCore.so.4 #32 0x00007f45c28d3100 in QThread::exec () from /usr/lib64/qt4/libQtCore.so.4 #33 0x00007f45bf9455e1 in KDevelop::CompletionWorkerThread::run (this=0x1fc5940) at /home/niko/kdesvn/kdevplatform/language/codecompletion/codecompletionmodel.cpp:82 #34 0x00007f45c28d578e in ?? () from /usr/lib64/qt4/libQtCore.so.4 #35 0x00007f45c2667247 in start_thread () from /lib/libpthread.so.0 #36 0x00007f45c12bd99d in clone () from /lib/libc.so.6 #37 0x0000000000000000 in ?? () Thread 7 (Thread 0x7f45aa086910 (LWP 15082)): #0 0x00007f45c266c8aa in pthread_getspecific () from /lib/libpthread.so.0 #1 0x00007f45c28d5126 in QThreadData::current () from /usr/lib64/qt4/libQtCore.so.4 #2 0x00007f45c29b5801 in ?? () from /usr/lib64/qt4/libQtCore.so.4 #3 0x00007f45bb6ee3ea in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0 #4 0x00007f45bb6eeaed in ?? () from /usr/lib/libglib-2.0.so.0 #5 0x00007f45bb6ef2b8 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #6 0x00007f45c29b5a71 in QEventDispatcherGlib::processEvents () from /usr/lib64/qt4/libQtCore.so.4 #7 0x00007f45c299368b in QEventLoop::processEvents () from /usr/lib64/qt4/libQtCore.so.4 #8 0x00007f45c29937ef in QEventLoop::exec () from /usr/lib64/qt4/libQtCore.so.4 #9 0x00007f45c28d3100 in QThread::exec () from /usr/lib64/qt4/libQtCore.so.4 #10 0x00007f45bf9455e1 in KDevelop::CompletionWorkerThread::run (this=0x2ce84d0) at /home/niko/kdesvn/kdevplatform/language/codecompletion/codecompletionmodel.cpp:82 #11 0x00007f45c28d578e in ?? () from /usr/lib64/qt4/libQtCore.so.4 #12 0x00007f45c2667247 in start_thread () from /lib/libpthread.so.0 #13 0x00007f45c12bd99d in clone () from /lib/libc.so.6 #14 0x0000000000000000 in ?? () Thread 6 (Thread 0x7f45a1513910 (LWP 15083)): #0 0x00007f45c12b5146 in poll () from /lib/libc.so.6 #1 0x00007f45bb6eede7 in ?? () from /usr/lib/libglib-2.0.so.0 #2 0x00007f45bb6ef2b8 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #3 0x00007f45c29b5a71 in QEventDispatcherGlib::processEvents () from /usr/lib64/qt4/libQtCore.so.4 #4 0x00007f45c299368b in QEventLoop::processEvents () from /usr/lib64/qt4/libQtCore.so.4 #5 0x00007f45c29937ef in QEventLoop::exec () from /usr/lib64/qt4/libQtCore.so.4 #6 0x00007f45c28d3100 in QThread::exec () from /usr/lib64/qt4/libQtCore.so.4 #7 0x00007f45bf9455e1 in KDevelop::CompletionWorkerThread::run (this=0x2ce8140) at /home/niko/kdesvn/kdevplatform/language/codecompletion/codecompletionmodel.cpp:82 #8 0x00007f45c28d578e in ?? () from /usr/lib64/qt4/libQtCore.so.4 #9 0x00007f45c2667247 in start_thread () from /lib/libpthread.so.0 #10 0x00007f45c12bd99d in clone () from /lib/libc.so.6 #11 0x0000000000000000 in ?? () Thread 5 (Thread 0x7f45a0d12910 (LWP 15084)): #0 0x00007f45c266bf9d in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #1 0x00007f45c28d4ea7 in ?? () from /usr/lib64/qt4/libQtCore.so.4 #2 0x00007f45c28d505f in QThread::msleep () from /usr/lib64/qt4/libQtCore.so.4 #3 0x00007f45a1e39c4e in UIBlockTester::UIBlockTesterThread::run (this=0x2b2c440) at /home/niko/kdesvn/kdevelop/languages/cpp/cpplanguagesupport.cpp:672 #4 0x00007f45c28d578e in ?? () from /usr/lib64/qt4/libQtCore.so.4 #5 0x00007f45c2667247 in start_thread () from /lib/libpthread.so.0 #6 0x00007f45c12bd99d in clone () from /lib/libc.so.6 #7 0x0000000000000000 in ?? () Thread 4 (Thread 0x7f45a0511910 (LWP 15085)): #0 0x00007f45c266bd19 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #1 0x00007f45c28d5e91 in QWaitCondition::wait () from /usr/lib64/qt4/libQtCore.so.4 #2 0x00007f45c3f677e1 in ?? () from /usr/lib/libthreadweaver.so.4 #3 0x00007f45c3f69985 in ?? () from /usr/lib/libthreadweaver.so.4 #4 0x00007f45c3f6999e in ?? () from /usr/lib/libthreadweaver.so.4 #5 0x00007f45c3f6999e in ?? () from /usr/lib/libthreadweaver.so.4 #6 0x00007f45c3f681b3 in ?? () from /usr/lib/libthreadweaver.so.4 #7 0x00007f45c3f6855a in ThreadWeaver::Thread::run () from /usr/lib/libthreadweaver.so.4 #8 0x00007f45c28d578e in ?? () from /usr/lib64/qt4/libQtCore.so.4 #9 0x00007f45c2667247 in start_thread () from /lib/libpthread.so.0 #10 0x00007f45c12bd99d in clone () from /lib/libc.so.6 #11 0x0000000000000000 in ?? () Thread 3 (Thread 0x7f459fd10910 (LWP 15086)): #0 0x00007f45c266bd19 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #1 0x00007f45c28d5e91 in QWaitCondition::wait () from /usr/lib64/qt4/libQtCore.so.4 #2 0x00007f45c28d22b2 in QReadWriteLock::lockForRead () from /usr/lib64/qt4/libQtCore.so.4 #3 0x00007f45a8923c19 in QReadLocker::relock (this=0x7f459fd0d680) at /usr/include/qt4/QtCore/qreadwritelock.h:111 #4 0x00007f45a8923c89 in QReadLocker (this=0x7f459fd0d680, areadWriteLock=0x1c9de28) at /usr/include/qt4/QtCore/qreadwritelock.h:133 #5 0x00007f45a891ea08 in Php::ParseJob::run (this=0x7f459fd0dfb0) at /home/niko/kdesvn/kdevelop-php/phpparsejob.cpp:251 #6 0x00007f45a891e989 in Php::ParseJob::run (this=0x7f459fd0eac0) at /home/niko/kdesvn/kdevelop-php/phpparsejob.cpp:247 #7 0x00007f45a891e989 in Php::ParseJob::run (this=0x7f459fd0f5d0) at /home/niko/kdesvn/kdevelop-php/phpparsejob.cpp:247 #8 0x00007f45a891e989 in Php::ParseJob::run (this=0x76f94d0) at /home/niko/kdesvn/kdevelop-php/phpparsejob.cpp:247 #9 0x00007f45c3f68ef1 in ?? () from /usr/lib/libthreadweaver.so.4 #10 0x00007f45c3f691a8 in ThreadWeaver::Job::execute () from /usr/lib/libthreadweaver.so.4 #11 0x00007f45c3f6816e in ?? () from /usr/lib/libthreadweaver.so.4 #12 0x00007f45c3f6855a in ThreadWeaver::Thread::run () from /usr/lib/libthreadweaver.so.4 #13 0x00007f45c28d578e in ?? () from /usr/lib64/qt4/libQtCore.so.4 #14 0x00007f45c2667247 in start_thread () from /lib/libpthread.so.0 #15 0x00007f45c12bd99d in clone () from /lib/libc.so.6 #16 0x0000000000000000 in ?? () Thread 2 (Thread 0x7f458fcb0910 (LWP 15265)): #0 0x00007f45c266bd19 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #1 0x00007f45c28d5e91 in QWaitCondition::wait () from /usr/lib64/qt4/libQtCore.so.4 #2 0x00007f45c3f677e1 in ?? () from /usr/lib/libthreadweaver.so.4 #3 0x00007f45c3f69985 in ?? () from /usr/lib/libthreadweaver.so.4 #4 0x00007f45c3f681b3 in ?? () from /usr/lib/libthreadweaver.so.4 #5 0x00007f45c3f6855a in ThreadWeaver::Thread::run () from /usr/lib/libthreadweaver.so.4 #6 0x00007f45c28d578e in ?? () from /usr/lib64/qt4/libQtCore.so.4 #7 0x00007f45c2667247 in start_thread () from /lib/libpthread.so.0 #8 0x00007f45c12bd99d in clone () from /lib/libc.so.6 #9 0x0000000000000000 in ?? () Thread 1 (Thread 0x7f45c59f6760 (LWP 15041)): #0 0x00007f45c266bd19 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #1 0x00007f45c28d5e91 in QWaitCondition::wait () from /usr/lib64/qt4/libQtCore.so.4 #2 0x00007f45c28d582d in QThread::wait () from /usr/lib64/qt4/libQtCore.so.4 #3 0x00007f45bf83e045 in KDevelop::DUChainPrivate::CleanupThread::stopThread (this=0x1185b80) at /home/niko/kdesvn/kdevplatform/language/duchain/duchain.cpp:277 #4 0x00007f45bf83e06b in ~DUChainPrivate (this=0x10bd6b0) at /home/niko/kdesvn/kdevplatform/language/duchain/duchain.cpp:359 #5 0x00007f45bf822b66 in destroy () at /home/niko/kdesvn/kdevplatform/language/duchain/duchain.cpp:1103 #6 0x00007f45bf7f96bf in ~KCleanUpGlobalStatic (this=0x7f45bfc314f8) at /usr/include/kglobal.h:62 #7 0x00007f45bf82287e in __tcf_2 () at /home/niko/kdesvn/kdevplatform/language/duchain/duchain.cpp:1103 #8 0x00007f45c1228f81 in ?? () from /lib/libc.so.6 #9 0x00007f45c1228fa5 in exit () from /lib/libc.so.6 #10 0x00007f45c1ba204a in ?? () from /usr/lib64/qt4/libQtGui.so.4 #11 0x00007f45c30c4f58 in KApplication::xioErrhandler () from /usr/lib/libkdeui.so.5 #12 0x00007f45bdb75a17 in _XIOError () from /usr/lib64/libX11.so.6 #13 0x00007f45bdb7beca in ?? () from /usr/lib64/libX11.so.6 #14 0x00007f45bdb7c673 in _XEventsQueued () from /usr/lib64/libX11.so.6 #15 0x00007f45bdb67d28 in XEventsQueued () from /usr/lib64/libX11.so.6 #16 0x00007f45c1bd0e36 in ?? () from /usr/lib64/qt4/libQtGui.so.4 #17 0x00007f45bb6ee83f in g_main_context_check () from /usr/lib/libglib-2.0.so.0 #18 0x00007f45bb6eed87 in ?? () from /usr/lib/libglib-2.0.so.0 #19 0x00007f45bb6ef2b8 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #20 0x00007f45c29b5a5a in QEventDispatcherGlib::processEvents () from /usr/lib64/qt4/libQtCore.so.4 #21 0x00007f45c1bd0e8c in ?? () from /usr/lib64/qt4/libQtGui.so.4 #22 0x00007f45c299368b in QEventLoop::processEvents () from /usr/lib64/qt4/libQtCore.so.4 #23 0x00007f45c29937ef in QEventLoop::exec () from /usr/lib64/qt4/libQtCore.so.4 #24 0x00007f45c29953c7 in QCoreApplication::exec () from /usr/lib64/qt4/libQtCore.so.4 #25 0x0000000000405c2c in main (argc=1, argv=0x7fff9ec3ad48) at /home/niko/kdesvn/kdevelop/app/main.cpp:209 Reported using DrKonqi
Looks to me like your kdevduchain dir was invalid or something and triggered this bug. It's somewhere deep inside the DUChain... Should we close it or reassign to DUChain? What we do in PHP is essentially: CompletionContext::completionItems() -> env = DUChain::self()->allEnvironmentFiles(url) -> env->topContext(); imo this should not crash (and never did for me, nor for anyone else up until you at least according to bug reports)...
No idea, let's close it :D