Bug 241134

Summary: Kate crashes when file changes
Product: [Applications] kate Reporter: John Whitlock <John-Whitlock>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description John Whitlock 2010-06-08 22:32:49 UTC
Application that crashed: kate
Version of the application: 3.3.5
KDE Version: 4.3.5 (KDE 4.3.5)
Qt Version: 4.6.2
Operating System: Linux 2.6.31-gentoo-r10 x86_64

What I was doing when the application crashed:
Kate is crashing every hour or so while I am working on several files.  Sometimes the crash happens when I'm saving the file, sometime when I've changed the file from outside of Kate.  I haven't narrowed down reproducable steps to make it always crash.

 -- Backtrace:
Application: Kate (kdeinit4), signal: Segmentation fault
Traceback (most recent call last):
  File "/usr/share/gdb/auto-load/usr/lib64/libgobject-2.0.so.0.2200.5-gdb.py", line 9, in <module>
    from gobject import register
  File "/usr/share/glib-2.0/gdb/gobject.py", line 3, in <module>
    import gdb.backtrace
ImportError: No module named backtrace
The current source language is "auto; currently c".
[Current thread is 1 (Thread 0x7f9720fd5740 (LWP 14849))]

Thread 2 (Thread 0x7f9710029910 (LWP 14850)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f97109c7c06 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7f9710ca5220) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2304
#2  0x00007f97109c7c49 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0x7f9710cb32ec) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1438
#3  0x00007f972087e2a7 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#4  0x00007f971d26f8cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f9720fd5740 (LWP 14849)):
[KCrash Handler]
#5  KTextEditor::Range::start (this=0x11) at /usr/src/debug/kde-base/kdelibs-4.3.5/kdelibs-4.3.5/interfaces/ktexteditor/range.cpp:300
#6  0x00007f9710da9477 in KateEditInfo::start (edit=0x1, ret=..., insertBehavior=KTextEditor::SmartCursor::StayOnInsert)
    at /usr/src/debug/kde-base/kdelibs-4.3.5/kdelibs-4.3.5/kate/document/kateedit.h:58
#7  translate (edit=0x1, ret=..., insertBehavior=KTextEditor::SmartCursor::StayOnInsert) at /usr/src/debug/kde-base/kdelibs-4.3.5/kdelibs-4.3.5/kate/smart/katesmartmanager.cpp:45
#8  0x00007f9710da97be in KateSmartManager::translateFromRevision (this=<value optimized out>, range=<value optimized out>, insertBehavior=...)
    at /usr/src/debug/kde-base/kdelibs-4.3.5/kdelibs-4.3.5/kate/smart/katesmartmanager.cpp:737
#9  0x00007f9710da98fa in KateSmartManager::newSmartRange (this=0x1b7fe30, range=..., parent=0x0, insertBehavior=..., internal=false)
    at /usr/src/debug/kde-base/kdelibs-4.3.5/kdelibs-4.3.5/kate/smart/katesmartmanager.cpp:206
#10 0x00007f9710d4e4db in KateDocument::newSmartRange (this=<value optimized out>, range=..., parent=0x0, insertBehavior=<value optimized out>)
    at /usr/src/debug/kde-base/kdelibs-4.3.5/kdelibs-4.3.5/kate/document/katedocument.cpp:5821
#11 0x00007f9710d37f39 in KateWordCompletionView (this=0x1d738a0, view=0x1c907e0, ac=0x9993a0) at /usr/src/debug/kde-base/kdelibs-4.3.5/kdelibs-4.3.5/kate/completion/katewordcompletion.cpp:244
#12 0x00007f9710de4bcf in KateView (this=0x1c907e0, doc=0x1c86630, parent=<value optimized out>) at /usr/src/debug/kde-base/kdelibs-4.3.5/kdelibs-4.3.5/kate/view/kateview.cpp:232
#13 0x00007f9710d4ebc4 in KateDocument::createView (this=0x1c86630, parent=0x17b7660) at /usr/src/debug/kde-base/kdelibs-4.3.5/kdelibs-4.3.5/kate/document/katedocument.cpp:339
#14 0x00007f9713e7947d in KateViewManager::createView (this=0x8e1e40, doc=<value optimized out>) at /usr/src/debug/kde-base/kate-4.3.5/kate-4.3.5/kate/app/kateviewmanager.cpp:283
#15 0x00007f9713e79c28 in KateViewManager::activateView (this=0x8e1e40, d=0x1c86630) at /usr/src/debug/kde-base/kate-4.3.5/kate-4.3.5/kate/app/kateviewmanager.cpp:483
#16 0x00007f9713e7a1ef in KateViewManager::slotDocumentOpen (this=0x8e1e40) at /usr/src/debug/kde-base/kate-4.3.5/kate-4.3.5/kate/app/kateviewmanager.cpp:185
#17 0x00007f9713e7a576 in KateViewManager::qt_metacall (this=0x8e1e40, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff27a2d160)
    at /usr/src/debug/kde-base/kate-4.3.5/kate-4.3.5_build/kate/app/kateviewmanager.moc:129
