Bug 271935

Summary: kdevelop crash while editing file
Product: [Applications] kdevelop Reporter: Matthew Woehlke <mwoehlke.floss>
Component: generalAssignee: kdevelop-bugs-null
Status: RESOLVED WAITINGFORINFO    
Severity: crash CC: aleixpol, Ekkehard.Blanz, mwoehlke.floss
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: 4.2.0   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Matthew Woehlke 2011-04-28 19:19:35 UTC
Application: kdevelop (4.2.2)
KDE Platform Version: 4.6.2 (4.6.2)
Qt Version: 4.7.2
Operating System: Linux 2.6.35.11-83.fc14.x86_64 x86_64
Distribution (Platform): Fedora RPMs

-- Information about the crash:
KDevelop crashed while I was editing a file. All I was doing at the time was replacing empty lines with '//-----------------' (more '-'s but you get the idea). Shift+Down to select a line, Ctrl+V to paste, down arrow a bunch to the next spot, and repeat.

I've experienced this sort of 'crash while typing with no obvious cause' a few times before, but didn't check the backtrace previously to know for sure if it is the same.

From the backtrace, the problem may or may not be in katepart. (The crash seems to be in katepart, but updating ranges which I believe come from KDevelop?)

The crash can be reproduced some of the time.

-- Backtrace:
Application: KDevelop (kdevelop), signal: Segmentation fault
82	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7f1c3d735840 (LWP 3141))]

