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-24-generic i686 Distribution: Ubuntu 10.04.1 LTS -- Information about the crash: Kate crashed after cutting a piece of folded code. The Bug was not reproducable. -- Backtrace: Application: Kate (kate), signal: Segmentation fault [Current thread is 1 (Thread 0xb783b710 (LWP 2462))] Thread 2 (Thread 0xb5e18b70 (LWP 2611)): #0 0x0025a422 in __kernel_vsyscall () #1 0x0014a015 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122 #2 0x00a4a9dd in __pthread_cond_wait (cond=0x2b1228c, mutex=0x2b12274) at forward.c:139 #3 0x02a33c97 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x2b0d1a0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2304 #4 0x02a33ce1 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0x2b0d1a0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1438 #5 0x0014596e in start_thread (arg=0xb5e18b70) at pthread_create.c:300 #6 0x00a3da4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130 Thread 1 (Thread 0xb783b710 (LWP 2462)): [KCrash Handler] #6 KateLineLayout::viewLineCount (this=0x0) at ../../kate/render/katelinelayout.cpp:173 #7 0x048187f2 in KateLayoutCache::lastViewLine (this=0xa166d28, realLine=400) at ../../kate/render/katelayoutcache.cpp:469 #8 0x04886bc5 in KateViewInternal::viewLineOffset (this=0x9d8f908, virtualCursor=..., offset=39, keepX=false) at ../../kate/view/kateviewinternal.cpp:1359 #9 0x04889d64 in KateViewInternal::makeVisible (this=0x9d8f908, c=..., endCol=0, force=false, center=false, calledExternally=false) at ../../kate/view/kateviewinternal.cpp:666 #10 0x0488a5f0 in KateViewInternal::updateCursor (this=0x9d8f908, newCursor=..., force=true, center=<value optimized out>, calledExternally=<value optimized out>) at ../../kate/view/kateviewinternal.cpp:1914 #11 0x0488b3eb in KateViewInternal::editEnd (this=0x9d8f908, editTagLineStart=294, editTagLineEnd=294, tagFrom=true) at ../../kate/view/kateviewinternal.cpp:3399 #12 0x04869c69 in KateView::editEnd (this=0xa1645c0, editTagLineStart=294, editTagLineEnd=294, tagFrom=<value optimized out>) at ../../kate/view/kateview.cpp:1602 #13 0x047d1b04 in KateDocument::editEnd (this=0xa153b08) at ../../kate/document/katedocument.cpp:977 #14 0x0487154d in KateView::removeSelectedText (this=0xa1645c0) at ../../kate/view/kateview.cpp:1774 #15 0x04871aa2 in KateView::qt_metacall (this=0xa1645c0, _c=QMetaObject::InvokeMetaMethod, _id=18, _a=0xbff296a8) at ./kateview.moc:328 #16 0x0629ec9a in QMetaObject::metacall (object=0xa1645c0, cl=QMetaObject::ReadProperty, idx=57, argv=0xbff296a8) at kernel/qmetaobject.cpp:237 #17 0x062ad3d5 in QMetaObject::activate (sender=0xa1c0da8, m=0x1659d58, local_signal_index=1, argv=0xbff296a8) at kernel/qobject.cpp:3293 #18 0x00d2abd9 in QAction::triggered (this=0xa1c0da8, _t1=false) at .moc/release-shared/moc_qaction.cpp:263 #19 0x00d2cdcc in QAction::activate (this=0xa1c0da8, event=QAction::Trigger) at kernel/qaction.cpp:1255 #20 0x00d2e698 in QAction::event (this=0x0, e=0x0) at kernel/qaction.cpp:1181 #21 0x03801d63 in KAction::event (this=0xa1c0da8, event=0xbff29bc8) at ../../kdeui/actions/kaction.cpp:129 #22 0x00d314dc in QApplicationPrivate::notify_helper (this=0x9797278, receiver=0xa1c0da8, e=0xbff29bc8) at kernel/qapplication.cpp:4300 #23 0x00d3805e in QApplication::notify (this=0xbff2aaf4, receiver=0xa1c0da8, e=0xbff29bc8) at kernel/qapplication.cpp:3704 #24 0x038edf2a in KApplication::notify (this=0xbff2aaf4, receiver=0xa1c0da8, event=0xbff29bc8) at ../../kdeui/kernel/kapplication.cpp:302 #25 0x06299a3b in QCoreApplication::notifyInternal (this=0xbff2aaf4, receiver=0xa1c0da8, event=0xbff29bc8) at kernel/qcoreapplication.cpp:704 #26 0x00d7334d in QCoreApplication::sendEvent (this=0x9797324, e=0xbff2a044) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215 #27 QShortcutMap::dispatchEvent (this=0x9797324, e=0xbff2a044) at kernel/qshortcutmap.cpp:879 #28 0x00d7515e in QShortcutMap::tryShortcutEvent (this=0x9797324, o=0x9d8f908, e=0xbff2a044) at kernel/qshortcutmap.cpp:364 #29 0x00d39e43 in QApplication::notify (this=0xbff2aaf4, receiver=0x9d8f908, e=0xbff2a044) at kernel/qapplication.cpp:3746 #30 0x038edf2a in KApplication::notify (this=0xbff2aaf4, receiver=0x9d8f908, event=0xbff2a044) at ../../kdeui/kernel/kapplication.cpp:302 #31 0x06299a3b in QCoreApplication::notifyInternal (this=0xbff2aaf4, receiver=0x9d8f908, event=0xbff2a044) at kernel/qcoreapplication.cpp:704 #32 0x00d322be in QCoreApplication::sendSpontaneousEvent (receiver=0x9d8f908, event=0x0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218 #33 qt_sendSpontaneousEvent (receiver=0x9d8f908, event=0x0) at kernel/qapplication.cpp:5279 #34 0x00debd90 in QKeyMapper::sendKeyEvent (keyWidget=0x9d8f908, grab=false, type=QEvent::KeyPress, code=88, modifiers=..., text=..., autorepeat=<value optimized out>, count=<value optimized out>, nativeScanCode=53, nativeVirtualKey=120, nativeModifiers=16404) at kernel/qkeymapper_x11.cpp:1861 #35 0x00dee2f5 in QKeyMapperPrivate::translateKeyEvent (this=0x97bfc88, keyWidget=0x9d8f908, event=0xbff2a70c, grab=false) at kernel/qkeymapper_x11.cpp:1831 #36 0x00dc1757 in QApplication::x11ProcessEvent (this=0xbff2aaf4, event=0xbff2a70c) at kernel/qapplication_x11.cpp:3394 #37 0x00df160a in x11EventSourceDispatch (s=0x979a500, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146 #38 0x001cb5e5 in g_main_dispatch (context=0x979a080) at /build/buildd/glib2.0-2.24.1/glib/gmain.c:1960 #39 IA__g_main_context_dispatch (context=0x979a080) at /build/buildd/glib2.0-2.24.1/glib/gmain.c:2513 #40 0x001cf2d8 in g_main_context_iterate (context=0x979a080, block=<value optimized out>, dispatch=1, self=0x97948a0) at /build/buildd/glib2.0-2.24.1/glib/gmain.c:2591 #41 0x001cf4b8 in IA__g_main_context_iteration (context=0x979a080, may_block=1) at /build/buildd/glib2.0-2.24.1/glib/gmain.c:2654 #42 0x062c55d5 in QEventDispatcherGlib::processEvents (this=0x97799c0, flags=...) at kernel/qeventdispatcher_glib.cpp:412 #43 0x00df1135 in QGuiEventDispatcherGlib::processEvents (this=0x97799c0, flags=...) at kernel/qguieventdispatcher_glib.cpp:204 #44 0x06298059 in QEventLoop::processEvents (this=0xbff2aa04, flags=) at kernel/qeventloop.cpp:149 #45 0x062984aa in QEventLoop::exec (this=0xbff2aa04, flags=...) at kernel/qeventloop.cpp:201 #46 0x0629c69f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981 #47 0x00d31577 in QApplication::exec () at kernel/qapplication.cpp:3579 #48 0x00bf6a65 in kdemain (argc=3, argv=0xbff2b194) at ../../../kate/app/katemain.cpp:377 #49 0x080485fb in main (argc=3, argv=0xbff2b194) at kate_dummy.cpp:3 This bug may be a duplicate of or related to bug 226409. Possible duplicates by query: bug 237966. Reported using DrKonqi
Created attachment 50617 [details] New crash information added by DrKonqi kate (3.5.0) on KDE Platform 4.5.00 (KDE 4.5.0) using Qt 4.7.0 Another instance of this crash it seems. I was trying to delete two folded XML nodes and their children when I experienced this. -- Backtrace (Reduced): #6 KateLineLayout::viewLineCount (this=0x0) at ../../kate/render/katelinelayout.cpp:173 #7 0x00007f6ec0a56db4 in KateLayoutCache::lastViewLine (this=<value optimized out>, realLine=<value optimized out>) at ../../kate/render/katelayoutcache.cpp:448 #8 0x00007f6ec0ab8f78 in KateViewInternal::viewLineOffset (this=0x14f6d00, virtualCursor=..., offset=56, keepX=<value optimized out>) at ../../kate/view/kateviewinternal.cpp:1351 #9 0x00007f6ec0abcb5d in KateViewInternal::makeVisible (this=0x14f6d00, c=..., endCol=<value optimized out>, force=false, center=<value optimized out>, calledExternally=false) at ../../kate/view/kateviewinternal.cpp:663 #10 0x00007f6ec0abedc1 in KateViewInternal::updateCursor (this=0x14f6d00, newCursor=<value optimized out>, force=<value optimized out>, center=false, calledExternally=<value optimized out>) at ../../kate/view/kateviewinternal.cpp:1907
Created attachment 50618 [details] Testcase: XML file to reproduce the crash This is the XML file I was working on. It's 100% reproducable: Fold the three <Activity> sections below <Activities> and delete any of them. Sorry the file's so big, can't make it smaller, kate crashes when trying ;-)
*** Bug 249826 has been marked as a duplicate of this bug. ***
*** Bug 249861 has been marked as a duplicate of this bug. ***
Created attachment 52517 [details] New crash information added by DrKonqi kate (3.5.2) on KDE Platform 4.5.2 (KDE 4.5.2) "release 9" using Qt 4.6.3 - What I was doing when the application crashed: Had applied code folding to multiple segments of an XML file (in this case a GPX file) and attempted to delete some of them causing kate to crash. Same or similar actions on other files also caused kate to crash -- Backtrace (Reduced): #7 viewLineCount (this=0x8ca0c48) at /usr/src/debug/kdelibs-4.5.2/kate/render/katelinelayout.cpp:173 #8 KateLayoutCache::lastViewLine (this=0x8ca0c48) at /usr/src/debug/kdelibs-4.5.2/kate/render/katelayoutcache.cpp:448 #9 0xaefb968d in KateViewInternal::viewLineOffset (this=0x8ecd410, virtualCursor=..., offset=47, keepX=false) at /usr/src/debug/kdelibs-4.5.2/kate/view/kateviewinternal.cpp:1351 #10 0xaefbd925 in KateViewInternal::makeVisible (this=0x8ecd410, c=..., endCol=0, force=false, center=false, calledExternally=false) at /usr/src/debug/kdelibs-4.5.2/kate/view/kateviewinternal.cpp:663 #11 0xaefc50bc in KateViewInternal::updateCursor (this=0x8ecd410, newCursor=..., force=true, center=76, calledExternally=<value optimized out>) at /usr/src/debug/kdelibs-4.5.2/kate/view/kateviewinternal.cpp:1907
*** Bug 252284 has been marked as a duplicate of this bug. ***
*** Bug 254701 has been marked as a duplicate of this bug. ***
maybe related to: bug 254873, bug 233749, bug 237256
Created attachment 53495 [details] New crash information added by DrKonqi kate (3.5.1) on KDE Platform 4.5.1 (KDE 4.5.1) using Qt 4.7.0 - What I was doing when the application crashed: Cuttting a block of text, I also have 3 windows opened of kate -- Backtrace (Reduced): #7 KateLineLayout::viewLineCount (this=0x0) at ../../kate/render/katelinelayout.cpp:173 #8 0x02eb3a94 in KateLayoutCache::lastViewLine (this=0x9aae828, realLine=150) at ../../kate/render/katelayoutcache.cpp:448 #9 0x02f21ffd in KateViewInternal::viewLineOffset (this=0xa5761c0, virtualCursor=..., offset=46, keepX=false) at ../../kate/view/kateviewinternal.cpp:1351 #10 0x02f268b8 in KateViewInternal::makeVisible (this=0xa5761c0, c=..., endCol=0, force=false, center=false, calledExternally=false) at ../../kate/view/kateviewinternal.cpp:663 #11 0x02f280bc in KateViewInternal::updateCursor (this=0xa5761c0, newCursor=..., force=true, center=false, calledExternally=<value optimized out>) at ../../kate/view/kateviewinternal.cpp:1907
*** Bug 259261 has been marked as a duplicate of this bug. ***
enough people hit this bug, we really have to come up with a fix for this...
*** Bug 262427 has been marked as a duplicate of this bug. ***
[Comment from a bug triager] From 267976 (KDE 4.5.1): - What I was doing when the application crashed: I highlighted the text, with the mouse, from the end of the file up to the middle of that and then prssed Delete button on my keyboard. The text I removed was a commented VHDL code, the rest of the code is not commented. The file was opened by another program at the same time. The text file is about 400 lines. I reopened Kate and tried again to remove the code and it didn't crach (this time I used pressed shift together with the mouse to highlight the code).
*** Bug 267976 has been marked as a duplicate of this bug. ***
Created attachment 58599 [details] New crash information added by DrKonqi kate (3.6.1) on KDE Platform 4.6.1 (4.6.1) using Qt 4.7.0 - What I was doing when the application crashed: Deleting lines of text with many files open. Devs: This is a critical bug. A text editor must not crash ever! It is probably the last safeguard in an unstable system and usually takes lots and lots of state with it upon crash. This is also a regression for KDE 4.6.1, these crashes never ocured in any previous version. Using the KDE PPAs on Kubuntu 10.10. -- Backtrace (Reduced): #6 KateLineLayout::viewLineCount (this=0x0) at ../../kate/render/katelinelayout.cpp:173 #7 0x00007faa84ff5114 in KateLayoutCache::lastViewLine (this=<value optimized out>, realLine=<value optimized out>) at ../../kate/render/katelayoutcache.cpp:457 #8 0x00007faa8504b0c6 in KateViewInternal::viewLineOffset (this=0x2b69d90, virtualCursor=..., offset=23, keepX=<value optimized out>) at ../../kate/view/kateviewinternal.cpp:1291 #9 0x00007faa8504e89f in KateViewInternal::makeVisible (this=0x2b69d90, c=..., endCol=<value optimized out>, force=false, center=<value optimized out>, calledExternally=false) at ../../kate/view/kateviewinternal.cpp:613 #10 0x00007faa85050661 in KateViewInternal::updateCursor (this=0x2b69d90, newCursor=<value optimized out>, force=<value optimized out>, center=false, calledExternally=<value optimized out>) at ../../kate/view/kateviewinternal.cpp:1825
Created attachment 58771 [details] New crash information added by DrKonqi kile (2.0.86) on KDE Platform 4.6.2 (4.6.2) using Qt 4.7.2 - What I was doing when the application crashed: I deleted some lines of code from a text file. The line count changed to below 1000 because of the delete. -- Backtrace (Reduced): #7 0xb15d388f in viewLineCount (this=0x8dd30f0, realLine=1021) at /usr/src/debug/kdelibs-4.6.2/kate/render/katelinelayout.cpp:173 #8 KateLayoutCache::lastViewLine (this=0x8dd30f0, realLine=1021) at /usr/src/debug/kdelibs-4.6.2/kate/render/katelayoutcache.cpp:457 #9 0xb15d66e5 in KateViewInternal::viewLineOffset (this=0x8df17d0, virtualCursor=..., offset=22, keepX=false) at /usr/src/debug/kdelibs-4.6.2/kate/view/kateviewinternal.cpp:1291 #10 0xb15dad71 in KateViewInternal::makeVisible (this=0x8df17d0, c=..., endCol=0, force=false, center=false, calledExternally=false) at /usr/src/debug/kdelibs-4.6.2/kate/view/kateviewinternal.cpp:613 #11 0xb15db714 in KateViewInternal::updateCursor (this=0x8df17d0, newCursor=..., force=true, center=false, calledExternally=false) at /usr/src/debug/kdelibs-4.6.2/kate/view/kateviewinternal.cpp:1825
Created attachment 59167 [details] New crash information added by DrKonqi kate (3.6.2) on KDE Platform 4.6.2 (4.6.2) "release 3" using Qt 4.7.2 - What I was doing when the application crashed: I was trying to cut about 3 lines (php code) using block selection in VI input mode. The lines to cut were below (not within) a collapsed piece of code, approx. 370 lines were collapsed in 1 block. It unfortunately does not seem to occur again when I repeat the same steps. -- Backtrace (Reduced): #6 0x00007fdb8ebf962c in viewLineCount (this=<value optimized out>, realLine=<value optimized out>) at /usr/src/debug/kdelibs-4.6.2/kate/render/katelinelayout.cpp:173 #7 KateLayoutCache::lastViewLine (this=<value optimized out>, realLine=<value optimized out>) at /usr/src/debug/kdelibs-4.6.2/kate/render/katelayoutcache.cpp:457 #8 0x00007fdb8ebfbfe6 in KateViewInternal::viewLineOffset (this=0xad1750, virtualCursor=..., offset=45, keepX=false) at /usr/src/debug/kdelibs-4.6.2/kate/view/kateviewinternal.cpp:1291 #9 0x00007fdb8ebfff2d in KateViewInternal::makeVisible (this=0xad1750, c=..., endCol=39, force=false, center=<value optimized out>, calledExternally=false) at /usr/src/debug/kdelibs-4.6.2/kate/view/kateviewinternal.cpp:613 #10 0x00007fdb8ec00801 in KateViewInternal::updateCursor (this=0xad1750, newCursor=<value optimized out>, force=<value optimized out>, center=false, calledExternally=false) at /usr/src/debug/kdelibs-4.6.2/kate/view/kateviewinternal.cpp:1825
*** Bug 275954 has been marked as a duplicate of this bug. ***
Git commit 4151628e86aa0bfaa8a3cc49eb97d06503e69638 by Adrian Lungu. Committed on 29/07/2011 at 17:13. Pushed by lungu into branch 'master'. BUG: 247081 I solved the bug posted on comment 2. The bug was replicated using the old code folding and the new code folding. I made some small changes in katedocument and katelayoutcache. If there are any problems regarding this patch, please let me know. M +2 -4 part/document/katedocument.cpp M +2 -2 part/view/kateviewinternal.cpp M +8 -0 part/document/katebuffer.h M +12 -0 part/document/katebuffer.cpp M +5 -1 part/render/katelayoutcache.cpp http://commits.kde.org/kate/4151628e86aa0bfaa8a3cc49eb97d06503e69638
*** Bug 237256 has been marked as a duplicate of this bug. ***
*** Bug 243478 has been marked as a duplicate of this bug. ***
*** Bug 269223 has been marked as a duplicate of this bug. ***
*** Bug 282227 has been marked as a duplicate of this bug. ***
*** Bug 284097 has been marked as a duplicate of this bug. ***
Created attachment 65276 [details] New crash information added by DrKonqi kate (3.7.2) on KDE Platform 4.7.2 (4.7.2) using Qt 4.7.4 - What I was doing when the application crashed: Pressing lot of control+z while I'm working and died. -- Backtrace (Reduced): #6 KateLineLayout::viewLineCount (this=0x0) at ../../part/render/katelinelayout.cpp:173 #7 0x00007f813585cfea in KateTextLayout::isValid (this=0x15cf3b8) at ../../part/render/katetextlayout.cpp:90 #8 0x00007f813585d089 in KateTextLayout::line (this=0x15cf3b8) at ../../part/render/katetextlayout.cpp:95 #9 0x00007f81358a4e47 in KateViewInternal::endPos (this=0x1653850) at ../../part/view/kateviewinternal.cpp:291 #10 0x00007f81358ab0bc in KateViewInternal::makeVisible (this=0x1653850, c=..., endCol=2, force=false, center=<optimized out>, calledExternally=true) at ../../part/view/kateviewinternal.cpp:612
Pablo's report shows this an issue in kate 3.7.2 - reopening. Pablo: can you give us an example on when this crash occurrs? I.e. the steps required to reproduce the issue?
At least, happened just one time, I was programming with Kate as editor, and I was a bit angry because my touchpad just delete me and moved text (my fault working without touchpad disabled on write) and I let control+z pressed for 2 seconds and segfault. Control+z was hold for 2 seconds.
Milian: "Pablo's report shows this an issue in kate 3.7.2 - reopening." Of course. Adrians changes are only in KDE 4.8... We won't get any further with this. If people still report this in KDE 4.8, we can reopen it again. --> You can close it again, see comment #19.
Sorry, I assumed this was fixed in Kate 3.7.x - my bad.
*** Bug 289312 has been marked as a duplicate of this bug. ***
*** Bug 292029 has been marked as a duplicate of this bug. ***
*** Bug 293603 has been marked as a duplicate of this bug. ***
*** Bug 281221 has been marked as a duplicate of this bug. ***
Created attachment 71320 [details] New crash information added by DrKonqi kate (3.7.4) on KDE Platform 4.7.4 (4.7.4) using Qt 4.7.4 - What I was doing when the application crashed: Holding Ctrl+Z and suddenly Kate crashed -- Backtrace (Reduced): #7 KateLineLayout::viewLineCount (this=0x0) at ../../part/render/katelinelayout.cpp:173 #8 0x02fa07c7 in KateTextLayout::isValid (this=0x9481050) at ../../part/render/katetextlayout.cpp:90 #9 0x02fa08c2 in KateTextLayout::line (this=0x9481050) at ../../part/render/katetextlayout.cpp:95 #10 0x02ff2be1 in KateViewInternal::endPos (this=0x9342e60) at ../../part/view/kateviewinternal.cpp:291 #11 0x02ff9d84 in KateViewInternal::makeVisible (this=0x9342e60, c=..., endCol=77, force=false, center=true, calledExternally=true) at ../../part/view/kateviewinternal.cpp:612
*** Bug 309768 has been marked as a duplicate of this bug. ***