Application that crashed: kdevelop Version of the application: 3.9.94 (using KDevPlatform 0.9.94) KDE Version: 4.2.96 (KDE 4.2.96 (KDE 4.3 RC2)) Qt Version: 4.5.0 Operating System: Linux 2.6.28-13-generic x86_64 Distribution: Ubuntu 9.04 What I was doing when the application crashed: I was building a CMake based project and when I tried to run the project with Shift+F9 KDevelop crashed. It seems to happen randomly. I had this crash twice in about 20 starts of my project. It uses latest SVN from 21 July 09. -- Backtrace: Application: KDevelop (kdevelop), signal: Segmentation fault [Current thread is 0 (LWP 25061)] Thread 9 (Thread 0x7ff3edec0950 (LWP 25062)): #0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:217 #1 0x00007ff3fd537917 in QWaitCondition::wait (this=0x2483208, mutex=0x2483210, time=200000) at thread/qwaitcondition_unix.cpp:85 #2 0x00007ff3f9ff5fce in KDevelop::DUChainPrivate::CleanupThread::run (this=0x24831f0) at /home/fusion/src/kdevplatform/language/duchain/duchain.cpp:280 #3 0x00007ff3fd536952 in QThreadPrivate::start (arg=0x24831f0) at thread/qthread_unix.cpp:189 #4 0x00007ff3f704d3ba in start_thread (arg=<value optimized out>) at pthread_create.c:297 #5 0x00007ff3fbbfcfcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #6 0x0000000000000000 in ?? () Thread 8 (Thread 0x7ff3dafa5950 (LWP 25221)): #0 0x00007ff3fbbf3496 in *__GI___poll (fds=0x7ff3e8b42110, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87 #1 0x00007ff3f639b77f in ?? () from /usr/lib/libglib-2.0.so.0 #2 0x00007ff3f639ba7c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #3 0x00007ff3fd648e8e in QEventDispatcherGlib::processEvents (this=0x394cc40, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:325 #4 0x00007ff3fd61e002 in QEventLoop::processEvents (this=<value optimized out>, flags={i = -621129696}) at kernel/qeventloop.cpp:149 #5 0x00007ff3fd61e3cd in QEventLoop::exec (this=0x7ff3dafa5060, flags={i = -621129616}) at kernel/qeventloop.cpp:200 #6 0x00007ff3fd5339b8 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:481 #7 0x00007ff3fd536952 in QThreadPrivate::start (arg=0x3a0f850) at thread/qthread_unix.cpp:189 #8 0x00007ff3f704d3ba in start_thread (arg=<value optimized out>) at pthread_create.c:297 #9 0x00007ff3fbbfcfcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #10 0x0000000000000000 in ?? () Thread 7 (Thread 0x7ff3da7a4950 (LWP 25222)): #0 0x00007ff3f7050200 in __pthread_mutex_unlock_usercnt (mutex=0x3a06878, decr=1) at pthread_mutex_unlock.c:64 #1 0x00007ff3f639b760 in ?? () from /usr/lib/libglib-2.0.so.0 #2 0x00007ff3f639ba7c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #3 0x00007ff3fd648e8e in QEventDispatcherGlib::processEvents (this=0x3949180, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:325 #4 0x00007ff3fd61e002 in QEventLoop::processEvents (this=<value optimized out>, flags={i = -629522400}) at kernel/qeventloop.cpp:149 #5 0x00007ff3fd61e3cd in QEventLoop::exec (this=0x7ff3da7a4060, flags={i = -629522320}) at kernel/qeventloop.cpp:200 #6 0x00007ff3fd5339b8 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:481 #7 0x00007ff3fd536952 in QThreadPrivate::start (arg=0x399eff0) at thread/qthread_unix.cpp:189 #8 0x00007ff3f704d3ba in start_thread (arg=<value optimized out>) at pthread_create.c:297 #9 0x00007ff3fbbfcfcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #10 0x0000000000000000 in ?? () Thread 6 (Thread 0x7ff3d9fa3950 (LWP 25227)): #0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:217 #1 0x00007ff3fd536395 in thread_sleep (ti=0x7ff3d9fa3010) at thread/qthread_unix.cpp:298 #2 0x00007ff3fd5364fe in QThread::msleep (msecs=30) at thread/qthread_unix.cpp:324 #3 0x00007ff3db99ba21 in UIBlockTester::UIBlockTesterThread::run (this=0x42c8550) at /home/fusion/src/kdevelop/languages/cpp/cpplanguagesupport.cpp:965 #4 0x00007ff3fd536952 in QThreadPrivate::start (arg=0x42c8550) at thread/qthread_unix.cpp:189 #5 0x00007ff3f704d3ba in start_thread (arg=<value optimized out>) at pthread_create.c:297 #6 0x00007ff3fbbfcfcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #7 0x0000000000000000 in ?? () Thread 5 (Thread 0x7ff3d97a2950 (LWP 25228)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261 #1 0x00007ff3fd537939 in QWaitCondition::wait (this=0x23dfd88, mutex=0x23e0140, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87 #2 0x00007ff3fed605e4 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x23dfd60, th=0x39f34a0) at /build/buildd/kde4libs-4.2.96/threadweaver/Weaver/WeaverImpl.cpp:365 #3 0x00007ff3fed62d93 in ThreadWeaver::WorkingHardState::applyForWork (this=0x23e0220, th=0x39f34a0) at /build/buildd/kde4libs-4.2.96/threadweaver/Weaver/WorkingHardState.cpp:71 #4 0x00007ff3fed62dac in ThreadWeaver::WorkingHardState::applyForWork (this=0x23e0220, th=0x39f34a0) at /build/buildd/kde4libs-4.2.96/threadweaver/Weaver/WorkingHardState.cpp:74 #5 0x00007ff3fed6130f in ThreadWeaver::ThreadRunHelper::run (this=0x7ff3d97a2060, parent=0x23dfd60, th=0x39f34a0) at /build/buildd/kde4libs-4.2.96/threadweaver/Weaver/Thread.cpp:87 #6 0x00007ff3fed61769 in ThreadWeaver::Thread::run (this=0x39f34a0) at /build/buildd/kde4libs-4.2.96/threadweaver/Weaver/Thread.cpp:142 #7 0x00007ff3fd536952 in QThreadPrivate::start (arg=0x39f34a0) at thread/qthread_unix.cpp:189 #8 0x00007ff3f704d3ba in start_thread (arg=<value optimized out>) at pthread_create.c:297 #9 0x00007ff3fbbfcfcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #10 0x0000000000000000 in ?? () Thread 4 (Thread 0x7ff3d8fa1950 (LWP 25229)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261 #1 0x00007ff3fd537939 in QWaitCondition::wait (this=0x23dfd88, mutex=0x23e0140, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87 #2 0x00007ff3fed605e4 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x23dfd60, th=0x39f8470) at /build/buildd/kde4libs-4.2.96/threadweaver/Weaver/WeaverImpl.cpp:365 #3 0x00007ff3fed62d93 in ThreadWeaver::WorkingHardState::applyForWork (this=0x23e0220, th=0x39f8470) at /build/buildd/kde4libs-4.2.96/threadweaver/Weaver/WorkingHardState.cpp:71 #4 0x00007ff3fed6130f in ThreadWeaver::ThreadRunHelper::run (this=0x7ff3d8fa1060, parent=0x23dfd60, th=0x39f8470) at /build/buildd/kde4libs-4.2.96/threadweaver/Weaver/Thread.cpp:87 #5 0x00007ff3fed61769 in ThreadWeaver::Thread::run (this=0x39f8470) at /build/buildd/kde4libs-4.2.96/threadweaver/Weaver/Thread.cpp:142 #6 0x00007ff3fd536952 in QThreadPrivate::start (arg=0x39f8470) at thread/qthread_unix.cpp:189 #7 0x00007ff3f704d3ba in start_thread (arg=<value optimized out>) at pthread_create.c:297 #8 0x00007ff3fbbfcfcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #9 0x0000000000000000 in ?? () Thread 3 (Thread 0x7ff3dc433950 (LWP 26540)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261 #1 0x00007ff3fd537939 in QWaitCondition::wait (this=0x71a2a38, mutex=0x6c77980, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87 #2 0x00007ff3fed605e4 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x71a2a10, th=0x2dfb5e0) at /build/buildd/kde4libs-4.2.96/threadweaver/Weaver/WeaverImpl.cpp:365 #3 0x00007ff3fed62d93 in ThreadWeaver::WorkingHardState::applyForWork (this=0x6c77a60, th=0x2dfb5e0) at /build/buildd/kde4libs-4.2.96/threadweaver/Weaver/WorkingHardState.cpp:71 #4 0x00007ff3fed6130f in ThreadWeaver::ThreadRunHelper::run (this=0x7ff3dc433060, parent=0x71a2a10, th=0x2dfb5e0) at /build/buildd/kde4libs-4.2.96/threadweaver/Weaver/Thread.cpp:87 #5 0x00007ff3fed61769 in ThreadWeaver::Thread::run (this=0x2dfb5e0) at /build/buildd/kde4libs-4.2.96/threadweaver/Weaver/Thread.cpp:142 #6 0x00007ff3fd536952 in QThreadPrivate::start (arg=0x2dfb5e0) at thread/qthread_unix.cpp:189 #7 0x00007ff3f704d3ba in start_thread (arg=<value optimized out>) at pthread_create.c:297 #8 0x00007ff3fbbfcfcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #9 0x0000000000000000 in ?? () Thread 2 (Thread 0x7ff3d3be4950 (LWP 26679)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261 #1 0x00007ff3fd537939 in QWaitCondition::wait (this=0x71a2a38, mutex=0x6c77980, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87 #2 0x00007ff3fed605e4 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x71a2a10, th=0x71555f0) at /build/buildd/kde4libs-4.2.96/threadweaver/Weaver/WeaverImpl.cpp:365 #3 0x00007ff3fed62d93 in ThreadWeaver::WorkingHardState::applyForWork (this=0x6c77a60, th=0x71555f0) at /build/buildd/kde4libs-4.2.96/threadweaver/Weaver/WorkingHardState.cpp:71 #4 0x00007ff3fed6130f in ThreadWeaver::ThreadRunHelper::run (this=0x7ff3d3be4060, parent=0x71a2a10, th=0x71555f0) at /build/buildd/kde4libs-4.2.96/threadweaver/Weaver/Thread.cpp:87 #5 0x00007ff3fed61769 in ThreadWeaver::Thread::run (this=0x71555f0) at /build/buildd/kde4libs-4.2.96/threadweaver/Weaver/Thread.cpp:142 #6 0x00007ff3fd536952 in QThreadPrivate::start (arg=0x71555f0) at thread/qthread_unix.cpp:189 #7 0x00007ff3f704d3ba in start_thread (arg=<value optimized out>) at pthread_create.c:297 #8 0x00007ff3fbbfcfcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #9 0x0000000000000000 in ?? () Thread 1 (Thread 0x7ff400886750 (LWP 25061)): [KCrash Handler] #5 KDevelop::IPlugin::core (this=0x0) at /home/fusion/src/kdevplatform/interfaces/iplugin.cpp:169 #6 0x00007ff400025689 in KDevelop::IPlugin::extensionManager (this=0x0) at /home/fusion/src/kdevplatform/interfaces/iplugin.cpp:176 #7 0x00007ff3ed4b0445 in NativeAppLauncher::start (this=<value optimized out>, launchMode=<value optimized out>, cfg=0x35a34d0) at /home/fusion/src/kdevplatform/interfaces/iplugin.h:170 #8 0x00007ff3ffda6408 in KDevelop::RunController::execute (this=0x23ebf30, runMode=@0x7fff088c4be0, run=0x35a34c0) at /home/fusion/src/kdevplatform/shell/runcontroller.cpp:313 #9 0x00007ff3ffda6a64 in KDevelop::RunController::executeDefaultLaunch (this=0x23ebf30, runMode=@0x7fff088c4be0) at /home/fusion/src/kdevplatform/shell/runcontroller.cpp:660 #10 0x00007ff3ffda3da9 in KDevelop::RunController::slotExecute (this=0x23ebf30) at /home/fusion/src/kdevplatform/shell/runcontroller.cpp:420 #11 0x00007ff3ffda7070 in KDevelop::RunController::qt_metacall (this=0x23ebf30, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff088c4dc0) at /home/fusion/src/kdevplatform/build/shell/runcontroller.moc:91 #12 0x00007ff3fd6351f2 in QMetaObject::activate (sender=0x23ed560, from_signal_index=<value optimized out>, to_signal_index=6, argv=0x0) at kernel/qobject.cpp:3069 #13 0x00007ff3fc8037e7 in QAction::triggered (this=0x0, _t1=false) at .moc/release-shared/moc_qaction.cpp:236 #14 0x00007ff3fc804c60 in QAction::activate (this=0x23ed560, event=<value optimized out>) at kernel/qaction.cpp:1160 #15 0x00007ff3fc807777 in QAction::event (this=0x0, e=<value optimized out>) at kernel/qaction.cpp:1079 #16 0x00007ff3fdcc6513 in KAction::event (this=0x0, event=0x7fff088c5350) at /build/buildd/kde4libs-4.2.96/kdeui/actions/kaction.cpp:88 #17 0x00007ff3fc80978d in QApplicationPrivate::notify_helper (this=0x20e2110, receiver=0x23ed560, e=0x7fff088c5350) at kernel/qapplication.cpp:4084 #18 0x00007ff3fc81197a in QApplication::notify (this=0x7fff088c6a80, receiver=0x23ed560, e=0x7fff088c5350) at kernel/qapplication.cpp:4049 #19 0x00007ff3fdd9963b in KApplication::notify (this=0x7fff088c6a80, receiver=0x23ed560, event=0x7fff088c5350) at /build/buildd/kde4libs-4.2.96/kdeui/kernel/kapplication.cpp:302 #20 0x00007ff3fd61f75c in QCoreApplication::notifyInternal (this=0x7fff088c6a80, receiver=0x23ed560, event=0x7fff088c5350) at kernel/qcoreapplication.cpp:602 #21 0x00007ff3fc83f05d in QShortcutMap::dispatchEvent (this=<value optimized out>, e=0x7fff088c5850) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213 #22 0x00007ff3fc840ebc in QShortcutMap::tryShortcutEvent (this=0x20e2228, o=<value optimized out>, e=0x7fff088c5850) at kernel/qshortcutmap.cpp:369 #23 0x00007ff3fc8129a1 in QApplication::notify (this=0x7fff088c6a80, receiver=0x5734d00, e=0x7fff088c5850) at kernel/qapplication.cpp:3673 #24 0x00007ff3fdd9963b in KApplication::notify (this=0x7fff088c6a80, receiver=0x5734d00, event=0x7fff088c5850) at /build/buildd/kde4libs-4.2.96/kdeui/kernel/kapplication.cpp:302 #25 0x00007ff3fd61f75c in QCoreApplication::notifyInternal (this=0x7fff088c6a80, receiver=0x5734d00, event=0x7fff088c5850) at kernel/qcoreapplication.cpp:602 #26 0x00007ff3fc89e6b4 in QKeyMapper::sendKeyEvent (keyWidget=0x5734d00, grab=<value optimized out>, type=QEvent::KeyPress, code=16777272, modifiers={i = 143415936}, text=@0x7fff088c5a70, autorepeat=false, count=1, nativeScanCode=75, nativeVirtualKey=65478, nativeModifiers=1) at kernel/qkeymapper_x11.cpp:1675 #27 0x00007ff3fc8a0a12 in QKeyMapperPrivate::translateKeyEvent (this=0x211bca0, keyWidget=0x5734d00, event=0x7fff088c6640, grab=40) at kernel/qkeymapper_x11.cpp:1645 #28 0x00007ff3fc8795bd in QApplication::x11ProcessEvent (this=0x7fff088c6a80, event=0x7fff088c6640) at kernel/qapplication_x11.cpp:3436 #29 0x00007ff3fc8a2464 in x11EventSourceDispatch (s=0x20e5de0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146 #30 0x00007ff3f639820a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #31 0x00007ff3f639b8e0 in ?? () from /usr/lib/libglib-2.0.so.0 #32 0x00007ff3f639ba7c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #33 0x00007ff3fd648e6f in QEventDispatcherGlib::processEvents (this=0x120f6b0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:323 #34 0x00007ff3fc8a1bef in QGuiEventDispatcherGlib::processEvents (this=0x0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202 #35 0x00007ff3fd61e002 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 143419696}) at kernel/qeventloop.cpp:149 #36 0x00007ff3fd61e3cd in QEventLoop::exec (this=0x7fff088c6970, flags={i = 143419776}) at kernel/qeventloop.cpp:200 #37 0x00007ff3fd620694 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:880 #38 0x0000000000408027 in main (argc=1, argv=0x7fff088c7c28) at /home/fusion/src/kdevelop/app/main.cpp:181 Reported using DrKonqi
your installation is somehow broken. Might be it picks up two different execute plugin from two different kdevelop installations. Or your build is somehow broken. Either way, I suggest to remove any kdevelop/kdevplatform installation you have (including any packages) and also any builddirectories you have from either of the two. Then rebuild+reinstall both.
*** Bug 209495 has been marked as a duplicate of this bug. ***
*** Bug 209617 has been marked as a duplicate of this bug. ***
*** Bug 235595 has been marked as a duplicate of this bug. ***
Created attachment 43257 [details] New crash information added by DrKonqi I figured out the repro steps: - Build and install KDevelop - Set KDEDIRS and run kbuildsycoca4 - Start KDevelop - Unset KDEDIRS and run kbuildsycoca4 again, without closing KDevelop - Start debugging an application... KDevelop crashes. Note that these steps don't constradict the instructions at http://www.kdevelop.org/mediawiki/index.php/KDevelop_4/compiling. They don't say anything about not running kbuildsycoca4 after starting KDevelop. This also explains why
(Sorry, accidentally submitted the report before I finished typing...) This also explains why KDevelop works for a while, then randomly crashes: some app causes kbuildsyscoca4 to run, without KDEDIRS being set.
(In reply to comment #6) > (Sorry, accidentally submitted the report before I finished typing...) > > This also explains why KDevelop works for a while, then randomly crashes: some > app causes kbuildsyscoca4 to run, without KDEDIRS being set. Well, I'm sorry but thats a setup issue on your system. That is not supported and won't be. Basically you're breaking KDE-internal caches with this and its not just kdevelop that would break down here.
Sure, but my point is, the build instructions don't make this clear. I'm used to setting variables like LD_LIBRARY_PATH when running a program I compiled from sources - and expected KDEDIRS to work the same way. Anyway, the wiki page should probably be updated to say that KDEDIRS needs to be set to the same value across the whole KDE session.
*** Bug 237167 has been marked as a duplicate of this bug. ***