Bug 226600 - crash in KDevelop::DUContext::synchronizeUsesFromSmart
Summary: crash in KDevelop::DUContext::synchronizeUsesFromSmart
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: 4.1.0
Assignee: kdevelop-bugs-null
URL:
Keywords:
: 177603 185936 186449 235168 252658 258127 258405 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-02-12 22:37 UTC by Michael
Modified: 2010-11-30 18:14 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.2.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael 2010-02-12 22:37:46 UTC
Application that crashed: kdevelop
Version of the application: 3.9.97 (using KDevPlatform 0.9.97)
KDE Version: 4.3.4 (KDE 4.3.4)
Qt Version: 4.5.3
Operating System: Linux 2.6.32-trunk-686 i686
Distribution: Debian GNU/Linux testing (squeeze)

What I was doing when the application crashed:
kdevelop crash in to segmentation fault after reloading file

i have update my working copy from repository, and CMakeLists.txt was opened. after update program tell me that i need to reload file. when i press the button kdevelop crashes.

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

Thread 9 (Thread 0xb0d2ab70 (LWP 4090)):
#0  0xb7855424 in __kernel_vsyscall ()
#1  0xb4f593d2 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_timedwait.S:179
#2  0xb63d2884 in __pthread_cond_timedwait (cond=0x89244d8, mutex=0x89244c0, abstime=0xb0d2a2ec) at forward.c:152
#3  0xb6f4259c in QWaitConditionPrivate::wait (this=0x889f274, mutex=0x889f278, time=200000) at thread/qwaitcondition_unix.cpp:85
#4  QWaitCondition::wait (this=0x889f274, mutex=0x889f278, time=200000) at thread/qwaitcondition_unix.cpp:159
#5  0xb564f6f5 in KDevelop::DUChainPrivate::CleanupThread::run (this=0x889f268) at ../../language/duchain/duchain.cpp:280
#6  0xb6f415e2 in QThreadPrivate::start (arg=0x889f268) at thread/qthread_unix.cpp:188
#7  0xb4f55585 in start_thread (arg=0xb0d2ab70) at pthread_create.c:300
#8  0xb63c52be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 8 (Thread 0xacfd4b70 (LWP 4221)):
#0  0xb4fa3973 in g_main_context_check () from /lib/libglib-2.0.so.0
#1  0xb4fa411c in ?? () from /lib/libglib-2.0.so.0
#2  0xb4fa4503 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0xb705d05f in QEventDispatcherGlib::processEvents (this=0x8e9f698, flags=...) at kernel/qeventdispatcher_glib.cpp:409
#4  0xb703083a in QEventLoop::processEvents (this=0xacfd4300, flags=...) at kernel/qeventloop.cpp:149
#5  0xb7030c82 in QEventLoop::exec (this=0xacfd4300, flags=...) at kernel/qeventloop.cpp:201
#6  0xb6f3e309 in QThread::exec (this=0x9521060) at thread/qthread.cpp:487
#7  0xb57573e0 in KDevelop::CompletionWorkerThread::run (this=0x9521060) at ../../language/codecompletion/codecompletionmodel.cpp:82
#8  0xb6f415e2 in QThreadPrivate::start (arg=0x9521060) at thread/qthread_unix.cpp:188
#9  0xb4f55585 in start_thread (arg=0xacfd4b70) at pthread_create.c:300
#10 0xb63c52be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 7 (Thread 0xad7d5b70 (LWP 4222)):
#0  0xb4f583c4 in __pthread_mutex_unlock_usercnt (mutex=0xab24e6e4, decr=1) at pthread_mutex_unlock.c:52
#1  0xb63d2a36 in pthread_mutex_unlock (mutex=0xab24e6e4) at forward.c:184
#2  0xb4fa3de5 in g_main_context_prepare () from /lib/libglib-2.0.so.0
#3  0xb4fa3ff1 in ?? () from /lib/libglib-2.0.so.0
#4  0xb4fa4503 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#5  0xb705d05f in QEventDispatcherGlib::processEvents (this=0x8adbee8, flags=...) at kernel/qeventdispatcher_glib.cpp:409
#6  0xb703083a in QEventLoop::processEvents (this=0xad7d5300, flags=...) at kernel/qeventloop.cpp:149
#7  0xb7030c82 in QEventLoop::exec (this=0xad7d5300, flags=...) at kernel/qeventloop.cpp:201
#8  0xb6f3e309 in QThread::exec (this=0x95213b8) at thread/qthread.cpp:487
#9  0xb57573e0 in KDevelop::CompletionWorkerThread::run (this=0x95213b8) at ../../language/codecompletion/codecompletionmodel.cpp:82
#10 0xb6f415e2 in QThreadPrivate::start (arg=0x95213b8) at thread/qthread_unix.cpp:188
#11 0xb4f55585 in start_thread (arg=0xad7d5b70) at pthread_create.c:300
#12 0xb63c52be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 6 (Thread 0xa9fc0b70 (LWP 4223)):
#0  0xb7855424 in __kernel_vsyscall ()
#1  0xb4f593d2 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_timedwait.S:179
#2  0xb63d2884 in __pthread_cond_timedwait (cond=0xa9fc0274, mutex=0xa9fc02a4, abstime=0xa9fc02e0) at forward.c:152
#3  0xb6f40fee in thread_sleep (ti=0xa9fc02e0) at thread/qthread_unix.cpp:297
#4  0xb6f4111b in QThread::msleep (msecs=<value optimized out>) at thread/qthread_unix.cpp:323
#5  0xab325dcb in ?? () from /usr/lib/kde4/kdevcpplanguagesupport.so
#6  0xb6f415e2 in QThreadPrivate::start (arg=0xa9fc032c) at thread/qthread_unix.cpp:188
#7  0xb4f55585 in start_thread (arg=0xa9fc0b70) at pthread_create.c:300
#8  0xb63c52be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 5 (Thread 0xa97bfb70 (LWP 4224)):
#0  0xb7855424 in __kernel_vsyscall ()
#1  0xb4f590a5 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122
#2  0xb63d282d in __pthread_cond_wait (cond=0x88b64e8, mutex=0x88b64d0) at forward.c:139
#3  0xb6f425c2 in QWaitConditionPrivate::wait (this=0x88611f8, mutex=0x88447f0, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#4  QWaitCondition::wait (this=0x88611f8, mutex=0x88447f0, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#5  0xb4ba3648 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x88611e0, th=0x8e195d8) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#6  0xb4ba63ac in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x894a480, th=0x8e195d8) at ../../../threadweaver/Weaver/WorkingHardState.cpp:80
#7  0xb4ba223b in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x88611e0, th=0x8e195d8) at ../../../threadweaver/Weaver/WeaverImpl.cpp:356
#8  0xb4ba64a2 in ThreadWeaver::WorkingHardState::applyForWork (this=0x894a480, th=0x8e195d8) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#9  0xb4ba3bd3 in ThreadWeaver::WeaverImpl::applyForWork (this=0x88611e0, th=0x8e195d8, previous=0x0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351
#10 0xb4ba64c1 in ThreadWeaver::WorkingHardState::applyForWork (this=0x894a480, th=0x8e195d8) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#11 0xb4ba3bd3 in ThreadWeaver::WeaverImpl::applyForWork (this=0x88611e0, th=0x8e195d8, previous=0x0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351
#12 0xb4ba64c1 in ThreadWeaver::WorkingHardState::applyForWork (this=0x894a480, th=0x8e195d8) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#13 0xb4ba3bd3 in ThreadWeaver::WeaverImpl::applyForWork (this=0x88611e0, th=0x8e195d8, previous=0xab0fec80) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351
#14 0xb4ba44be in ThreadWeaver::ThreadRunHelper::run (this=0xa97bf330, parent=0x88611e0, th=0x8e195d8) at ../../../threadweaver/Weaver/Thread.cpp:87
#15 0xb4ba4afb in ThreadWeaver::Thread::run (this=0x8e195d8) at ../../../threadweaver/Weaver/Thread.cpp:142
#16 0xb6f415e2 in QThreadPrivate::start (arg=0x8e195d8) at thread/qthread_unix.cpp:188
#17 0xb4f55585 in start_thread (arg=0xa97bfb70) at pthread_create.c:300
#18 0xb63c52be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 4 (Thread 0xa8fbeb70 (LWP 4225)):
#0  0xb7855424 in __kernel_vsyscall ()
#1  0xb4f590a5 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122
#2  0xb63d282d in __pthread_cond_wait (cond=0x88b64e8, mutex=0x88b64d0) at forward.c:139
#3  0xb6f425c2 in QWaitConditionPrivate::wait (this=0x88611f8, mutex=0x88447f0, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#4  QWaitCondition::wait (this=0x88611f8, mutex=0x88447f0, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#5  0xb4ba3648 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x88611e0, th=0xab05fdc0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#6  0xb4ba63ac in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x894a480, th=0xab05fdc0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:80
#7  0xb4ba223b in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x88611e0, th=0xab05fdc0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:356
#8  0xb4ba64a2 in ThreadWeaver::WorkingHardState::applyForWork (this=0x894a480, th=0xab05fdc0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#9  0xb4ba3bd3 in ThreadWeaver::WeaverImpl::applyForWork (this=0x88611e0, th=0xab05fdc0, previous=0xab1f34e0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351
#10 0xb4ba44be in ThreadWeaver::ThreadRunHelper::run (this=0xa8fbe330, parent=0x88611e0, th=0xab05fdc0) at ../../../threadweaver/Weaver/Thread.cpp:87
#11 0xb4ba4afb in ThreadWeaver::Thread::run (this=0xab05fdc0) at ../../../threadweaver/Weaver/Thread.cpp:142
#12 0xb6f415e2 in QThreadPrivate::start (arg=0xab05fdc0) at thread/qthread_unix.cpp:188
#13 0xb4f55585 in start_thread (arg=0xa8fbeb70) at pthread_create.c:300
#14 0xb63c52be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 3 (Thread 0xa87bdb70 (LWP 4228)):
#0  0xb7855424 in __kernel_vsyscall ()
#1  0xb4f590a5 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122
#2  0xb63d282d in __pthread_cond_wait (cond=0x9554758, mutex=0x9554740) at forward.c:139
#3  0xb6f425c2 in QWaitConditionPrivate::wait (this=0x9554650, mutex=0x95572b8, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#4  QWaitCondition::wait (this=0x9554650, mutex=0x95572b8, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#5  0xb4ba3648 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x9554638, th=0x9557610) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#6  0xb4ba63ac in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x9557350, th=0x9557610) at ../../../threadweaver/Weaver/WorkingHardState.cpp:80
#7  0xb4ba223b in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x9554638, th=0x9557610) at ../../../threadweaver/Weaver/WeaverImpl.cpp:356
#8  0xb4ba64a2 in ThreadWeaver::WorkingHardState::applyForWork (this=0x9557350, th=0x9557610) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#9  0xb4ba3bd3 in ThreadWeaver::WeaverImpl::applyForWork (this=0x9554638, th=0x9557610, previous=0x95d8178) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351
#10 0xb4ba44be in ThreadWeaver::ThreadRunHelper::run (this=0xa87bd330, parent=0x9554638, th=0x9557610) at ../../../threadweaver/Weaver/Thread.cpp:87
#11 0xb4ba4afb in ThreadWeaver::Thread::run (this=0x9557610) at ../../../threadweaver/Weaver/Thread.cpp:142
#12 0xb6f415e2 in QThreadPrivate::start (arg=0x9557610) at thread/qthread_unix.cpp:188
#13 0xb4f55585 in start_thread (arg=0xa87bdb70) at pthread_create.c:300
#14 0xb63c52be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 2 (Thread 0xa7dffb70 (LWP 4232)):
#0  0xb7855424 in __kernel_vsyscall ()
#1  0xb4f590a5 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122
#2  0xb63d282d in __pthread_cond_wait (cond=0x9554758, mutex=0x9554740) at forward.c:139
#3  0xb6f425c2 in QWaitConditionPrivate::wait (this=0x9554650, mutex=0x95572b8, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#4  QWaitCondition::wait (this=0x9554650, mutex=0x95572b8, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#5  0xb4ba3648 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x9554638, th=0x95e7088) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#6  0xb4ba63ac in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x9557350, th=0x95e7088) at ../../../threadweaver/Weaver/WorkingHardState.cpp:80
#7  0xb4ba223b in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x9554638, th=0x95e7088) at ../../../threadweaver/Weaver/WeaverImpl.cpp:356
#8  0xb4ba64a2 in ThreadWeaver::WorkingHardState::applyForWork (this=0x9557350, th=0x95e7088) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#9  0xb4ba3bd3 in ThreadWeaver::WeaverImpl::applyForWork (this=0x9554638, th=0x95e7088, previous=0x0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351
#10 0xb4ba44be in ThreadWeaver::ThreadRunHelper::run (this=0xa7dff330, parent=0x9554638, th=0x95e7088) at ../../../threadweaver/Weaver/Thread.cpp:87
#11 0xb4ba4afb in ThreadWeaver::Thread::run (this=0x95e7088) at ../../../threadweaver/Weaver/Thread.cpp:142
#12 0xb6f415e2 in QThreadPrivate::start (arg=0x95e7088) at thread/qthread_unix.cpp:188
#13 0xb4f55585 in start_thread (arg=0xa7dffb70) at pthread_create.c:300
#14 0xb63c52be in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb4912920 (LWP 4089)):
[KCrash Handler]
#6  SimpleCursor (this=0x90cef78) at ../../language/duchain/../editor/simplecursor.h:40
#7  SimpleRange (this=0x90cef78) at ../../language/duchain/../editor/simplerange.h:42
#8  KDevelop::DUContext::synchronizeUsesFromSmart (this=0x90cef78) at ../../language/duchain/ducontext.cpp:230
#9  0xb5659935 in KDevelop::DUContext::uses (this=0x90cef78) at ../../language/duchain/ducontext.cpp:1546
#10 0xb56c00f3 in KDevelop::DUChainUtils::itemUnderCursor (url=..., c=...) at ../../language/duchain/duchainutils.cpp:287
#11 0xae7ead24 in ContextBrowserPlugin::findDeclaration (this=0x8df02e8, view=0x9305290, position=..., mouseHighlight=false) at ../../../plugins/contextbrowser/contextbrowser.cpp:540
#12 0xae7f6dea in ContextBrowserPlugin::updateBrowserWidgetFor (this=0x8df02e8, view=0x9305290) at ../../../plugins/contextbrowser/contextbrowser.cpp:679
#13 0xae7f736f in ContextBrowserPlugin::updateViews (this=0x8df02e8) at ../../../plugins/contextbrowser/contextbrowser.cpp:709
#14 0xae7f76ab in ContextBrowserPlugin::qt_metacall (this=0x8df02e8, _c=QMetaObject::InvokeMetaMethod, _id=27, _a=0xbfd45f28) at ./contextbrowser.moc:118
#15 0xb7047303 in QMetaObject::activate (sender=0x8df4080, from_signal_index=4, to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3112
#16 0xb7047f42 in QMetaObject::activate (sender=0x8df4080, m=0xb7123d84, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3186
#17 0xb7082b37 in QTimer::timeout (this=0x8df4080) at .moc/release-shared/moc_qtimer.cpp:128
#18 0xb704d65e in QTimer::timerEvent (this=0x8df4080, e=0xbfd463ac) at kernel/qtimer.cpp:261
#19 0xb704239f in QObject::event (this=0x8df4080, e=0xbfd463ac) at kernel/qobject.cpp:1074
#20 0xb6671a94 in QApplicationPrivate::notify_helper (this=0x87082d8, receiver=0x8df4080, e=0xbfd463ac) at kernel/qapplication.cpp:4065
#21 0xb6679bee in QApplication::notify (this=0xbfd466f4, receiver=0x8df4080, e=0xbfd463ac) at kernel/qapplication.cpp:3605
#22 0xb72f762d in KApplication::notify (this=0xbfd466f4, receiver=0x8df4080, event=0xbfd463ac) at ../../kdeui/kernel/kapplication.cpp:302
#23 0xb70321eb in QCoreApplication::notifyInternal (this=0xbfd466f4, receiver=0x8df4080, event=0xbfd463ac) at kernel/qcoreapplication.cpp:610
#24 0xb7060e21 in QCoreApplication::sendEvent (this=0x870b334) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#25 QTimerInfoList::activateTimers (this=0x870b334) at kernel/qeventdispatcher_unix.cpp:580
#26 0xb705d317 in timerSourceDispatch (source=0x870b370) at kernel/qeventdispatcher_glib.cpp:184
#27 idleTimerSourceDispatch (source=0x870b370) at kernel/qeventdispatcher_glib.cpp:231
#28 0xb4fa0b38 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#29 0xb4fa43d0 in ?? () from /lib/libglib-2.0.so.0
#30 0xb4fa4503 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#31 0xb705d041 in QEventDispatcherGlib::processEvents (this=0x864d248, flags=...) at kernel/qeventdispatcher_glib.cpp:407
#32 0xb6711305 in QGuiEventDispatcherGlib::processEvents (this=0x864d248, flags=...) at kernel/qguieventdispatcher_glib.cpp:202
#33 0xb703083a in QEventLoop::processEvents (this=0xbfd46620, flags=...) at kernel/qeventloop.cpp:149
#34 0xb7030c82 in QEventLoop::exec (this=0xbfd46620, flags=...) at kernel/qeventloop.cpp:201
#35 0xb70330d9 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#36 0xb6671917 in QApplication::exec () at kernel/qapplication.cpp:3525
#37 0x0804d9db in _start ()

