Bug 241213

Summary: Kate crash on deleting text (backspace)
Product: [Applications] kate Reporter: husdis
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description husdis 2010-06-09 17:24:17 UTC
Application: kate (3.4.2)
KDE Platform Version: 4.4.2 (KDE 4.4.2)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-22-generic i686
Distribution: Ubuntu 10.04 LTS

-- Information about the crash:
Kate had been running for a few days stably prior to the crash. I just made a new file and was editing it. I went to delete some text at the end of the file (can't remember whether it was highlighted, or just backspacing) and Kate died as soon as I hit backspace.

Xubuntu 10.04, Xubuntu session

I had the following plugings/addons active:
File system browser
Find in files tool view
XML Validation
Text Snippets
Kate Snippets
Quick Document switcher
Text Filter
Terminal tool view
File Templates
Open Header
Build Plugin
External Tools
Tab Bar
Backtrace Browser
Symbol Viewer
CTags Plugin

Extensions:
AutoBrace
Data Tools
Exporter

 -- Backtrace:
Application: Kate (kate), signal: Segmentation fault
[Current thread is 1 (Thread 0xb785e710 (LWP 5539))]

Thread 2 (Thread 0xb5fcdb70 (LWP 5617)):
#0  0x00e6f422 in __kernel_vsyscall ()
#1  0x004be015 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122
#2  0x0069a9dd in __pthread_cond_wait (cond=0x1f6728c, mutex=0x1f67274) at forward.c:139
#3  0x01e88c97 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x1f621a0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2304
#4  0x01e88ce1 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0x1f621a0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1438
#5  0x004b996e in start_thread (arg=0xb5fcdb70) at pthread_create.c:300
#6  0x0068da4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb785e710 (LWP 5539)):
[KCrash Handler]
#6  KateLineLayout::viewLineCount (this=0x0) at ../../kate/render/katelinelayout.cpp:173
#7  0x031d494c in KateLayoutCache::viewLine (this=0xbc93990, realCursor=...) at ../../kate/render/katelayoutcache.cpp:395
#8  0x031d4f7f in KateLayoutCache::textLayout (this=0xbc93990, realCursor=...) at ../../kate/render/katelayoutcache.cpp:337
#9  0x03245e91 in KateViewInternal::makeVisible (this=0xd111f00, c=..., endCol=-1, force=false, center=false, calledExternally=false) at ../../kate/view/kateviewinternal.cpp:690
#10 0x032465f0 in KateViewInternal::updateCursor (this=0xd111f00, newCursor=..., force=true, center=<value optimized out>, calledExternally=<value optimized out>)
    at ../../kate/view/kateviewinternal.cpp:1914
#11 0x032473eb in KateViewInternal::editEnd (this=0xd111f00, editTagLineStart=35, editTagLineEnd=35, tagFrom=true) at ../../kate/view/kateviewinternal.cpp:3399
#12 0x03225c69 in KateView::editEnd (this=0xc136e50, editTagLineStart=35, editTagLineEnd=35, tagFrom=<value optimized out>) at ../../kate/view/kateview.cpp:1602
#13 0x0318db04 in KateDocument::editEnd (this=0xa3302b8) at ../../kate/document/katedocument.cpp:977
#14 0x03194dac in KateDocument::removeText (this=0xa3302b8, _range=..., block=false) at ../../kate/document/katedocument.cpp:821
#15 0x03196b7d in KateDocument::backspace (this=0xa3302b8, view=0xc136e50, c=...) at ../../kate/document/katedocument.cpp:2906
#16 0x0323b0e1 in KateViewInternal::doBackspace (this=0xd111f00) at ../../kate/view/kateviewinternal.cpp:854
#17 0x0322866c in KateView::backspace (this=0xc136e50) at ../../kate/view/kateview.cpp:2295
#18 0x0322ddd4 in KateView::qt_metacall (this=0xc136e50, _c=QMetaObject::InvokeMetaMethod, _id=51, _a=0xbfe02ea8) at ./kateview.moc:373
#19 0x06866c9a in QMetaObject::metacall (object=0xc136e50, cl=QMetaObject::ReadProperty, idx=90, argv=0xbfe02ea8) at kernel/qmetaobject.cpp:237
#20 0x068753d5 in QMetaObject::activate (sender=0xc5d4390, m=0x18cdd58, local_signal_index=1, argv=0xbfe02ea8) at kernel/qobject.cpp:3293
#21 0x00f9ebd9 in QAction::triggered (this=0xc5d4390, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#22 0x00fa0dcc in QAction::activate (this=0xc5d4390, event=QAction::Trigger) at kernel/qaction.cpp:1255
#23 0x00fa2698 in QAction::event (this=0x9838aa8, e=0x0) at kernel/qaction.cpp:1181
#24 0x0080dd63 in KAction::event (this=0xc5d4390, event=0xbfe033c8) at ../../kdeui/actions/kaction.cpp:129
#25 0x00fa54dc in QApplicationPrivate::notify_helper (this=0x97baa78, receiver=0xc5d4390, e=0xbfe033c8) at kernel/qapplication.cpp:4300
#26 0x00fac05e in QApplication::notify (this=0xbfe042f4, receiver=0xc5d4390, e=0xbfe033c8) at kernel/qapplication.cpp:3704
#27 0x008f9f2a in KApplication::notify (this=0xbfe042f4, receiver=0xc5d4390, event=0xbfe033c8) at ../../kdeui/kernel/kapplication.cpp:302
#28 0x06861a3b in QCoreApplication::notifyInternal (this=0xbfe042f4, receiver=0xc5d4390, event=0xbfe033c8) at kernel/qcoreapplication.cpp:704
#29 0x00fe734d in QCoreApplication::sendEvent (this=0x97bab24, e=0xbfe03844) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#30 QShortcutMap::dispatchEvent (this=0x97bab24, e=0xbfe03844) at kernel/qshortcutmap.cpp:879
#31 0x00fe915e in QShortcutMap::tryShortcutEvent (this=0x97bab24, o=0xd111f00, e=0xbfe03844) at kernel/qshortcutmap.cpp:364
#32 0x00fade43 in QApplication::notify (this=0xbfe042f4, receiver=0xd111f00, e=0xbfe03844) at kernel/qapplication.cpp:3746
#33 0x008f9f2a in KApplication::notify (this=0xbfe042f4, receiver=0xd111f00, event=0xbfe03844) at ../../kdeui/kernel/kapplication.cpp:302
#34 0x06861a3b in QCoreApplication::notifyInternal (this=0xbfe042f4, receiver=0xd111f00, event=0xbfe03844) at kernel/qcoreapplication.cpp:704
#35 0x00fa62be in QCoreApplication::sendSpontaneousEvent (receiver=0xd111f00, event=0x9838aa8) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#36 qt_sendSpontaneousEvent (receiver=0xd111f00, event=0x9838aa8) at kernel/qapplication.cpp:5279
#37 0x0105fd90 in QKeyMapper::sendKeyEvent (keyWidget=0xd111f00, grab=false, type=QEvent::KeyPress, code=16777219, modifiers=..., text=..., autorepeat=<value optimized out>, 
    count=<value optimized out>, nativeScanCode=22, nativeVirtualKey=65288, nativeModifiers=16) at kernel/qkeymapper_x11.cpp:1861
