Bug 314855

Summary: KDevelop suddenly crashed when scrolling a document too fast
Product: [Applications] kdevelop Reporter: Alexey Chernov <4ernov>
Component: generalAssignee: kdevelop-bugs-null
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: 4.4.1   
Target Milestone: 4.3.0   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Alexey Chernov 2013-02-10 21:15:19 UTC
Application: kdevelop (4.4.1)
KDE Platform Version: 4.9.5 (Compiled from sources)
Qt Version: 4.8.4
Operating System: Linux 3.7.1 x86_64

-- Information about the crash:
I was editing a document and scrolled it down pretty fast, KDevelop suddenly crashed on scrolling.

-- Backtrace:
Application: KDevelop (kdevelop), signal: Segmentation fault
Using host libthread_db library "/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f778dd04760 (LWP 1908))]

Thread 9 (Thread 0x7f7764801710 (LWP 1977)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x00007f7789559119 in wait (time=<optimized out>, this=<optimized out>) at thread/qwaitcondition_unix.cpp:84
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x399fa80, time=1000) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f77854cccea in KDevelop::DUChainPrivate::CleanupThread::run (this=0x399fa60) at /usr/src/packages/kdevplatform-1.4.1/language/duchain/duchain.cpp:282
#4  0x00007f7789558864 in QThreadPrivate::start (arg=0x399fa60) at thread/qthread_unix.cpp:338
#5  0x00007f77892aeaca in start_thread (arg=<optimized out>) at pthread_create.c:297
#6  0x00007f77874e858d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 8 (Thread 0x7f7751eeb710 (LWP 2018)):
#0  0x00007fff4b3ffa07 in clock_gettime ()
#1  0x00007f778657205f in *__GI_clock_gettime (clock_id=1, tp=0x7f7751eeabc0) at ../sysdeps/unix/clock_gettime.c:100
#2  0x00007f77895c2b49 in do_gettime (frac=<optimized out>, sec=<optimized out>) at tools/qelapsedtimer_unix.cpp:123
#3  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#4  0x00007f77896c4997 in updateCurrentTime (this=<optimized out>) at kernel/qeventdispatcher_unix.cpp:354
#5  QTimerInfoList::timerWait (this=0x1, tm=...) at kernel/qeventdispatcher_unix.cpp:461
#6  0x00007f77896c0df6 in timerSourcePrepareHelper (timeout=<optimized out>, src=<optimized out>) at kernel/qeventdispatcher_glib.cpp:136
#7  timerSourcePrepare (source=<optimized out>, timeout=0x7f7751eeac8c) at kernel/qeventdispatcher_glib.cpp:169
#8  0x00007f77810bb8e1 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#9  0x00007f77810bcfd3 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#10 0x00007f77810bd177 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#11 0x00007f77896c0be6 in QEventDispatcherGlib::processEvents (this=0x430d860, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#12 0x00007f7789685b52 in QEventLoop::processEvents (this=<optimized out>, flags=<error reading variable: DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjunction with DW_OP_piece or DW_OP_bit_piece.>) at kernel/qeventloop.cpp:149
#13 0x00007f7789685f7d in QEventLoop::exec (this=0x7f7751eeae00, flags=<error reading variable: DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjunction with DW_OP_piece or DW_OP_bit_piece.>) at kernel/qeventloop.cpp:204
#14 0x00007f77895553e8 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#15 0x00007f7789558864 in QThreadPrivate::start (arg=0x44728f0) at thread/qthread_unix.cpp:338
#16 0x00007f77892aeaca in start_thread (arg=<optimized out>) at pthread_create.c:297
#17 0x00007f77874e858d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 7 (Thread 0x7f77516ea710 (LWP 2019)):
#0  idleTimerSourcePrepare (source=0x445f270, timeout=0x7f77516e9c8c) at kernel/qeventdispatcher_glib.cpp:206
#1  0x00007f77810bb8e1 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#2  0x00007f77810bcfd3 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#3  0x00007f77810bd177 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#4  0x00007f77896c0be6 in QEventDispatcherGlib::processEvents (this=0x446d970, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007f7789685b52 in QEventLoop::processEvents (this=<optimized out>, flags=<error reading variable: DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjunction with DW_OP_piece or DW_OP_bit_piece.>) at kernel/qeventloop.cpp:149
#6  0x00007f7789685f7d in QEventLoop::exec (this=0x7f77516e9e00, flags=<error reading variable: DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjunction with DW_OP_piece or DW_OP_bit_piece.>) at kernel/qeventloop.cpp:204
#7  0x00007f77895553e8 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#8  0x00007f7789558864 in QThreadPrivate::start (arg=0x43fd190) at thread/qthread_unix.cpp:338
#9  0x00007f77892aeaca in start_thread (arg=<optimized out>) at pthread_create.c:297
#10 0x00007f77874e858d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 6 (Thread 0x7f76d09b2710 (LWP 2028)):
#0  0x00007f77874df273 in *__GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f77810bd0a5 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#2  0x00007f77810bd177 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f77896c0be6 in QEventDispatcherGlib::processEvents (this=0x63d2170, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f7789685b52 in QEventLoop::processEvents (this=<optimized out>, flags=<error reading variable: DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjunction with DW_OP_piece or DW_OP_bit_piece.>) at kernel/qeventloop.cpp:149
#5  0x00007f7789685f7d in QEventLoop::exec (this=0x7f76d09b1dc0, flags=<error reading variable: DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjunction with DW_OP_piece or DW_OP_bit_piece.>) at kernel/qeventloop.cpp:204
#6  0x00007f77895553e8 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#7  0x00007f778965cf90 in QInotifyFileSystemWatcherEngine::run (this=0x63e42f0) at io/qfilesystemwatcher_inotify.cpp:256
#8  0x00007f7789558864 in QThreadPrivate::start (arg=0x63e42f0) at thread/qthread_unix.cpp:338
#9  0x00007f77892aeaca in start_thread (arg=<optimized out>) at pthread_create.c:297
#10 0x00007f77874e858d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 5 (Thread 0x7f76cd367710 (LWP 2048)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f777fdf3e64 in WTF::TCMalloc_PageHeap::scavengerThread() () from /usr/lib/libQtWebKit.so.4
#2  0x00007f777fdf3f99 in WTF::TCMalloc_PageHeap::runScavengerThread(void*) () from /usr/lib/libQtWebKit.so.4
#3  0x00007f77892aeaca in start_thread (arg=<optimized out>) at pthread_create.c:297
#4  0x00007f77874e858d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 4 (Thread 0x7f76cca66710 (LWP 2049)):
#0  0x00007fff4b3ffa07 in clock_gettime ()
#1  0x00007f778657205f in *__GI_clock_gettime (clock_id=1, tp=0x7f76cca65bc0) at ../sysdeps/unix/clock_gettime.c:100
#2  0x00007f77895c2b49 in do_gettime (frac=<optimized out>, sec=<optimized out>) at tools/qelapsedtimer_unix.cpp:123
#3  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#4  0x00007f77896c4997 in updateCurrentTime (this=<optimized out>) at kernel/qeventdispatcher_unix.cpp:354
#5  QTimerInfoList::timerWait (this=0x1, tm=...) at kernel/qeventdispatcher_unix.cpp:461
#6  0x00007f77896c0df6 in timerSourcePrepareHelper (timeout=<optimized out>, src=<optimized out>) at kernel/qeventdispatcher_glib.cpp:136
#7  timerSourcePrepare (source=<optimized out>, timeout=0x7f76cca65c8c) at kernel/qeventdispatcher_glib.cpp:169
#8  0x00007f77810bb8e1 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#9  0x00007f77810bcfd3 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#10 0x00007f77810bd177 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#11 0x00007f77896c0be6 in QEventDispatcherGlib::processEvents (this=0x4f98880, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#12 0x00007f7789685b52 in QEventLoop::processEvents (this=<optimized out>, flags=<error reading variable: DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjunction with DW_OP_piece or DW_OP_bit_piece.>) at kernel/qeventloop.cpp:149
#13 0x00007f7789685f7d in QEventLoop::exec (this=0x7f76cca65e00, flags=<error reading variable: DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjunction with DW_OP_piece or DW_OP_bit_piece.>) at kernel/qeventloop.cpp:204
#14 0x00007f77895553e8 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#15 0x00007f7789558864 in QThreadPrivate::start (arg=0x4f96f20) at thread/qthread_unix.cpp:338
#16 0x00007f77892aeaca in start_thread (arg=<optimized out>) at pthread_create.c:297
#17 0x00007f77874e858d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 3 (Thread 0x7f76865c3710 (LWP 2507)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f77895591b3 in wait (time=<optimized out>, this=<optimized out>) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x2990d10, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f778c0b16c1 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x2abdfa0, th=0x817ad00) at /usr/src/packages/kde4/4.9.5/kdelibs-4.9.5/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f778c0b5b40 in ThreadWeaver::WorkingHardState::applyForWork (this=0x2a5e7e0, th=0x817ad00) at /usr/src/packages/kde4/4.9.5/kdelibs-4.9.5/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f778c0b5b59 in ThreadWeaver::WorkingHardState::applyForWork (this=0x2a5e7e0, th=0x817ad00) at /usr/src/packages/kde4/4.9.5/kdelibs-4.9.5/threadweaver/Weaver/WorkingHardState.cpp:74
#6  0x00007f778c0b3f24 in ThreadWeaver::ThreadRunHelper::run (this=0x7f76865c2e10, parent=0x2abdfa0, th=0x817ad00) at /usr/src/packages/kde4/4.9.5/kdelibs-4.9.5/threadweaver/Weaver/Thread.cpp:87
#7  0x00007f778c0b4024 in ThreadWeaver::Thread::run (this=0x817ad00) at /usr/src/packages/kde4/4.9.5/kdelibs-4.9.5/threadweaver/Weaver/Thread.cpp:142
#8  0x00007f7789558864 in QThreadPrivate::start (arg=0x817ad00) at thread/qthread_unix.cpp:338
#9  0x00007f77892aeaca in start_thread (arg=<optimized out>) at pthread_create.c:297
#10 0x00007f77874e858d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7f7685dc2710 (LWP 2508)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f77895591b3 in wait (time=<optimized out>, this=<optimized out>) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x2990d10, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f778c0b16c1 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x2abdfa0, th=0x7f76c8e8d1c0) at /usr/src/packages/kde4/4.9.5/kdelibs-4.9.5/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f778c0b5b40 in ThreadWeaver::WorkingHardState::applyForWork (this=0x2a5e7e0, th=0x7f76c8e8d1c0) at /usr/src/packages/kde4/4.9.5/kdelibs-4.9.5/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f778c0b3f24 in ThreadWeaver::ThreadRunHelper::run (this=0x7f7685dc1e10, parent=0x2abdfa0, th=0x7f76c8e8d1c0) at /usr/src/packages/kde4/4.9.5/kdelibs-4.9.5/threadweaver/Weaver/Thread.cpp:87
#6  0x00007f778c0b4024 in ThreadWeaver::Thread::run (this=0x7f76c8e8d1c0) at /usr/src/packages/kde4/4.9.5/kdelibs-4.9.5/threadweaver/Weaver/Thread.cpp:142
#7  0x00007f7789558864 in QThreadPrivate::start (arg=0x7f76c8e8d1c0) at thread/qthread_unix.cpp:338
#8  0x00007f77892aeaca in start_thread (arg=<optimized out>) at pthread_create.c:297
#9  0x00007f77874e858d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7f778dd04760 (LWP 1908)):
[KCrash Handler]
#6  0x00007f77658ee418 in Kate::TextBuffer::rangesForLine (this=<optimized out>, line=261, view=0xabb8060, rangesWithAttributeOnly=<optimized out>) at /usr/src/packages/kde4/4.9.5/kate-4.9.5/part/buffer/katetextbuffer.cpp:820
#7  0x00007f776598b5c8 in KateRenderer::decorationsForLine (this=0xac96e30, textLine=..., line=<optimized out>, selectionsOnly=<optimized out>, completionHighlight=0x0, completionSelected=false) at /usr/src/packages/kde4/4.9.5/kate-4.9.5/part/render/katerenderer.cpp:333
#8  0x00007f776598c32d in KateRenderer::layoutLine (this=0xac96e30, lineLayout=..., maxwidth=-1, cacheLayout=<optimized out>) at /usr/src/packages/kde4/4.9.5/kate-4.9.5/part/render/katerenderer.cpp:895
#9  0x00007f77659922a0 in KateLayoutCache::line (this=0xac96d50, realLine=261, virtualLine=<optimized out>) at /usr/src/packages/kde4/4.9.5/kate-4.9.5/part/render/katelayoutcache.cpp:318
#10 0x00007f7765992ef1 in KateLayoutCache::updateViewCache (this=0xac96d50, startPos=..., newViewLineCount=55, viewLinesScrolled=<optimized out>) at /usr/src/packages/kde4/4.9.5/kate-4.9.5/part/render/katelayoutcache.cpp:270
#11 0x00007f77659de4e9 in KateViewInternal::doUpdateView (this=0xabb88b0, changed=<optimized out>, viewLinesScrolled=3) at /usr/src/packages/kde4/4.9.5/kate-4.9.5/part/view/kateviewinternal.cpp:554
#12 0x00007f77659deb7c in KateViewInternal::updateView (this=0x7f76802d6480, changed=48, viewLinesScrolled=-2054797920) at /usr/src/packages/kde4/4.9.5/kate-4.9.5/part/view/kateviewinternal.cpp:528
#13 0x00007f77659e027e in KateViewInternal::scrollPos (this=0xabb88b0, c=..., force=<optimized out>, calledExternally=false) at /usr/src/packages/kde4/4.9.5/kate-4.9.5/part/view/kateviewinternal.cpp:481
#14 0x00007f77659e0439 in KateViewInternal::scrollViewLines (this=0xabb88b0, offset=3) at /usr/src/packages/kde4/4.9.5/kate-4.9.5/part/view/kateviewinternal.cpp:358
#15 0x00007f77659e4425 in KateViewInternal::wheelEvent (this=0xabb88b0, e=0x7fff4b265f10) at /usr/src/packages/kde4/4.9.5/kate-4.9.5/part/view/kateviewinternal.cpp:3239
#16 0x00007f7788651950 in QWidget::event (this=0xabb88b0, event=0x7fff4b265f10) at kernel/qwidget.cpp:8394
#17 0x00007f77885e89e0 in QApplicationPrivate::notify_helper (this=0x2628900, receiver=0xabb88b0, e=0x7fff4b265f10) at kernel/qapplication.cpp:4562
#18 0x00007f77885f6bcb in QApplication::notify (this=<optimized out>, receiver=<optimized out>, e=0x7fff4b265f10) at kernel/qapplication.cpp:4160
#19 0x00007f7789efcdd1 in KApplication::notify (this=0x7fff4b267090, receiver=0xabb88b0, event=0x7fff4b265f10) at /usr/src/packages/kde4/4.9.5/kdelibs-4.9.5/kdeui/kernel/kapplication.cpp:311
#20 0x00007f778968703b in QCoreApplication::notifyInternal (this=0x7fff4b267090, receiver=0xabb88b0, event=0x7fff4b265f10) at kernel/qcoreapplication.cpp:946
#21 0x00007f7788675197 in sendSpontaneousEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:234
#22 QETWidget::translateWheelEvent (this=<optimized out>, global_x=<optimized out>, global_y=<optimized out>, delta=<optimized out>, buttons=<error reading variable: DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjunction with DW_OP_piece or DW_OP_bit_piece.>, modifiers=<error reading variable: DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjunction with DW_OP_piece or DW_OP_bit_piece.>, orient=Qt::Vertical) at kernel/qapplication_x11.cpp:4554
#23 0x00007f778868cbbf in QETWidget::translateMouseEvent (this=0x9c04190, event=0x7fff4b266990) at kernel/qapplication_x11.cpp:4331
#24 0x00007f778868ad9c in QApplication::x11ProcessEvent (this=<optimized out>, event=0x7fff4b266990) at kernel/qapplication_x11.cpp:3639
#25 0x00007f77886b7c92 in x11EventSourceDispatch (s=0x262a500, callback=<optimized out>, user_data=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#26 0x00007f77810bcc70 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#27 0x00007f77810bd10d in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#28 0x00007f77810bd177 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#29 0x00007f77896c0be6 in QEventDispatcherGlib::processEvents (this=0x25ce950, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#30 0x00007f77886b759e in QGuiEventDispatcherGlib::processEvents (this=0x7f76802d6480, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#31 0x00007f7789685b52 in QEventLoop::processEvents (this=<optimized out>, flags=<error reading variable: DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjunction with DW_OP_piece or DW_OP_bit_piece.>) at kernel/qeventloop.cpp:149
#32 0x00007f7789685f7d in QEventLoop::exec (this=0x7fff4b266c80, flags=<error reading variable: DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjunction with DW_OP_piece or DW_OP_bit_piece.>) at kernel/qeventloop.cpp:204
#33 0x00007f778968d069 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#34 0x000000000040ea3d in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/packages/kdevelop-4.4.1/app/main.cpp:519

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

Possible duplicates by query: bug 310702, bug 302760, bug 302540, bug 298967.

Reported using DrKonqi
Comment 1 Kevin Funk 2013-02-10 21:34:05 UTC

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