Thread 11 (Thread 0x7f1c30575700 (LWP 3142)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:216
#1  0x000000369ba744e2 in wait (this=<value optimized out>, mutex=0x1b57260, time=1000) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x1b57260, time=1000) at thread/qwaitcondition_unix.cpp:160
#3  0x00000032706ae7fb in KDevelop::DUChainPrivate::CleanupThread::run() () from /usr/lib64/libkdevplatformlanguage.so.3
#4  0x000000369ba73e95 in QThreadPrivate::start (arg=0x1b57240) at thread/qthread_unix.cpp:320
#5  0x0000003ce5a06ccb in start_thread (arg=0x7f1c30575700) at pthread_create.c:301
#6  0x0000003ce52e0c2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 10 (Thread 0x7f1c1bfe0700 (LWP 3223)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00000036a3592bb4 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x36a38aad80) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x00000036a3592be9 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0x36a38b8e54) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x0000003ce5a06ccb in start_thread (arg=0x7f1c1bfe0700) at pthread_create.c:301
#4  0x0000003ce52e0c2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 9 (Thread 0x7f1c18698700 (LWP 3233)):
#0  0x0000003ce52d7283 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x0000003ce7a42374 in g_main_context_poll (context=0x7f1c080009b0, block=1, dispatch=1, self=<value optimized out>) at gmain.c:3093
#2  g_main_context_iterate (context=0x7f1c080009b0, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2775
#3  0x0000003ce7a428ad in g_main_context_iteration (context=0x7f1c080009b0, may_block=1) at gmain.c:2843
#4  0x000000369bb883a6 in QEventDispatcherGlib::processEvents (this=0x7f1c080008c0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#5  0x000000369bb5c532 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x000000369bb5c77c in QEventLoop::exec (this=0x7f1c18697d40, flags=...) at kernel/qeventloop.cpp:201
#7  0x000000369ba715f4 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:492
#8  0x000000369ba73e95 in QThreadPrivate::start (arg=0x31ee400) at thread/qthread_unix.cpp:320
#9  0x0000003ce5a06ccb in start_thread (arg=0x7f1c18698700) at pthread_create.c:301
#10 0x0000003ce52e0c2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 8 (Thread 0x7f1c18e99700 (LWP 3234)):
#0  0x0000003ce52d7283 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x0000003ce7a42374 in g_main_context_poll (context=0x7f1c100009b0, block=1, dispatch=1, self=<value optimized out>) at gmain.c:3093
#2  g_main_context_iterate (context=0x7f1c100009b0, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2775
#3  0x0000003ce7a428ad in g_main_context_iteration (context=0x7f1c100009b0, may_block=1) at gmain.c:2843
#4  0x000000369bb883a6 in QEventDispatcherGlib::processEvents (this=0x7f1c100008c0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#5  0x000000369bb5c532 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x000000369bb5c77c in QEventLoop::exec (this=0x7f1c18e98d40, flags=...) at kernel/qeventloop.cpp:201
#7  0x000000369ba715f4 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:492
#8  0x000000369ba73e95 in QThreadPrivate::start (arg=0x31ee0b0) at thread/qthread_unix.cpp:320
#9  0x0000003ce5a06ccb in start_thread (arg=0x7f1c18e99700) at pthread_create.c:301
#10 0x0000003ce52e0c2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 7 (Thread 0x7f1c0f445700 (LWP 3267)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x0000003272728944 in scavengerThread (context=0x3272f458e0) at wtf/FastMalloc.cpp:2378
#2  WTF::TCMalloc_PageHeap::runScavengerThread (context=0x3272f458e0) at wtf/FastMalloc.cpp:1497
#3  0x0000003ce5a06ccb in start_thread (arg=0x7f1c0f445700) at pthread_create.c:301
#4  0x0000003ce52e0c2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 6 (Thread 0x7f1c0d77e700 (LWP 3268)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x000000369ba7457b in wait (this=<value optimized out>, mutex=0xbec650, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0xbec650, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00000037b9e0a0b4 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0xc523e0, th=0x3d27920) at /usr/src/debug/kdelibs-4.6.2/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00000037b9e0c743 in ThreadWeaver::WorkingHardState::applyForWork (this=0xbf39d0, th=0x3d27920) at /usr/src/debug/kdelibs-4.6.2/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00000037b9e0c75c in ThreadWeaver::WorkingHardState::applyForWork (this=0xbf39d0, th=0x3d27920) at /usr/src/debug/kdelibs-4.6.2/threadweaver/Weaver/WorkingHardState.cpp:74
#6  0x00000037b9e0b52f in ThreadWeaver::ThreadRunHelper::run (this=0x7f1c0d77dd50, parent=0xc523e0, th=0x3d27920) at /usr/src/debug/kdelibs-4.6.2/threadweaver/Weaver/Thread.cpp:87
#7  0x00000037b9e0b5b8 in ThreadWeaver::Thread::run (this=0x3d27920) at /usr/src/debug/kdelibs-4.6.2/threadweaver/Weaver/Thread.cpp:142
#8  0x000000369ba73e95 in QThreadPrivate::start (arg=0x3d27920) at thread/qthread_unix.cpp:320
#9  0x0000003ce5a06ccb in start_thread (arg=0x7f1c0d77e700) at pthread_create.c:301
#10 0x0000003ce52e0c2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 5 (Thread 0x7f1c0cf7d700 (LWP 3269)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x000000369ba7457b in wait (this=<value optimized out>, mutex=0xbec650, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0xbec650, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00000037b9e0a0b4 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0xc523e0, th=0x263ab60) at /usr/src/debug/kdelibs-4.6.2/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00000037b9e0c743 in ThreadWeaver::WorkingHardState::applyForWork (this=0xbf39d0, th=0x263ab60) at /usr/src/debug/kdelibs-4.6.2/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00000037b9e0c75c in ThreadWeaver::WorkingHardState::applyForWork (this=0xbf39d0, th=0x263ab60) at /usr/src/debug/kdelibs-4.6.2/threadweaver/Weaver/WorkingHardState.cpp:74
#6  0x00000037b9e0c75c in ThreadWeaver::WorkingHardState::applyForWork (this=0xbf39d0, th=0x263ab60) at /usr/src/debug/kdelibs-4.6.2/threadweaver/Weaver/WorkingHardState.cpp:74
#7  0x00000037b9e0c75c in ThreadWeaver::WorkingHardState::applyForWork (this=0xbf39d0, th=0x263ab60) at /usr/src/debug/kdelibs-4.6.2/threadweaver/Weaver/WorkingHardState.cpp:74
#8  0x00000037b9e0c75c in ThreadWeaver::WorkingHardState::applyForWork (this=0xbf39d0, th=0x263ab60) at /usr/src/debug/kdelibs-4.6.2/threadweaver/Weaver/WorkingHardState.cpp:74
#9  0x00000037b9e0b52f in ThreadWeaver::ThreadRunHelper::run (this=0x7f1c0cf7cd50, parent=0xc523e0, th=0x263ab60) at /usr/src/debug/kdelibs-4.6.2/threadweaver/Weaver/Thread.cpp:87
#10 0x00000037b9e0b5b8 in ThreadWeaver::Thread::run (this=0x263ab60) at /usr/src/debug/kdelibs-4.6.2/threadweaver/Weaver/Thread.cpp:142
#11 0x000000369ba73e95 in QThreadPrivate::start (arg=0x263ab60) at thread/qthread_unix.cpp:320
#12 0x0000003ce5a06ccb in start_thread (arg=0x7f1c0cf7d700) at pthread_create.c:301
#13 0x0000003ce52e0c2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 4 (Thread 0x7f1c03fff700 (LWP 3270)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x000000369ba7457b in wait (this=<value optimized out>, mutex=0xbec650, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0xbec650, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00000037b9e0a0b4 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0xc523e0, th=0x7f1c04001f30) at /usr/src/debug/kdelibs-4.6.2/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00000037b9e0c743 in ThreadWeaver::WorkingHardState::applyForWork (this=0xbf39d0, th=0x7f1c04001f30) at /usr/src/debug/kdelibs-4.6.2/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00000037b9e0c75c in ThreadWeaver::WorkingHardState::applyForWork (this=0xbf39d0, th=0x7f1c04001f30) at /usr/src/debug/kdelibs-4.6.2/threadweaver/Weaver/WorkingHardState.cpp:74
#6  0x00000037b9e0c75c in ThreadWeaver::WorkingHardState::applyForWork (this=0xbf39d0, th=0x7f1c04001f30) at /usr/src/debug/kdelibs-4.6.2/threadweaver/Weaver/WorkingHardState.cpp:74
#7  0x00000037b9e0b52f in ThreadWeaver::ThreadRunHelper::run (this=0x7f1c03ffed50, parent=0xc523e0, th=0x7f1c04001f30) at /usr/src/debug/kdelibs-4.6.2/threadweaver/Weaver/Thread.cpp:87
#8  0x00000037b9e0b5b8 in ThreadWeaver::Thread::run (this=0x7f1c04001f30) at /usr/src/debug/kdelibs-4.6.2/threadweaver/Weaver/Thread.cpp:142
#9  0x000000369ba73e95 in QThreadPrivate::start (arg=0x7f1c04001f30) at thread/qthread_unix.cpp:320
#10 0x0000003ce5a06ccb in start_thread (arg=0x7f1c03fff700) at pthread_create.c:301
#11 0x0000003ce52e0c2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 3 (Thread 0x7f1c037fe700 (LWP 3271)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x000000369ba7457b in wait (this=<value optimized out>, mutex=0xbec650, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0xbec650, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00000037b9e0a0b4 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0xc523e0, th=0x7f1bfc001f30) at /usr/src/debug/kdelibs-4.6.2/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00000037b9e0c743 in ThreadWeaver::WorkingHardState::applyForWork (this=0xbf39d0, th=0x7f1bfc001f30) at /usr/src/debug/kdelibs-4.6.2/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00000037b9e0c75c in ThreadWeaver::WorkingHardState::applyForWork (this=0xbf39d0, th=0x7f1bfc001f30) at /usr/src/debug/kdelibs-4.6.2/threadweaver/Weaver/WorkingHardState.cpp:74
#6  0x00000037b9e0c75c in ThreadWeaver::WorkingHardState::applyForWork (this=0xbf39d0, th=0x7f1bfc001f30) at /usr/src/debug/kdelibs-4.6.2/threadweaver/Weaver/WorkingHardState.cpp:74
#7  0x00000037b9e0c75c in ThreadWeaver::WorkingHardState::applyForWork (this=0xbf39d0, th=0x7f1bfc001f30) at /usr/src/debug/kdelibs-4.6.2/threadweaver/Weaver/WorkingHardState.cpp:74
#8  0x00000037b9e0b52f in ThreadWeaver::ThreadRunHelper::run (this=0x7f1c037fdd50, parent=0xc523e0, th=0x7f1bfc001f30) at /usr/src/debug/kdelibs-4.6.2/threadweaver/Weaver/Thread.cpp:87
#9  0x00000037b9e0b5b8 in ThreadWeaver::Thread::run (this=0x7f1bfc001f30) at /usr/src/debug/kdelibs-4.6.2/threadweaver/Weaver/Thread.cpp:142
#10 0x000000369ba73e95 in QThreadPrivate::start (arg=0x7f1bfc001f30) at thread/qthread_unix.cpp:320
#11 0x0000003ce5a06ccb in start_thread (arg=0x7f1c037fe700) at pthread_create.c:301
#12 0x0000003ce52e0c2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7f1c02ffd700 (LWP 3272)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x000000369ba7457b in wait (this=<value optimized out>, mutex=0xbec650, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0xbec650, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00000037b9e0a0b4 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0xc523e0, th=0x463e900) at /usr/src/debug/kdelibs-4.6.2/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00000037b9e0c743 in ThreadWeaver::WorkingHardState::applyForWork (this=0xbf39d0, th=0x463e900) at /usr/src/debug/kdelibs-4.6.2/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00000037b9e0b52f in ThreadWeaver::ThreadRunHelper::run (this=0x7f1c02ffcd50, parent=0xc523e0, th=0x463e900) at /usr/src/debug/kdelibs-4.6.2/threadweaver/Weaver/Thread.cpp:87
#6  0x00000037b9e0b5b8 in ThreadWeaver::Thread::run (this=0x463e900) at /usr/src/debug/kdelibs-4.6.2/threadweaver/Weaver/Thread.cpp:142
#7  0x000000369ba73e95 in QThreadPrivate::start (arg=0x463e900) at thread/qthread_unix.cpp:320
#8  0x0000003ce5a06ccb in start_thread (arg=0x7f1c02ffd700) at pthread_create.c:301
#9  0x0000003ce52e0c2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7f1c3d735840 (LWP 3141)):
[KCrash Handler]
#6  0x00007f1c31bc6c88 in Kate::TextBuffer::rangesForLine (this=<value optimized out>, line=577, view=0x44369e0, rangesWithAttributeOnly=false) at /usr/src/debug/kdelibs-4.6.2/kate/buffer/katetextbuffer.cpp:752
#7  0x00007f1c31c9cbae in KateView::updateRangesIn (this=0x44369e0, activationType=KTextEditor::Attribute::ActivateCaretIn) at /usr/src/debug/kdelibs-4.6.2/kate/view/kateview.cpp:2767
#8  0x00007f1c31cad24c in KateViewInternal::updateCursor (this=0x3d48c20, newCursor=<value optimized out>, force=<value optimized out>, center=<value optimized out>, calledExternally=false) at /usr/src/debug/kdelibs-4.6.2/kate/view/kateviewinternal.cpp:1853
#9  0x00007f1c31cb234a in KateViewInternal::cursorDown (this=0x3d48c20, sel=false) at /usr/src/debug/kdelibs-4.6.2/kate/view/kateviewinternal.cpp:1443
#10 0x00007f1c31c9dcad in KateView::qt_metacall (this=0x44369e0, _c=QMetaObject::InvokeMetaMethod, _id=68, _a=0x7fff44e4e8f0) at /usr/src/debug/kdelibs-4.6.2/x86_64-redhat-linux-gnu/kate/kateview.moc:392
#11 0x000000369bb71acf in QMetaObject::activate (sender=0x3e40350, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff44e4e8f0) at kernel/qobject.cpp:3278
#12 0x000000369d3b1662 in QAction::triggered (this=<value optimized out>, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#13 0x000000369d3b185a in QAction::activate (this=0x3e40350, event=<value optimized out>) at kernel/qaction.cpp:1257
#14 0x000000369d3b19d7 in QAction::event (this=<value optimized out>, e=<value optimized out>) at kernel/qaction.cpp:1183
#15 0x000000326b35daad in KAction::event (this=<value optimized out>, event=0x7fff44e4efc0) at /usr/src/debug/kdelibs-4.6.2/kdeui/actions/kaction.cpp:131
#16 0x000000369d3b7cd4 in QApplicationPrivate::notify_helper (this=0x8db490, receiver=0x3e40350, e=0x7fff44e4efc0) at kernel/qapplication.cpp:4462
#17 0x000000369d3bc88a in QApplication::notify (this=<value optimized out>, receiver=0x3e40350, e=0x7fff44e4efc0) at kernel/qapplication.cpp:4341
#18 0x000000326b43ff96 in KApplication::notify (this=0x7fff44e50820, receiver=0x3e40350, event=0x7fff44e4efc0) at /usr/src/debug/kdelibs-4.6.2/kdeui/kernel/kapplication.cpp:311
#19 0x0000000000404d39 in KDevelopApplication::notify (this=0x7fff44e50820, receiver=0x3e40350, event=0x7fff44e4efc0) at /usr/src/debug/kdevelop-4.2.2/app/main.cpp:90
#20 0x000000369bb5d19c in QCoreApplication::notifyInternal (this=0x7fff44e50820, receiver=0x3e40350, event=0x7fff44e4efc0) at kernel/qcoreapplication.cpp:731
#21 0x000000369d3ea410 in sendEvent (this=<value optimized out>, e=0x7fff44e4f600) at ../../src/corelib/kernel/qcoreapplication.h:215
#22 QShortcutMap::dispatchEvent (this=<value optimized out>, e=0x7fff44e4f600) at kernel/qshortcutmap.cpp:879
#23 0x000000369d3eb918 in QShortcutMap::tryShortcutEvent (this=0x8db5b8, o=<value optimized out>, e=0x7fff44e4f600) at kernel/qshortcutmap.cpp:364
#24 0x000000369d3be43c in QApplication::notify (this=0x7fff44e50820, receiver=0x3d48c20, e=0x7fff44e4f600) at kernel/qapplication.cpp:3904
#25 0x000000326b43ff96 in KApplication::notify (this=0x7fff44e50820, receiver=0x3d48c20, event=0x7fff44e4f600) at /usr/src/debug/kdelibs-4.6.2/kdeui/kernel/kapplication.cpp:311
#26 0x0000000000404d39 in KDevelopApplication::notify (this=0x7fff44e50820, receiver=0x3d48c20, event=0x7fff44e4f600) at /usr/src/debug/kdevelop-4.2.2/app/main.cpp:90
#27 0x000000369bb5d19c in QCoreApplication::notifyInternal (this=0x7fff44e50820, receiver=0x3d48c20, event=0x7fff44e4f600) at kernel/qcoreapplication.cpp:731
#28 0x000000369d4591ca in QKeyMapper::sendKeyEvent (keyWidget=0x3d48c20, grab=<value optimized out>, type=QEvent::KeyPress, code=16777237, modifiers=<value optimized out>, text=..., autorepeat=false, count=1, nativeScanCode=116, nativeVirtualKey=65364, nativeModifiers=16) at kernel/qkeymapper_x11.cpp:1866
#29 0x000000369d45964d in QKeyMapperPrivate::translateKeyEvent (this=<value optimized out>, keyWidget=0x3d48c20, event=<value optimized out>, grab=false) at kernel/qkeymapper_x11.cpp:1836
#30 0x000000369d4359ec in QApplication::x11ProcessEvent (this=0x7fff44e50820, event=0x7fff44e501d0) at kernel/qapplication_x11.cpp:3480
#31 0x000000369d45d656 in x11EventSourceDispatch (s=0x8deb70, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:148
#32 0x0000003ce7a41e33 in g_main_dispatch (context=0x8ddd20) at gmain.c:2149
#33 g_main_context_dispatch (context=0x8ddd20) at gmain.c:2702
#34 0x0000003ce7a42610 in g_main_context_iterate (context=0x8ddd20, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2780
#35 0x0000003ce7a428ad in g_main_context_iteration (context=0x8ddd20, may_block=1) at gmain.c:2843
#36 0x000000369bb8834f in QEventDispatcherGlib::processEvents (this=0x8db0c0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#37 0x000000369d45d35e in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:207
#38 0x000000369bb5c532 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#39 0x000000369bb5c77c in QEventLoop::exec (this=0x7fff44e504e0, flags=...) at kernel/qeventloop.cpp:201
#40 0x000000369bb60c3b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#41 0x000000000040b57b in main (argc=<value optimized out>, argv=0x7fff44e526c8) at /usr/src/debug/kdevelop-4.2.2/app/main.cpp:467

Reported using DrKonqi
Comment 1 Matthew Woehlke 2011-04-28 19:41:27 UTC
Update: it is definitely reproducible in some cases (just had it happen again, same stack trace), doing almost exactly the same thing except using triple-click to select lines before paste (so no cursor movement except the first click).

Possible method to reproduce:
- Put a comment on the clipboard, e.g. '//----------------'
- Open a medium-large C++ source file (say 1k+ lines)
- Triple-click to select first blank line
- Paste (Ctrl+V)
- Repeat above two steps

That said, I just went through almost a dozen files with this procedure with no hiccups. It may require larger files, or may be somehow related to the file contents (though it was two different files I've seen this happen with). Possibly it happens if katepart is still parsing one update when the second one is triggered? (...i.e. just needs a really large file, and possibly changes being made toward the beginning.)
Comment 2 Aleix Pol 2012-01-18 01:50:22 UTC
Is it still reproducible with a newer Kate Part?
Comment 3 Matthew Woehlke 2012-01-18 01:58:40 UTC
Hmm... can't say I've seen it happen in a while. (Also not sure I've been doing the sorts of edits that we're causing it, but gave the steps in comment #2 a whirl, and nothing...)

So I guess I'll close it, and reopen / refile if it shows up again.

Thanks.
Comment 4 Matthew Woehlke 2012-02-07 18:35:03 UTC
Created attachment 68603 [details]
New crash information added by DrKonqi

kdevelop (4.2.3) on KDE Platform 4.6.5 (4.6.5) using Qt 4.7.4

Just saw this again (same circumstances as original report; stack track appears similar).

@Aleix, is 4.6.5 sufficiently newer to be interesting? (I can't upgrade past F14 right now due to other software I need for work that does not build on >F14.)

-- Backtrace (Reduced):
#6  0x00007f1e152ccc88 in Kate::TextBuffer::rangesForLine (this=<value optimized out>, line=516, view=0x3e13ab0, rangesWithAttributeOnly=false) at /usr/src/debug/kdelibs-4.6.5/kate/buffer/katetextbuffer.cpp:752
#7  0x00007f1e153a2bfe in KateView::updateRangesIn (this=0x3e13ab0, activationType=KTextEditor::Attribute::ActivateMouseIn) at /usr/src/debug/kdelibs-4.6.5/kate/view/kateview.cpp:2767
#8  0x00007f1e153b5f80 in KateViewInternal::mouseMoveEvent (this=0x11018230, e=0x7fffe3f211e0) at /usr/src/debug/kdelibs-4.6.5/kate/view/kateviewinternal.cpp:2708
#9  0x000000333fa0b710 in QWidget::event (this=0x11018230, event=0x7fffe3f211e0) at kernel/qwidget.cpp:8280
#10 0x000000333f9b9c64 in QApplicationPrivate::notify_helper (this=0x2292f40, receiver=0x11018230, e=0x7fffe3f211e0) at kernel/qapplication.cpp:4481
Comment 5 Milian Wolff 2012-02-08 11:07:47 UTC
you should either give us a way to reproduce it or use up2date kate to make sure tihs is really still an issue
Comment 6 Matthew Woehlke 2012-02-08 18:41:17 UTC
Fair enough... unfortunately I can't *reliably* reproduce it, I just know I've seen it a handful of times when doing roughly the same thing. There's a good chance it's timing dependent, also.

Best I can do right now as far as 'how to reproduce' would be this:

1. Open a moderately large project in KDevelop (say, 100+ files).
2. Open a moderately large (1000+ lines) source file within said project.
3. Stick a comment (including newline) on the clipboard.
4. Replace every blank line in the file with this comment (not using search/replace).

I've probably only done something like the above a half dozen or so times, but I've had KDevelop crash probably 4-5+ times when doing so. (Of course, when I'm *trying* to reproduce it, I can't :-(...)

(Oh, and... *thank you* for at least looking at this, and don't lose too much sleep over it :-). This isn't a huge issue for me, and I understand your frustration being unable to reproduce it; I've been there plenty of times.)
Comment 7 Milian Wolff 2012-02-15 09:50:35 UTC
but you are sure you are using up2date kate? your last backtrace points at kde 4.6.5... or is that kate checkout from current git? The line 752 in katetextbuffer.cpp also points to a different function in git now, so I'm really wondering whether you actually use a up2date kate...
Comment 8 Dominik Haumann 2012-03-16 21:02:34 UTC
*** Bug 295092 has been marked as a duplicate of this bug. ***
Comment 9 Dominik Haumann 2012-03-16 21:03:14 UTC
Still in at least KDE 4.7.4 (see bug #295092)