#18 0x00007f9720c14167 in QMetaObject::activate (sender=0xa17d60, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x1) at kernel/qobject.cpp:3285
#19 0x00007f971de53ca2 in QAction::triggered (this=0x11, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#20 0x00007f971de55ce0 in QAction::activate (this=0xa17d60, event=<value optimized out>) at kernel/qaction.cpp:1255
#21 0x00007f971e212fca in QAbstractButtonPrivate::click (this=0xa65db0) at widgets/qabstractbutton.cpp:528
#22 0x00007f971e21328c in QAbstractButton::mouseReleaseEvent (this=0x97faf0, e=0x7fff27a2dcf0) at widgets/qabstractbutton.cpp:1121
#23 0x00007f971e2df16a in QToolButton::mouseReleaseEvent (this=0x11, e=0x7fff27a2ca00) at widgets/qtoolbutton.cpp:721
#24 0x00007f971deb10e2 in QWidget::event (this=0x97faf0, event=0x7fff27a2dcf0) at kernel/qwidget.cpp:7998
#25 0x00007f971de59e7d in QApplicationPrivate::notify_helper (this=0x669560, receiver=0x97faf0, e=0x7fff27a2dcf0) at kernel/qapplication.cpp:4300
#26 0x00007f971de61f4c in QApplication::notify (this=<value optimized out>, receiver=0x97faf0, e=0x7fff27a2dcf0) at kernel/qapplication.cpp:3865
#27 0x00007f971f02aa6b in KApplication::notify (this=0x7fff27a2e920, receiver=0x97faf0, event=0x7fff27a2dcf0) at /usr/src/debug/kde-base/kdelibs-4.3.5/kdelibs-4.3.5/kdeui/kernel/kapplication.cpp:302
#28 0x00007f9720c00dab in QCoreApplication::notifyInternal (this=0x7fff27a2e920, receiver=0x97faf0, event=0x7fff27a2dcf0) at kernel/qcoreapplication.cpp:704
#29 0x00007f971de60adb in QCoreApplication::sendEvent (receiver=0x97faf0, event=0x7fff27a2dcf0, alienWidget=0x97faf0, nativeWidget=0xa64240, buttonDown=<value optimized out>, lastMouseReceiver=..., 
    spontaneous=true) at src/corelib/kernel/qcoreapplication.h:215
#30 QApplicationPrivate::sendMouseEvent (receiver=0x97faf0, event=0x7fff27a2dcf0, alienWidget=0x97faf0, nativeWidget=0xa64240, buttonDown=<value optimized out>, lastMouseReceiver=..., spontaneous=
    true) at kernel/qapplication.cpp:2965
#31 0x00007f971dee2bd0 in QETWidget::translateMouseEvent (this=0xa64240, event=<value optimized out>) at kernel/qapplication_x11.cpp:4368
#32 0x00007f971dee1d8c in QApplication::x11ProcessEvent (this=0x7fff27a2e920, event=0x7fff27a2e4d0) at kernel/qapplication_x11.cpp:3501
#33 0x00007f971df0a66a in x11EventSourceDispatch (s=0x66d170, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#34 0x00007f971cae6d99 in g_main_dispatch (context=0x66c040) at gmain.c:1960
#35 IA__g_main_context_dispatch (context=0x66c040) at gmain.c:2513
#36 0x00007f971caea5e8 in g_main_context_iterate (context=0x66c040, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2591
#37 0x00007f971caea79c in IA__g_main_context_iteration (context=0x66c040, may_block=1) at gmain.c:2654
#38 0x00007f9720c2a54c in QEventDispatcherGlib::processEvents (this=0x669520, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#39 0x00007f971df0a20f in QGuiEventDispatcherGlib::processEvents (this=0x11, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#40 0x00007f9720bff6d2 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#41 0x00007f9720bffaa4 in QEventLoop::exec (this=0x7fff27a2e800, flags=...) at kernel/qeventloop.cpp:201
#42 0x00007f9720c01ef6 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#43 0x00007f97140bdfcd in kdemain (argc=1, argv=0x64d560) at /usr/src/debug/kde-base/kate-4.3.5/kate-4.3.5/kate/app/katemain.cpp:257
#44 0x000000000040753e in launch (argc=1, _name=0x64cd88 "/usr/bin/kate", args=<value optimized out>, cwd=0x0, envc=1, envs=0x64cdaa "", reset_env=false, tty=0x0, avoid_loops=false, startup_id_str=
    0x64cdb3 "venti.greblock;1276027665;544401;6001_TIME99771428") at /usr/src/debug/kde-base/kdelibs-4.3.5/kdelibs-4.3.5/kinit/kinit.cpp:670
#45 0x0000000000407d18 in handle_launcher_request (sock=8, who=<value optimized out>) at /usr/src/debug/kde-base/kdelibs-4.3.5/kdelibs-4.3.5/kinit/kinit.cpp:1162
#46 0x00000000004081b1 in handle_requests (waitForPid=0) at /usr/src/debug/kde-base/kdelibs-4.3.5/kdelibs-4.3.5/kinit/kinit.cpp:1355
#47 0x0000000000408d85 in main (argc=1, argv=0x7fff27a306f8, envp=0x7fff27a30708) at /usr/src/debug/kde-base/kdelibs-4.3.5/kdelibs-4.3.5/kinit/kinit.cpp:1786
The current source language is "auto; currently asm".
The current source language is "auto; currently c".

Reported using DrKonqi
Comment 1 Dominik Haumann 2010-06-08 22:36:51 UTC
fixed in kde 4.4.1.

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