Bug 281714

Summary: Crash while scrolling down
Product: [Applications] kdevelop Reporter: Andreas Cord-Landwehr <cordlandwehr>
Component: generalAssignee: kdevelop-bugs-null
Status: RESOLVED DUPLICATE    
Severity: crash CC: aleixpol
Priority: NOR    
Version: 4.2.2   
Target Milestone: 4.2.3   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Andreas Cord-Landwehr 2011-09-09 20:29:51 UTC
Application: kdevelop (4.2.2)
KDE Platform Version: 4.6.5 (4.6.5) (Compiled from sources)
Qt Version: 4.7.3
Operating System: Linux 3.0.0-1-686-pae i686
Distribution: Debian GNU/Linux testing (wheezy)

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

After making several changes to my project (adding functions, changing private and public methods), I scrolled down a long cpp file and while that suddenly kdevelop crashed.

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

Thread 9 (Thread 0xadc0db70 (LWP 14804)):
#0  0xb7875424 in __kernel_vsyscall ()
#1  0xb5e10703 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_timedwait.S:236
#2  0xb607fab4 in __pthread_cond_timedwait (cond=0x87b6a78, mutex=0x87b6a60, abstime=0xadc0d2c8) at forward.c:152
#3  0xb6d2a16e in wait (time=1000, this=0x87b6a60) at thread/qwaitcondition_unix.cpp:86
#4  QWaitCondition::wait (this=0x87cd854, mutex=0x87cd858, time=1000) at thread/qwaitcondition_unix.cpp:160
#5  0xb57bed4a in KDevelop::DUChainPrivate::CleanupThread::run (this=0x87cd848) at ../../language/duchain/duchain.cpp:286
#6  0xb6d29cd3 in QThreadPrivate::start (arg=0x87cd848) at thread/qthread_unix.cpp:320
#7  0xb5e0bc39 in start_thread (arg=0xadc0db70) at pthread_create.c:304
#8  0xb607296e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 8 (Thread 0xaacffb70 (LWP 14864)):
#0  0xb52d1784 in ?? () from /lib/libglib-2.0.so.0
#1  0xb52d1ce4 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#2  0xb6e52d27 in QEventDispatcherGlib::processEvents (this=0x8c21408, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#3  0xb6e23abd in QEventLoop::processEvents (this=0xaacff2c0, flags=...) at kernel/qeventloop.cpp:149
#4  0xb6e23d01 in QEventLoop::exec (this=0xaacff2c0, flags=...) at kernel/qeventloop.cpp:201
#5  0xb6d26e6b in QThread::exec (this=0x8cbc918) at thread/qthread.cpp:492
#6  0xb58bfce6 in KDevelop::CompletionWorkerThread::run (this=0x8cbc918) at ../../language/codecompletion/codecompletionmodel.cpp:80
#7  0xb6d29cd3 in QThreadPrivate::start (arg=0x8cbc918) at thread/qthread_unix.cpp:320
#8  0xb5e0bc39 in start_thread (arg=0xaacffb70) at pthread_create.c:304
#9  0xb607296e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 7 (Thread 0xab683b70 (LWP 14865)):
#0  0xb5d63e11 in *__GI_clock_gettime (clock_id=1, tp=0xab683008) at ../sysdeps/unix/clock_gettime.c:116
#1  0xb6d80d25 in do_gettime (frac=0xab683000, sec=0xab682ff8) at tools/qelapsedtimer_unix.cpp:123
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#3  0xb6e53696 in QTimerInfoList::updateCurrentTime (this=0x8c74e5c) at kernel/qeventdispatcher_unix.cpp:339
#4  0xb6e539fa in QTimerInfoList::timerWait (this=0x8c74e5c, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#5  0xb6e52253 in timerSourcePrepareHelper (src=<optimized out>, timeout=0xab68311c) at kernel/qeventdispatcher_glib.cpp:136
#6  0xb6e522ed in timerSourcePrepare (source=0x8c74e28, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#7  0xb52d074e in g_main_context_prepare () from /lib/libglib-2.0.so.0
#8  0xb52d1613 in ?? () from /lib/libglib-2.0.so.0
#9  0xb52d1ce4 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#10 0xb6e52d27 in QEventDispatcherGlib::processEvents (this=0x8c6f140, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#11 0xb6e23abd in QEventLoop::processEvents (this=0xab6832c0, flags=...) at kernel/qeventloop.cpp:149
#12 0xb6e23d01 in QEventLoop::exec (this=0xab6832c0, flags=...) at kernel/qeventloop.cpp:201
#13 0xb6d26e6b in QThread::exec (this=0x8c94fb0) at thread/qthread.cpp:492
#14 0xb58bfce6 in KDevelop::CompletionWorkerThread::run (this=0x8c94fb0) at ../../language/codecompletion/codecompletionmodel.cpp:80
#15 0xb6d29cd3 in QThreadPrivate::start (arg=0x8c94fb0) at thread/qthread_unix.cpp:320
#16 0xb5e0bc39 in start_thread (arg=0xab683b70) at pthread_create.c:304
#17 0xb607296e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 6 (Thread 0xa81ffb70 (LWP 14972)):
#0  0xb7875424 in __kernel_vsyscall ()
#1  0xb5e1020a in __pthread_cond_wait (cond=0xb01e9490, mutex=0xb01e9478) at pthread_cond_wait.c:153
#2  0xb607fa5d in __pthread_cond_wait (cond=0xb01e9490, mutex=0xb01e9478) at forward.c:139
#3  0xb00e5979 in ?? () from /usr/lib/libQtScript.so.4
#4  0xb00e59bf in ?? () from /usr/lib/libQtScript.so.4
#5  0xb5e0bc39 in start_thread (arg=0xa81ffb70) at pthread_create.c:304
#6  0xb607296e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 5 (Thread 0xa5396b70 (LWP 14994)):
#0  0xb5e0e1bb in __pthread_mutex_lock (mutex=0x9c932a4) at pthread_mutex_lock.c:61
#1  0xb607fc26 in pthread_mutex_lock (mutex=0x9c932a4) at forward.c:182
#2  0xb52d0c3a in g_main_context_check () from /lib/libglib-2.0.so.0
#3  0xb52d17fa in ?? () from /lib/libglib-2.0.so.0
#4  0xb52d1ce4 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#5  0xb6e52d27 in QEventDispatcherGlib::processEvents (this=0x9c93220, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#6  0xb6e23abd in QEventLoop::processEvents (this=0xa53962a0, flags=...) at kernel/qeventloop.cpp:149
#7  0xb6e23d01 in QEventLoop::exec (this=0xa53962a0, flags=...) at kernel/qeventloop.cpp:201
#8  0xb6d26e6b in QThread::exec (this=0x9c85260) at thread/qthread.cpp:492
#9  0xb6e045fd in QInotifyFileSystemWatcherEngine::run (this=0x9c85260) at io/qfilesystemwatcher_inotify.cpp:248
#10 0xb6d29cd3 in QThreadPrivate::start (arg=0x9c85260) at thread/qthread_unix.cpp:320
#11 0xb5e0bc39 in start_thread (arg=0xa5396b70) at pthread_create.c:304
#12 0xb607296e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 4 (Thread 0xa45ffb70 (LWP 15004)):
#0  0xb7875424 in __kernel_vsyscall ()
#1  0xb5e1020a in __pthread_cond_wait (cond=0x86dd8e8, mutex=0x86dd8d0) at pthread_cond_wait.c:153
#2  0xb607fa5d in __pthread_cond_wait (cond=0x86dd8e8, mutex=0x86dd8d0) at forward.c:139
#3  0xb6d2a1e0 in wait (time=4294967295, this=0x86dd8d0) at thread/qwaitcondition_unix.cpp:88
#4  QWaitCondition::wait (this=0x86dd840, mutex=0x86cec60, time=4294967295) at thread/qwaitcondition_unix.cpp:160
#5  0xb4e28246 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x86dd828, th=0x96313a8) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#6  0xb4e2ad3b in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x8638af0, th=0x96313a8) at ../../../threadweaver/Weaver/WorkingHardState.cpp:80
#7  0xb4e27e7a in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x86dd828, th=0x96313a8) at ../../../threadweaver/Weaver/WeaverImpl.cpp:356
#8  0xb4e2ae3c in ThreadWeaver::WorkingHardState::applyForWork (this=0x8638af0, th=0x96313a8) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#9  0xb4e27dd3 in ThreadWeaver::WeaverImpl::applyForWork (this=0x86dd828, th=0x96313a8, previous=0x0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351
#10 0xb4e2ae58 in ThreadWeaver::WorkingHardState::applyForWork (this=0x8638af0, th=0x96313a8) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#11 0xb4e27dd3 in ThreadWeaver::WeaverImpl::applyForWork (this=0x86dd828, th=0x96313a8, previous=0x0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351
#12 0xb4e2ae58 in ThreadWeaver::WorkingHardState::applyForWork (this=0x8638af0, th=0x96313a8) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#13 0xb4e27dd3 in ThreadWeaver::WeaverImpl::applyForWork (this=0x86dd828, th=0x96313a8, previous=0x0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351
#14 0xb4e2ae58 in ThreadWeaver::WorkingHardState::applyForWork (this=0x8638af0, th=0x96313a8) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#15 0xb4e27dd3 in ThreadWeaver::WeaverImpl::applyForWork (this=0x86dd828, th=0x96313a8, previous=0xbd50910) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351
#16 0xb4e29974 in ThreadWeaver::ThreadRunHelper::run (this=0xa45ff304, parent=0x86dd828, th=0x96313a8) at ../../../threadweaver/Weaver/Thread.cpp:87
#17 0xb4e29a2a in ThreadWeaver::Thread::run (this=0x96313a8) at ../../../threadweaver/Weaver/Thread.cpp:142
#18 0xb6d29cd3 in QThreadPrivate::start (arg=0x96313a8) at thread/qthread_unix.cpp:320
#19 0xb5e0bc39 in start_thread (arg=0xa45ffb70) at pthread_create.c:304
#20 0xb607296e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 3 (Thread 0xa3dfeb70 (LWP 15005)):
#0  0xb7875424 in __kernel_vsyscall ()
#1  0xb5e1020a in __pthread_cond_wait (cond=0x86dd8e8, mutex=0x86dd8d0) at pthread_cond_wait.c:153
#2  0xb607fa5d in __pthread_cond_wait (cond=0x86dd8e8, mutex=0x86dd8d0) at forward.c:139
#3  0xb6d2a1e0 in wait (time=4294967295, this=0x86dd8d0) at thread/qwaitcondition_unix.cpp:88
#4  QWaitCondition::wait (this=0x86dd840, mutex=0x86cec60, time=4294967295) at thread/qwaitcondition_unix.cpp:160
#5  0xb4e28246 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x86dd828, th=0x95d25b8) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#6  0xb4e2ad3b in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x8638af0, th=0x95d25b8) at ../../../threadweaver/Weaver/WorkingHardState.cpp:80
#7  0xb4e27e7a in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x86dd828, th=0x95d25b8) at ../../../threadweaver/Weaver/WeaverImpl.cpp:356
#8  0xb4e2ae3c in ThreadWeaver::WorkingHardState::applyForWork (this=0x8638af0, th=0x95d25b8) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#9  0xb4e27dd3 in ThreadWeaver::WeaverImpl::applyForWork (this=0x86dd828, th=0x95d25b8, previous=0x998a028) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351
#10 0xb4e29974 in ThreadWeaver::ThreadRunHelper::run (this=0xa3dfe304, parent=0x86dd828, th=0x95d25b8) at ../../../threadweaver/Weaver/Thread.cpp:87
#11 0xb4e29a2a in ThreadWeaver::Thread::run (this=0x95d25b8) at ../../../threadweaver/Weaver/Thread.cpp:142
#12 0xb6d29cd3 in QThreadPrivate::start (arg=0x95d25b8) at thread/qthread_unix.cpp:320
#13 0xb5e0bc39 in start_thread (arg=0xa3dfeb70) at pthread_create.c:304
#14 0xb607296e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 2 (Thread 0xa35fdb70 (LWP 15008)):
#0  0xb7875424 in __kernel_vsyscall ()
#1  0xb5e1020a in __pthread_cond_wait (cond=0xb4e14e90, mutex=0xb4e14e78) at pthread_cond_wait.c:153
#2  0xb607fa5d in __pthread_cond_wait (cond=0xb4e14e90, mutex=0xb4e14e78) at forward.c:139
#3  0xb47f651b in ?? () from /usr/lib/libQtWebKit.so.4
#4  0xb47f663f in ?? () from /usr/lib/libQtWebKit.so.4
#5  0xb5e0bc39 in start_thread (arg=0xa35fdb70) at pthread_create.c:304
#6  0xb607296e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 1 (Thread 0xb2cc0720 (LWP 14789)):
[KCrash Handler]
#7  0x080565f8 in QByteArray::shared_null ()
#8  0xb0251a4d in Kate::TextBuffer::rangesForLine (this=0x9083158, line=136, view=0xa828a1a8, rangesWithAttributeOnly=true) at ../../kate/buffer/katetextbuffer.cpp:752
#9  0xb02f18c6 in KateRenderer::decorationsForLine (this=0xa8289fe8, textLine=..., line=136, selectionsOnly=false, completionHighlight=0x0, completionSelected=false) at ../../kate/render/katerenderer.cpp:342
#10 0xb02f3540 in KateRenderer::layoutLine (this=0xa8289fe8, lineLayout=..., maxwidth=985, cacheLayout=true) at ../../kate/render/katerenderer.cpp:929
#11 0xb02f872a in KateLayoutCache::line (this=0xa822d240, realLine=136, virtualLine=136) at ../../kate/render/katelayoutcache.cpp:314
#12 0xb02f99a1 in KateLayoutCache::updateViewCache (this=0xa822d240, startPos=..., newViewLineCount=47, viewLinesScrolled=3) at ../../kate/render/katelayoutcache.cpp:266
#13 0xb0350fee in doUpdateView (viewLinesScrolled=3, changed=<optimized out>, this=0xa828a6e0) at ../../kate/view/kateviewinternal.cpp:544
#14 KateViewInternal::doUpdateView (this=0xa828a6e0, changed=false, viewLinesScrolled=3) at ../../kate/view/kateviewinternal.cpp:524
#15 0xb035184d in KateViewInternal::updateView (this=0xa828a6e0, changed=false, viewLinesScrolled=3) at ../../kate/view/kateviewinternal.cpp:518
#16 0xb0352d0a in KateViewInternal::scrollPos (this=0xa828a6e0, c=..., force=false, calledExternally=false) at ../../kate/view/kateviewinternal.cpp:471
#17 0xb0352eb2 in KateViewInternal::scrollLines (this=0xa828a6e0, line=90) at ../../kate/view/kateviewinternal.cpp:341
#18 0xb0357514 in KateViewInternal::qt_metacall (this=0xa828a6e0, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0xbfd60788) at ./kateviewinternal.moc:120
#19 0xb6e2ae4d in metacall (argv=0xbfd60788, idx=33, cl=QMetaObject::InvokeMetaMethod, object=0xa828a6e0) at kernel/qmetaobject.cpp:237
#20 QMetaObject::metacall (object=0xa828a6e0, cl=QMetaObject::InvokeMetaMethod, idx=33, argv=0xbfd60788) at kernel/qmetaobject.cpp:232
#21 0xb6e39b90 in QMetaObject::activate (sender=0xa829e3c8, m=0xb6ca5860, local_signal_index=0, argv=0xbfd60788) at kernel/qobject.cpp:3278
#22 0xb6a62195 in QAbstractSlider::valueChanged (this=0xa829e3c8, _t1=90) at .moc/release-shared/moc_qabstractslider.cpp:182
#23 0xb67644ab in QAbstractSlider::setValue (this=0xa829e3c8, value=<optimized out>) at widgets/qabstractslider.cpp:543
#24 0xb67647a0 in QAbstractSlider::triggerAction (this=0xa829e3c8, action=QAbstractSlider::SliderMove) at widgets/qabstractslider.cpp:632
#25 0xb6764ccb in QAbstractSliderPrivate::scrollByDelta (this=0xa829e3f8, orientation=Qt::Vertical, modifiers=..., delta=<optimized out>) at widgets/qabstractslider.cpp:738
#26 0xb68066a1 in QScrollBar::event (this=0xa829e3c8, event=0xbfd61204) at widgets/qscrollbar.cpp:538
#27 0xb63520a4 in notify_helper (e=0xbfd61204, receiver=0xa829e3c8, this=0x8405f28) at kernel/qapplication.cpp:4467
#28 QApplicationPrivate::notify_helper (this=0x8405f28, receiver=0xa829e3c8, e=0xbfd61204) at kernel/qapplication.cpp:4439
#29 0xb6357b46 in QApplication::notify (this=0xa829e3c8, receiver=0xa829e3c8, e=0xbfd61204) at kernel/qapplication.cpp:4083
#30 0xb71df571 in KApplication::notify (this=0xbfd61c80, receiver=0xa829e3c8, event=0xbfd61204) at ../../kdeui/kernel/kapplication.cpp:311
#31 0x08051c6d in _start ()

Reported using DrKonqi
Comment 1 Aleix Pol 2012-01-18 02:10:35 UTC
Can you please try it with a newer KDE/Kate version?
Comment 2 Andreas Cord-Landwehr 2012-01-26 14:01:26 UTC
I cannot reproduce this anymore. (could never reproduce it with KDE SC/Kate 4.7.4)
So it can be closed.
Comment 3 Milian Wolff 2012-05-07 12:19:49 UTC
kate bug, and still valid

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