Bug 306369 - Kate crash on save
Summary: Kate crash on save
Status: RESOLVED DUPLICATE of bug 294241
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-06 20:52 UTC by Leon Maurer
Modified: 2013-03-23 15:29 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leon Maurer 2012-09-06 20:52:35 UTC
Application: kate (3.9.0)
KDE Platform Version: 4.9.00
Qt Version: 4.8.2
Operating System: Linux 3.2.0-30-generic x86_64
Distribution: Ubuntu 12.04.1 LTS

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

I made some changes to a file, I hit Ctrl+s to save it, and Kate crashed. This is the first time I've encountered this.

-- Backtrace:
Application: Kate (kate), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7ffd8dbbb780 (LWP 1976))]

Thread 4 (Thread 0x7ffd7aaf5700 (LWP 2333)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007ffd7b4c6022 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#2  0x00007ffd7b4c6059 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#3  0x00007ffd8aadfe9a in start_thread (arg=0x7ffd7aaf5700) at pthread_create.c:308
#4  0x00007ffd8d4ff4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7ffcf870c700 (LWP 2952)):
#0  qt_gettime () at tools/qelapsedtimer_unix.cpp:138
#1  0x00007ffd8b3d614d in QTimerInfoList::updateCurrentTime (this=0x7ffcf0002860) at kernel/qeventdispatcher_unix.cpp:343
#2  0x00007ffd8b3d6483 in QTimerInfoList::timerWait (this=0x7ffcf0002860, tm=...) at kernel/qeventdispatcher_unix.cpp:450
#3  0x00007ffd8b3d4f3c in timerSourcePrepareHelper (src=<optimized out>, timeout=0x7ffcf870bc6c) at kernel/qeventdispatcher_glib.cpp:136
#4  0x00007ffd8b3d4fe5 in timerSourcePrepare (source=<optimized out>, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#5  0x00007ffd8a612846 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007ffd8a612f5b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007ffd8a613164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007ffd8b3d59e6 in QEventDispatcherGlib::processEvents (this=0x7ffcf00008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#9  0x00007ffd8b3a4f22 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#10 0x00007ffd8b3a5177 in QEventLoop::exec (this=0x7ffcf870bdd0, flags=...) at kernel/qeventloop.cpp:204
#11 0x00007ffd8b2a4057 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#12 0x00007ffd8b384c2f in QInotifyFileSystemWatcherEngine::run (this=0x2647450) at io/qfilesystemwatcher_inotify.cpp:248
#13 0x00007ffd8b2a707b in QThreadPrivate::start (arg=0x2647450) at thread/qthread_unix.cpp:307
#14 0x00007ffd8aadfe9a in start_thread (arg=0x7ffcf870c700) at pthread_create.c:308
#15 0x00007ffd8d4ff4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#16 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7ffcf7a5d700 (LWP 3064)):
#0  0x00007ffd8d4f3b03 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007ffd8a613036 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffd8a613164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffd8b3d59e6 in QEventDispatcherGlib::processEvents (this=0x7ffce80008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007ffd8b3a4f22 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007ffd8b3a5177 in QEventLoop::exec (this=0x7ffcf7a5cdd0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007ffd8b2a4057 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007ffd8b384c2f in QInotifyFileSystemWatcherEngine::run (this=0x2773fa0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007ffd8b2a707b in QThreadPrivate::start (arg=0x2773fa0) at thread/qthread_unix.cpp:307
#9  0x00007ffd8aadfe9a in start_thread (arg=0x7ffcf7a5d700) at pthread_create.c:308
#10 0x00007ffd8d4ff4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7ffd8dbbb780 (LWP 1976)):
[KCrash Handler]
#6  hasMatch (this=0x4321680) at ../../part/syntax/katecodefolding.h:228
#7  matchingNode (this=0x4321680) at ../../part/syntax/katecodefolding.h:231
#8  getStartMatching (endNode=0x4322090, this=0x4321680) at ../../part/syntax/katecodefolding.cpp:155
#9  KateCodeFoldingTree::getLineInfo (this=<optimized out>, info=0x7fff44d4cb00, line=<optimized out>) at ../../part/syntax/katecodefolding.cpp:995
#10 0x00007ffd7bbaeaba in KateIconBorder::paintBorder (this=0x42329b0, y=<optimized out>, height=<optimized out>) at ../../part/view/kateviewhelpers.cpp:1203
#11 0x00007ffd8c959f66 in QWidget::event (this=0x42329b0, event=0x7fff44d4d470) at kernel/qwidget.cpp:8517
#12 0x00007ffd8c9097b4 in notify_helper (e=0x7fff44d4d470, receiver=0x42329b0, this=0x1c6c460) at kernel/qapplication.cpp:4556
#13 QApplicationPrivate::notify_helper (this=0x1c6c460, receiver=0x42329b0, e=0x7fff44d4d470) at kernel/qapplication.cpp:4528
#14 0x00007ffd8c90e583 in QApplication::notify (this=0x7fff44d51e00, receiver=0x42329b0, e=0x7fff44d4d470) at kernel/qapplication.cpp:4417
#15 0x00007ffd8bbb2456 in KApplication::notify (this=0x7fff44d51e00, receiver=0x42329b0, event=0x7fff44d4d470) at ../../kdeui/kernel/kapplication.cpp:311
#16 0x00007ffd8b3a63ec in QCoreApplication::notifyInternal (this=0x7fff44d51e00, receiver=0x42329b0, event=0x7fff44d4d470) at kernel/qcoreapplication.cpp:915
#17 0x00007ffd8c955c06 in sendSpontaneousEvent (event=0x7fff44d4d470, receiver=0x42329b0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:234
#18 QWidgetPrivate::drawWidget (this=0x42390c0, pdev=0x2631c70, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x20466f0) at kernel/qwidget.cpp:5594
#19 0x00007ffd8c95687f in QWidgetPrivate::paintSiblingsRecursive (this=0x4286970, pdev=0x2631c70, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x20466f0) at kernel/qwidget.cpp:5803
#20 0x00007ffd8c956607 in QWidgetPrivate::paintSiblingsRecursive (this=0x4286970, pdev=0x2631c70, siblings=..., index=1, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x20466f0) at kernel/qwidget.cpp:5790
#21 0x00007ffd8c956607 in QWidgetPrivate::paintSiblingsRecursive (this=0x4286970, pdev=0x2631c70, siblings=..., index=2, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x20466f0) at kernel/qwidget.cpp:5790
#22 0x00007ffd8c956607 in QWidgetPrivate::paintSiblingsRecursive (this=0x4286970, pdev=0x2631c70, siblings=..., index=3, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x20466f0) at kernel/qwidget.cpp:5790
#23 0x00007ffd8c956607 in QWidgetPrivate::paintSiblingsRecursive (this=0x4286970, pdev=0x2631c70, siblings=..., index=4, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x20466f0) at kernel/qwidget.cpp:5790
#24 0x00007ffd8c956607 in QWidgetPrivate::paintSiblingsRecursive (this=0x4286970, pdev=0x2631c70, siblings=..., index=5, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x20466f0) at kernel/qwidget.cpp:5790
#25 0x00007ffd8c95593c in QWidgetPrivate::drawWidget (this=0x4286970, pdev=0x2631c70, rgn=..., offset=..., flags=<optimized out>, sharedPainter=0x0, backingStore=0x20466f0) at kernel/qwidget.cpp:5647
#26 0x00007ffd8c95687f in QWidgetPrivate::paintSiblingsRecursive (this=0x297e120, pdev=0x2631c70, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x20466f0) at kernel/qwidget.cpp:5803
#27 0x00007ffd8c95593c in QWidgetPrivate::drawWidget (this=0x297e120, pdev=0x2631c70, rgn=..., offset=..., flags=<optimized out>, sharedPainter=0x0, backingStore=0x20466f0) at kernel/qwidget.cpp:5647
#28 0x00007ffd8c95687f in QWidgetPrivate::paintSiblingsRecursive (this=0x227aa70, pdev=0x2631c70, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x20466f0) at kernel/qwidget.cpp:5803
#29 0x00007ffd8c95593c in QWidgetPrivate::drawWidget (this=0x227aa70, pdev=0x2631c70, rgn=..., offset=..., flags=<optimized out>, sharedPainter=0x0, backingStore=0x20466f0) at kernel/qwidget.cpp:5647
#30 0x00007ffd8c95687f in QWidgetPrivate::paintSiblingsRecursive (this=0x2288890, pdev=0x2631c70, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x20466f0) at kernel/qwidget.cpp:5803
#31 0x00007ffd8c956607 in QWidgetPrivate::paintSiblingsRecursive (this=0x2288890, pdev=0x2631c70, siblings=..., index=1, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x20466f0) at kernel/qwidget.cpp:5790
#32 0x00007ffd8c95593c in QWidgetPrivate::drawWidget (this=0x2288890, pdev=0x2631c70, rgn=..., offset=..., flags=<optimized out>, sharedPainter=0x0, backingStore=0x20466f0) at kernel/qwidget.cpp:5647
#33 0x00007ffd8c95687f in QWidgetPrivate::paintSiblingsRecursive (this=0x2273450, pdev=0x2631c70, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x20466f0) at kernel/qwidget.cpp:5803
#34 0x00007ffd8c95593c in QWidgetPrivate::drawWidget (this=0x2273450, pdev=0x2631c70, rgn=..., offset=..., flags=<optimized out>, sharedPainter=0x0, backingStore=0x20466f0) at kernel/qwidget.cpp:5647
#35 0x00007ffd8c95687f in QWidgetPrivate::paintSiblingsRecursive (this=0x2262e40, pdev=0x2631c70, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x20466f0) at kernel/qwidget.cpp:5803
#36 0x00007ffd8c95593c in QWidgetPrivate::drawWidget (this=0x2262e40, pdev=0x2631c70, rgn=..., offset=..., flags=<optimized out>, sharedPainter=0x0, backingStore=0x20466f0) at kernel/qwidget.cpp:5647
#37 0x00007ffd8c95687f in QWidgetPrivate::paintSiblingsRecursive (this=0x2262250, pdev=0x2631c70, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x20466f0) at kernel/qwidget.cpp:5803
#38 0x00007ffd8c95593c in QWidgetPrivate::drawWidget (this=0x2262250, pdev=0x2631c70, rgn=..., offset=..., flags=<optimized out>, sharedPainter=0x0, backingStore=0x20466f0) at kernel/qwidget.cpp:5647
#39 0x00007ffd8c95687f in QWidgetPrivate::paintSiblingsRecursive (this=0x22607c0, pdev=0x2631c70, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x20466f0) at kernel/qwidget.cpp:5803
#40 0x00007ffd8c95593c in QWidgetPrivate::drawWidget (this=0x22607c0, pdev=0x2631c70, rgn=..., offset=..., flags=<optimized out>, sharedPainter=0x0, backingStore=0x20466f0) at kernel/qwidget.cpp:5647
#41 0x00007ffd8c95687f in QWidgetPrivate::paintSiblingsRecursive (this=0x225f970, pdev=0x2631c70, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x20466f0) at kernel/qwidget.cpp:5803
#42 0x00007ffd8c95593c in QWidgetPrivate::drawWidget (this=0x225f970, pdev=0x2631c70, rgn=..., offset=..., flags=<optimized out>, sharedPainter=0x0, backingStore=0x20466f0) at kernel/qwidget.cpp:5647
#43 0x00007ffd8c95687f in QWidgetPrivate::paintSiblingsRecursive (this=0x225e410, pdev=0x2631c70, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x20466f0) at kernel/qwidget.cpp:5803
#44 0x00007ffd8c95593c in QWidgetPrivate::drawWidget (this=0x225e410, pdev=0x2631c70, rgn=..., offset=..., flags=<optimized out>, sharedPainter=0x0, backingStore=0x20466f0) at kernel/qwidget.cpp:5647
#45 0x00007ffd8c95687f in QWidgetPrivate::paintSiblingsRecursive (this=0x208d3a0, pdev=0x2631c70, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x20466f0) at kernel/qwidget.cpp:5803
#46 0x00007ffd8c95593c in QWidgetPrivate::drawWidget (this=0x208d3a0, pdev=0x2631c70, rgn=..., offset=..., flags=<optimized out>, sharedPainter=0x0, backingStore=0x20466f0) at kernel/qwidget.cpp:5647
#47 0x00007ffd8cb26d28 in QWidgetBackingStore::sync (this=0x20466f0) at painting/qbackingstore.cpp:1373
#48 0x00007ffd8c94c930 in QWidgetPrivate::syncBackingStore (this=0x208d3a0) at kernel/qwidget.cpp:1892
#49 0x00007ffd8c95a47c in QWidget::event (this=0x208dec0, event=0x34b1300) at kernel/qwidget.cpp:8664
#50 0x00007ffd8cd33efb in QMainWindow::event (this=0x208dec0, event=0x34b1300) at widgets/qmainwindow.cpp:1478
#51 0x00007ffd8bcae638 in KXmlGuiWindow::event (this=0x208dec0, ev=0x34b1300) at ../../kdeui/xmlgui/kxmlguiwindow.cpp:126
#52 0x00007ffd8c9097b4 in notify_helper (e=0x34b1300, receiver=0x208dec0, this=0x1c6c460) at kernel/qapplication.cpp:4556
#53 QApplicationPrivate::notify_helper (this=0x1c6c460, receiver=0x208dec0, e=0x34b1300) at kernel/qapplication.cpp:4528
#54 0x00007ffd8c90e583 in QApplication::notify (this=0x7fff44d51e00, receiver=0x208dec0, e=0x34b1300) at kernel/qapplication.cpp:4417
#55 0x00007ffd8bbb2456 in KApplication::notify (this=0x7fff44d51e00, receiver=0x208dec0, event=0x34b1300) at ../../kdeui/kernel/kapplication.cpp:311
#56 0x00007ffd8b3a63ec in QCoreApplication::notifyInternal (this=0x7fff44d51e00, receiver=0x208dec0, event=0x34b1300) at kernel/qcoreapplication.cpp:915
#57 0x00007ffd8b3aa1ca in sendEvent (event=0x34b1300, receiver=0x208dec0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#58 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x1c36670) at kernel/qcoreapplication.cpp:1539
#59 0x00007ffd8b3d5553 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#60 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:279
#61 0x00007ffd8a612d53 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#62 0x00007ffd8a6130a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#63 0x00007ffd8a613164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#64 0x00007ffd8b3d597f in QEventDispatcherGlib::processEvents (this=0x1c37b30, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#65 0x00007ffd8c9b1cde in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#66 0x00007ffd8b3a4f22 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#67 0x00007ffd8b3a5177 in QEventLoop::exec (this=0x7fff44d51d40, flags=...) at kernel/qeventloop.cpp:204
#68 0x00007ffd8b3aa4c7 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#69 0x00007ffd8d7d00d5 in kdemain (argc=<optimized out>, argv=<optimized out>) at ../../../kate/app/katemain.cpp:377
#70 0x00007ffd8d42e76d in __libc_start_main (main=0x400630 <main(int, char**)>, argc=3, ubp_av=0x7fff44d53338, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff44d53328) at libc-start.c:226
#71 0x0000000000400661 in _start ()

Possible duplicates by query: bug 297317, bug 297261, bug 294241, bug 293934.

Reported using DrKonqi
Comment 1 Dominik Haumann 2012-10-24 23:20:46 UTC
*** Bug 308139 has been marked as a duplicate of this bug. ***
Comment 2 Dominik Haumann 2012-10-24 23:23:01 UTC
Adrian, can you have a look again here? You probably find this issue much better than us! Would be awesome :)
Comment 3 Christoph Cullmann 2012-10-27 11:28:32 UTC
We need a testcase for this, else we won't find it, sorry :(
I you could provide a file and some steps to reproduce, we will take a look.
Comment 4 Thiago Jung Bauermann 2012-11-27 02:25:52 UTC
Bug 309846 has a very similar backtrace (the top 4 frames are identical), and in both cases KateIconBorder::paintBorder is involved. So perhaps they are related?

The reporter of 309846 can reproduce the bug everytime, by editing patch files. I was able to reproduce the bug using his method too (besides editing the patch and undoing and redoing, I had to save the file every now and then).
Comment 5 Dominik Haumann 2013-03-23 15:29:07 UTC

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