#38 0x010622f5 in QKeyMapperPrivate::translateKeyEvent (this=0x97e1578, keyWidget=0xd111f00, event=0xbfe03f0c, grab=false) at kernel/qkeymapper_x11.cpp:1831
#39 0x01035757 in QApplication::x11ProcessEvent (this=0xbfe042f4, event=0xbfe03f0c) at kernel/qapplication_x11.cpp:3394
#40 0x0106560a in x11EventSourceDispatch (s=0x97bcf00, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#41 0x00c025e5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#42 0x00c062d8 in ?? () from /lib/libglib-2.0.so.0
#43 0x00c064b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#44 0x0688d5d5 in QEventDispatcherGlib::processEvents (this=0x979c4a0, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#45 0x01065135 in QGuiEventDispatcherGlib::processEvents (this=0x979c4a0, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#46 0x06860059 in QEventLoop::processEvents (this=0xbfe04204, flags=) at kernel/qeventloop.cpp:149
#47 0x068604aa in QEventLoop::exec (this=0xbfe04204, flags=...) at kernel/qeventloop.cpp:201
#48 0x0686469f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#49 0x00fa5577 in QApplication::exec () at kernel/qapplication.cpp:3579
#50 0x00515a65 in kdemain (argc=2, argv=0xbfe04994) at ../../../kate/app/katemain.cpp:377
#51 0x080485fb in main (argc=2, argv=0xbfe04994) at kate_dummy.cpp:3

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

Possible duplicates by query: bug 238292, bug 237002, bug 236041, bug 235799, bug 235199.

Reported using DrKonqi
Comment 1 Dominik Haumann 2010-06-10 00:24:24 UTC
fixed in kde >= 4.4.4.

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