Reported using DrKonqi
Comment 1 Andreas Pakulat 2010-02-13 09:30:07 UTC
Can you please try with KDE 4.4 once you have those available? There have been various fixes to the smart-range-code in kate, so this might be fixed.
Comment 2 Roman 2010-03-04 01:56:48 UTC
I've just had crash with the same crashlog. I use KDE 4.4.1. KDevelop crashed on CMakeLists.txt editing.
Comment 3 Milian Wolff 2010-09-28 17:30:10 UTC
*** Bug 252658 has been marked as a duplicate of this bug. ***
Comment 4 Milian Wolff 2010-09-28 17:31:02 UTC
should be fixed for 4.2 with the foreground lock.

if anyone finds a way to reproduce this in 4.1,tell me.
Comment 5 Milian Wolff 2010-11-30 18:12:56 UTC
*** Bug 235168 has been marked as a duplicate of this bug. ***
Comment 6 Milian Wolff 2010-11-30 18:13:07 UTC
*** Bug 258405 has been marked as a duplicate of this bug. ***
Comment 7 Milian Wolff 2010-11-30 18:13:37 UTC
*** Bug 185936 has been marked as a duplicate of this bug. ***
Comment 8 Milian Wolff 2010-11-30 18:13:46 UTC
*** Bug 177603 has been marked as a duplicate of this bug. ***
Comment 9 Milian Wolff 2010-11-30 18:13:55 UTC
*** Bug 186449 has been marked as a duplicate of this bug. ***
Comment 10 Milian Wolff 2010-11-30 18:14:09 UTC
*** Bug 258127 has been marked as a duplicate of this bug. ***