Bug 250390

Summary: Kdevelop 4.0.2 crashes when clicking "show definiton"
Product: [Applications] kdevelop Reporter: Mathias Gottschlag <mgottschlag>
Component: generalAssignee: kdevelop-bugs-null
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: 4.1.0   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Mathias Gottschlag 2010-09-06 19:56:56 UTC
Application: kdevelop (4.0.2 (using KDevPlatform 1.0.2))
KDE Platform Version: 4.5.1 (KDE 4.5.1)
Qt Version: 4.7.0
Operating System: Linux 2.6.35-19-generic x86_64
Distribution: Ubuntu maverick (development branch)

-- Information about the crash:
- What I was doing when the application crashed:

The crash is reproducable and happens whenever I click on a member function of a class and select "show definition". The code used here is the one in http://github.com/mgottschlag/CoreRender (master).

The crash can be reproduced some of the time.

-- Backtrace:
Application: KDevelop (kdevelop.bin), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f9e93c46760 (LWP 5601))]

Thread 11 (Thread 0x7f9e7d60e710 (LWP 5602)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:212
#1  0x00007f9e923b0da2 in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x22ca9f0, time=200000) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x22ca9f0, time=200000) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f9e8dabfc5e in KDevelop::DUChainPrivate::CleanupThread::run (this=0x22ca9d0) at ../../language/duchain/duchain.cpp:286
#4  0x00007f9e923b027e in QThreadPrivate::start (arg=0x22ca9d0) at thread/qthread_unix.cpp:266
#5  0x00007f9e90db5971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#6  0x00007f9e910b192d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 10 (Thread 0x7f9e774b5710 (LWP 5604)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f9e923b0e3b in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x21392b0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x21392b0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f9e8868d524 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x2c1f7c0, th=0x1fc9c40) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f9e8869072b in ThreadWeaver::WorkingHardState::applyForWork (this=0x213c730, th=0x1fc9c40) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f9e8868ec9f in ThreadWeaver::ThreadRunHelper::run (this=0x7f9e774b4e00, parent=0x2c1f7c0, th=0x1fc9c40) at ../../../threadweaver/Weaver/Thread.cpp:87
#6  0x00007f9e8868f1f8 in ThreadWeaver::Thread::run (this=0x1fc9c40) at ../../../threadweaver/Weaver/Thread.cpp:142
#7  0x00007f9e923b027e in QThreadPrivate::start (arg=0x1fc9c40) at thread/qthread_unix.cpp:266
#8  0x00007f9e90db5971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#9  0x00007f9e910b192d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7f9e6ced2710 (LWP 5654)):
#0  0x00007f9e910a51e3 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f9e8a8b64a9 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007f9e8a8b68fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007f9e924d01e6 in QEventDispatcherGlib::processEvents (this=0x2e39ca0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:417
#4  0x00007f9e924a2a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007f9e924a2dec in QEventLoop::exec (this=0x7f9e6ced1db0, flags=) at kernel/qeventloop.cpp:201
#6  0x00007f9e923ad2fd in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#7  0x00007f9e924825f8 in QInotifyFileSystemWatcherEngine::run (this=0x2e39230) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f9e923b027e in QThreadPrivate::start (arg=0x2e39230) at thread/qthread_unix.cpp:266
#9  0x00007f9e90db5971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#10 0x00007f9e910b192d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f9e6c6d1710 (LWP 5708)):
#0  0x00007f9e90db8c9d in __pthread_mutex_unlock_usercnt (mutex=0x3ce66c8) at pthread_mutex_unlock.c:52
#1  __pthread_mutex_unlock (mutex=0x3ce66c8) at pthread_mutex_unlock.c:290
#2  0x00007f9e8a8b5ea5 in g_main_context_prepare () from /lib/libglib-2.0.so.0
#3  0x00007f9e8a8b6318 in ?? () from /lib/libglib-2.0.so.0
#4  0x00007f9e8a8b68fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#5  0x00007f9e924d01e6 in QEventDispatcherGlib::processEvents (this=0x2f23540, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:417
#6  0x00007f9e924a2a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#7  0x00007f9e924a2dec in QEventLoop::exec (this=0x7f9e6c6d0df0, flags=) at kernel/qeventloop.cpp:201
#8  0x00007f9e923ad2fd in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#9  0x00007f9e923b027e in QThreadPrivate::start (arg=0x3cc9500) at thread/qthread_unix.cpp:266
#10 0x00007f9e90db5971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#11 0x00007f9e910b192d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f9e67680710 (LWP 5709)):
#0  0x00007f9e910a51e3 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f9e8a8b64a9 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007f9e8a8b68fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007f9e924d01e6 in QEventDispatcherGlib::processEvents (this=0x345b400, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:417
#4  0x00007f9e924a2a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007f9e924a2dec in QEventLoop::exec (this=0x7f9e6767fdf0, flags=) at kernel/qeventloop.cpp:201
#6  0x00007f9e923ad2fd in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#7  0x00007f9e923b027e in QThreadPrivate::start (arg=0x3cbeaf0) at thread/qthread_unix.cpp:266
#8  0x00007f9e90db5971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#9  0x00007f9e910b192d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f9e66e7f710 (LWP 5710)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:212
#1  0x00007f9e923af845 in thread_sleep (ti=0x7f9e66e7edb0) at thread/qthread_unix.cpp:416
#2  0x00007f9e923af9b0 in QThread::msleep (msecs=<value optimized out>) at thread/qthread_unix.cpp:442
#3  0x00007f9e6819a961 in ?? () from /usr/lib/kde4/kdevcpplanguagesupport.so
#4  0x00007f9e923b027e in QThreadPrivate::start (arg=0x3cc21a0) at thread/qthread_unix.cpp:266
#5  0x00007f9e90db5971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#6  0x00007f9e910b192d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f9e6566b710 (LWP 5717)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f9e923b0e3b in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x1fc94c0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x1fc94c0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f9e8868d524 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x21f2910, th=0x43337d0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f9e8869072b in ThreadWeaver::WorkingHardState::applyForWork (this=0x1ff2c80, th=0x43337d0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f9e88690744 in ThreadWeaver::WorkingHardState::applyForWork (this=0x1ff2c80, th=0x43337d0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#6  0x00007f9e88690744 in ThreadWeaver::WorkingHardState::applyForWork (this=0x1ff2c80, th=0x43337d0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#7  0x00007f9e8868ec9f in ThreadWeaver::ThreadRunHelper::run (this=0x7f9e6566ae00, parent=0x21f2910, th=0x43337d0) at ../../../threadweaver/Weaver/Thread.cpp:87
#8  0x00007f9e8868f1f8 in ThreadWeaver::Thread::run (this=0x43337d0) at ../../../threadweaver/Weaver/Thread.cpp:142
#9  0x00007f9e923b027e in QThreadPrivate::start (arg=0x43337d0) at thread/qthread_unix.cpp:266
#10 0x00007f9e90db5971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#11 0x00007f9e910b192d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f9e64e6a710 (LWP 5718)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f9e923b0e3b in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x1fc94c0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x1fc94c0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f9e8868d524 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x21f2910, th=0x4e5ccd0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f9e8869072b in ThreadWeaver::WorkingHardState::applyForWork (this=0x1ff2c80, th=0x4e5ccd0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f9e8868ec9f in ThreadWeaver::ThreadRunHelper::run (this=0x7f9e64e69e00, parent=0x21f2910, th=0x4e5ccd0) at ../../../threadweaver/Weaver/Thread.cpp:87
#6  0x00007f9e8868f1f8 in ThreadWeaver::Thread::run (this=0x4e5ccd0) at ../../../threadweaver/Weaver/Thread.cpp:142
#7  0x00007f9e923b027e in QThreadPrivate::start (arg=0x4e5ccd0) at thread/qthread_unix.cpp:266
#8  0x00007f9e90db5971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#9  0x00007f9e910b192d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f9e76cb4710 (LWP 5778)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f9e923b0e3b in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x21392b0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x21392b0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f9e8868d524 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x2c1f7c0, th=0x7f9e70ef5600) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f9e8869072b in ThreadWeaver::WorkingHardState::applyForWork (this=0x213c730, th=0x7f9e70ef5600) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f9e88690744 in ThreadWeaver::WorkingHardState::applyForWork (this=0x213c730, th=0x7f9e70ef5600) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#6  0x00007f9e8868ec9f in ThreadWeaver::ThreadRunHelper::run (this=0x7f9e76cb3e00, parent=0x2c1f7c0, th=0x7f9e70ef5600) at ../../../threadweaver/Weaver/Thread.cpp:87
#7  0x00007f9e8868f1f8 in ThreadWeaver::Thread::run (this=0x7f9e70ef5600) at ../../../threadweaver/Weaver/Thread.cpp:142
#8  0x00007f9e923b027e in QThreadPrivate::start (arg=0x7f9e70ef5600) at thread/qthread_unix.cpp:266
#9  0x00007f9e90db5971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#10 0x00007f9e910b192d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f9e5ffff710 (LWP 5779)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f9e923b0e3b in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x21392b0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x21392b0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f9e8868d524 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x2c1f7c0, th=0x4a4b890) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f9e8869072b in ThreadWeaver::WorkingHardState::applyForWork (this=0x213c730, th=0x4a4b890) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f9e8868ec9f in ThreadWeaver::ThreadRunHelper::run (this=0x7f9e5fffee00, parent=0x2c1f7c0, th=0x4a4b890) at ../../../threadweaver/Weaver/Thread.cpp:87
#6  0x00007f9e8868f1f8 in ThreadWeaver::Thread::run (this=0x4a4b890) at ../../../threadweaver/Weaver/Thread.cpp:142
#7  0x00007f9e923b027e in QThreadPrivate::start (arg=0x4a4b890) at thread/qthread_unix.cpp:266
#8  0x00007f9e90db5971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#9  0x00007f9e910b192d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f9e93c46760 (LWP 5601)):
[KCrash Handler]
#6  QMetaObject::changeGuard (ptr=0x4f9ea48, o=0x0) at kernel/qobject.cpp:470
#7  0x00007f9e91c722d6 in QPointer<QAction>::operator= (this=0x4f9e780, action=0x210e000, action_e=QAction::Trigger, self=<value optimized out>)
    at ../../include/QtCore/../../src/corelib/kernel/qpointer.h:68
#8  QMenuPrivate::activateAction (this=0x4f9e780, action=0x210e000, action_e=QAction::Trigger, self=<value optimized out>) at widgets/qmenu.cpp:1098
#9  0x00007f9e92ad9ace in KMenu::mouseReleaseEvent (this=0x4e52f90, e=0x21) at ../../kdeui/widgets/kmenu.cpp:471
#10 0x00007f9e91861d0e in QWidget::event (this=0x4e52f90, event=0x7fff161fc650) at kernel/qwidget.cpp:8158
#11 0x00007f9e91c7443b in QMenu::event (this=0x4e52f90, e=0x7fff161fc650) at widgets/qmenu.cpp:2410
#12 0x00007f9e9180c04c in QApplicationPrivate::notify_helper (this=0x1f690f0, receiver=0x4e52f90, e=0x7fff161fc650) at kernel/qapplication.cpp:4396
#13 0x00007f9e9181237e in QApplication::notify (this=0x7fff161fd470, receiver=0x4e52f90, e=0x7fff161fc650) at kernel/qapplication.cpp:3959
#14 0x00007f9e929f8f16 in KApplication::notify (this=0x7fff161fd470, receiver=0x4e52f90, event=0x7fff161fc650) at ../../kdeui/kernel/kapplication.cpp:310
#15 0x00007f9e924a3cdc in QCoreApplication::notifyInternal (this=0x7fff161fd470, receiver=0x4e52f90, event=0x7fff161fc650) at kernel/qcoreapplication.cpp:732
#16 0x00007f9e91810e2e in QCoreApplication::sendEvent (receiver=0x4e52f90, event=0x7fff161fc650, alienWidget=0x0, nativeWidget=0x4e52f90, buttonDown=<value optimized out>, 
    lastMouseReceiver=<value optimized out>, spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#17 QApplicationPrivate::sendMouseEvent (receiver=0x4e52f90, event=0x7fff161fc650, alienWidget=0x0, nativeWidget=0x4e52f90, buttonDown=<value optimized out>, lastMouseReceiver=<value optimized out>, 
    spontaneous=true) at kernel/qapplication.cpp:3058
