Bug 235582

Summary: Kate crashes while opening document
Product: [Applications] kate Reporter: Boris <barbour>
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 Boris 2010-04-27 23:05:50 UTC
Application that crashed: kate
Version of the application: 3.3.4
KDE Version: 4.3.4 (KDE 4.3.4)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-2-amd64 x86_64
Distribution: Debian GNU/Linux testing (squeeze)

What I was doing when the application crashed:
While opening (or more likely navigating to open) a document, kate crashes. This happens frequently but not systematically.

 -- Backtrace:
Application: Kate (kdeinit4), signal: Segmentation fault
The current source language is "auto; currently c".
[Current thread is 1 (Thread 0x7f0e056ce750 (LWP 6762))]

Thread 2 (Thread 0x7f0df3ed4910 (LWP 6763)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f0df421f6a6 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7f0df44fd2a0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2304
#2  0x00007f0df421f6e9 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0x7f0df450b36c) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1438
#3  0x00007f0e0260e73a in start_thread (arg=<value optimized out>) at pthread_create.c:300
#4  0x00007f0e028ef69d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f0e056ce750 (LWP 6762)):
[KCrash Handler]
#5  KTextEditor::Range::start (this=0x11) at ../../../interfaces/ktexteditor/range.cpp:301
#6  0x00007f0df4859c67 in KateEditInfo::start (edit=0x1, ret=..., insertBehavior=KTextEditor::SmartCursor::StayOnInsert) at ../../kate/document/kateedit.h:58
#7  translate (edit=0x1, ret=..., insertBehavior=KTextEditor::SmartCursor::StayOnInsert) at ../../kate/smart/katesmartmanager.cpp:45
#8  0x00007f0df4859f9f in KateSmartManager::translateFromRevision (this=0x1167e90, range=<value optimized out>, insertBehavior=) at ../../kate/smart/katesmartmanager.cpp:737
#9  0x00007f0df485a110 in KateSmartManager::newSmartRange (this=0x1167e90, range=..., parent=0x0, insertBehavior=) at ../../kate/smart/katesmartmanager.cpp:206
#10 0x00007f0df47fc14b in KateDocument::newSmartRange (this=<value optimized out>, range=..., parent=0x0, insertBehavior=<value optimized out>) at ../../kate/document/katedocument.cpp:5821
#11 0x00007f0df47e5d00 in KateWordCompletionView (this=0x12d83b0, view=0x1155d00, ac=0x1245a60) at ../../kate/completion/katewordcompletion.cpp:244
#12 0x00007f0df4895743 in KateView (this=0x1155d00, doc=0x114b690, parent=<value optimized out>) at ../../kate/view/kateview.cpp:232
#13 0x00007f0df47fc824 in KateDocument::createView (this=0x114b690, parent=0x94e130) at ../../kate/document/katedocument.cpp:339
#14 0x00007f0df7035cd9 in KateViewManager::createView (this=0xb5fe50, doc=<value optimized out>) at ../../../kate/app/kateviewmanager.cpp:283
#15 0x00007f0df7036428 in KateViewManager::activateView (this=0xb5fe50, d=0x114b690) at ../../../kate/app/kateviewmanager.cpp:483
#16 0x00007f0df70369e5 in KateViewManager::slotDocumentOpen (this=0xb5fe50) at ../../../kate/app/kateviewmanager.cpp:185
#17 0x00007f0df7036d14 in KateViewManager::qt_metacall (this=0xb5fe50, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffd671a500) at ./kateviewmanager.moc:123
#18 0x00007f0e051eec4f in QMetaObject::activate (sender=0xbbfcc0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x1) at kernel/qobject.cpp:3293
#19 0x00007f0e03079702 in QAction::triggered (this=0x11, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#20 0x00007f0e0307b77b in QAction::activate (this=0xbbfcc0, event=<value optimized out>) at kernel/qaction.cpp:1255
#21 0x00007f0e034348fa in QAbstractButtonPrivate::click (this=0xb8c550) at widgets/qabstractbutton.cpp:528
#22 0x00007f0e03434bac in QAbstractButton::mouseReleaseEvent (this=0xbc4e40, e=0x7fffd671afe0) at widgets/qabstractbutton.cpp:1121
#23 0x00007f0e03500c8a in QToolButton::mouseReleaseEvent (this=0x11, e=0x7fffd6719d90) at widgets/qtoolbutton.cpp:721
#24 0x00007f0e030d5c42 in QWidget::event (this=0xbc4e40, event=0x7fffd671afe0) at kernel/qwidget.cpp:7998
#25 0x00007f0e0307f8fc in QApplicationPrivate::notify_helper (this=0x93a590, receiver=0xbc4e40, e=0x7fffd671afe0) at kernel/qapplication.cpp:4300
#26 0x00007f0e030865ab in QApplication::notify (this=0x7fffd671bb80, receiver=0xbc4e40, e=0x7fffd671afe0) at kernel/qapplication.cpp:3865
#27 0x00007f0e03d85de6 in KApplication::notify (this=0x7fffd671bb80, receiver=0xbc4e40, event=0x7fffd671afe0) at ../../kdeui/kernel/kapplication.cpp:302
#28 0x00007f0e051dbf1c in QCoreApplication::notifyInternal (this=0x7fffd671bb80, receiver=0xbc4e40, event=0x7fffd671afe0) at kernel/qcoreapplication.cpp:704
#29 0x00007f0e0308578e in QCoreApplication::sendEvent (receiver=0xbc4e40, event=0x7fffd671afe0, alienWidget=0xbc4e40, nativeWidget=0xbbca20, buttonDown=<value optimized out>, 
    lastMouseReceiver=<value optimized out>, spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#30 QApplicationPrivate::sendMouseEvent (receiver=0xbc4e40, event=0x7fffd671afe0, alienWidget=0xbc4e40, nativeWidget=0xbbca20, buttonDown=<value optimized out>, 
    lastMouseReceiver=<value optimized out>, spontaneous=true) at kernel/qapplication.cpp:2965