#18 0x00007f9e918945ad in QETWidget::translateMouseEvent (this=0x4e52f90, event=<value optimized out>) at kernel/qapplication_x11.cpp:4337
#19 0x00007f9e91892a4c in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fff161fcf70) at kernel/qapplication_x11.cpp:3536
#20 0x00007f9e918beef2 in x11EventSourceDispatch (s=0x1f6cf00, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#21 0x00007f9e8a8b27e2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#22 0x00007f9e8a8b6748 in ?? () from /lib/libglib-2.0.so.0
#23 0x00007f9e8a8b68fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#24 0x00007f9e924d0193 in QEventDispatcherGlib::processEvents (this=0x16f68b0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
#25 0x00007f9e918be85e in QGuiEventDispatcherGlib::processEvents (this=0x2009, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#26 0x00007f9e924a2a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#27 0x00007f9e924a2dec in QEventLoop::exec (this=0x7fff161fd2a0, flags=) at kernel/qeventloop.cpp:201
#28 0x00007f9e924a6ebb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#29 0x00000000004085f7 in _start ()

This bug may be a duplicate of or related to bug 249884.

Possible duplicates by query: bug 249884, bug 239904.

Reported using DrKonqi
Comment 1 Milian Wolff 2010-09-06 21:02:12 UTC

*** This bug has been marked as a duplicate of bug 249884 ***