#31 0x00007f0e031053cb in QETWidget::translateMouseEvent (this=0xbbca20, event=<value optimized out>) at kernel/qapplication_x11.cpp:4368
#32 0x00007f0e03103d3c in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fffd671b760) at kernel/qapplication_x11.cpp:3501
#33 0x00007f0e0312f7e2 in x11EventSourceDispatch (s=0x93e350, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#34 0x00007f0e01b436c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#35 0x00007f0e01b47538 in ?? () from /lib/libglib-2.0.so.0
#36 0x00007f0e01b476ec in g_main_context_iteration () from /lib/libglib-2.0.so.0
#37 0x00007f0e05205373 in QEventDispatcherGlib::processEvents (this=0x89a7a0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#38 0x00007f0e0312f3de in QGuiEventDispatcherGlib::processEvents (this=0x11, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#39 0x00007f0e051da842 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#40 0x00007f0e051dac1c in QEventLoop::exec (this=0x7fffd671ba80, flags=) at kernel/qeventloop.cpp:201
#41 0x00007f0e051de95b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#42 0x00007f0df72a1ced in kdemain (argc=<value optimized out>, argv=<value optimized out>) at ../../../kate/app/katemain.cpp:257
#43 0x0000000000406e9e in launch (argc=2, _name=<value optimized out>, args=<value optimized out>, cwd=<value optimized out>, envc=16, envs=<value optimized out>, reset_env=false, tty=0x0, 
    avoid_loops=false, startup_id_str=0x8f1711 "bordel;1272402126;485073;3139_TIME25951821") at ../../kinit/kinit.cpp:677
#44 0x0000000000407aad in handle_launcher_request (sock=7, who=<value optimized out>) at ../../kinit/kinit.cpp:1169
#45 0x0000000000407f91 in handle_requests (waitForPid=0) at ../../kinit/kinit.cpp:1362
#46 0x00000000004086c6 in main (argc=2, argv=<value optimized out>, envp=<value optimized out>) at ../../kinit/kinit.cpp:1793
The current source language is "auto; currently asm".
The current source language is "auto; currently c".

Reported using DrKonqi
Comment 1 Dominik Haumann 2010-04-27 23:12:38 UTC
Fixed in KDE 4.5, as the WordCompletion does not use any Smart* anymore. Unfortunately no real way to backport for KDE 4.4 or KDE 4.3 :(
Comment 2 Dominik Haumann 2010-06-08 22:38:58 UTC

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