Bug 242355 - kate crashes when closing last opened file
Summary: kate crashes when closing last opened file
Status: RESOLVED DUPLICATE of bug 230426
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: 2010-06-21 13:44 UTC by aa.pp.ii+kde
Modified: 2010-06-21 16:58 UTC (History)
0 users

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 aa.pp.ii+kde 2010-06-21 13:44:23 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-23-generic x86_64
Distribution: Ubuntu 10.04 LTS

-- Information about the crash:
open kate, last opened files are presented, click close file to close the latest open file and kate crashes.
note that the file I'm trying to close does not exist any more but it is reopened by the session.

The crash can be reproduced every time.

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

Thread 2 (Thread 0x7f76b93dc710 (LWP 32141)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007f76b93dbaa0 in ?? ()
#2  0x00007fffb4bff852 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 1 (Thread 0x7f76d410c760 (LWP 32140)):
[KCrash Handler]
#5  QUrl (this=0x7fffb4ba8260, other=...) at io/qurl.cpp:4114
#6  0x00007f76d2963fb9 in KUrl (this=0x7fffb4ba8260, _u=...) at ../../kdecore/io/kurl.cpp:472
#7  0x00007f76ce505391 in KParts::ReadOnlyPart::url (this=<value optimized out>) at ../../kparts/part.cpp:465
#8  0x00007f76d2613aaf in KateDocManager::data (this=<value optimized out>, index=<value optimized out>, role=<value optimized out>) at ../../../kate/app/katedocmanager.cpp:133
#9  0x00007f76d2646f50 in KateViewDocumentProxyModel::data (this=0x2387280, index=..., role=35) at ../../../kate/app/kateviewdocumentproxymodel.cpp:325
#10 0x00007f76d2648d0b in KateViewDocumentProxyModel::sort (this=0x2e46ce0) at ../../../kate/app/kateviewdocumentproxymodel.cpp:637
#11 0x00007f76d264a0e8 in KateViewDocumentProxyModel::opened (this=0x2387280, index=...) at ../../../kate/app/kateviewdocumentproxymodel.cpp:216
#12 0x00007f76d261dc8f in KateMainWindow::slotWindowActivated (this=0x224ccb0) at ../../../kate/app/katemainwindow.cpp:566
#13 0x00007f76d2622613 in KateMainWindow::qt_metacall (this=0x224ccb0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffb4ba88e0) at ./katemainwindow.moc:181
#14 0x00007f76d1a0ee3f in QMetaObject::activate (sender=0x22b4cf0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x22d6280) at kernel/qobject.cpp:3293
#15 0x00007f76d262764c in KateViewManager::activateView (this=0x22b4cf0, view=0x296e850) at ../../../kate/app/kateviewmanager.cpp:469
#16 0x00007f76d262843f in KateViewManager::createView (this=0x22b4cf0, doc=<value optimized out>) at ../../../kate/app/kateviewmanager.cpp:308
#17 0x00007f76d26298aa in KateViewManager::qt_metacall (this=0x22b4cf0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffb4ba8b30) at ./kateviewmanager.moc:138
#18 0x00007f76d1a0ee3f in QMetaObject::activate (sender=0x1ef4080, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x22d6280) at kernel/qobject.cpp:3293
#19 0x00007f76d260e392 in KateDocManager::documentDeleted (this=0x7fffb4ba8260, _t1=0x22d6280) at ./katedocmanager.moc:138
#20 0x00007f76d260f7bb in KateDocManager::deleteDoc (this=0x1ef4080, doc=0x22d6280) at ../../../kate/app/katedocmanager.cpp:218
#21 0x00007f76d2614532 in KateDocManager::closeDocument (this=0x1ef4080, doc=0x22d6280, closeUrl=true) at ../../../kate/app/katedocmanager.cpp:366
#22 0x00007f76d2625527 in KateViewManager::slotDocumentClose (this=<value optimized out>, document=0x22d6280) at ../../../kate/app/kateviewmanager.cpp:205
#23 0x00007f76d2629811 in KateViewManager::qt_metacall (this=0x22b4cf0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffb4ba92c0) at ./kateviewmanager.moc:130
#24 0x00007f76d1a0ee3f in QMetaObject::activate (sender=0x23e5f20, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x22d6280) at kernel/qobject.cpp:3293
#25 0x00007f76d2ec5032 in QAction::triggered (this=0x7fffb4ba8260, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#26 0x00007f76d2ec70ab in QAction::activate (this=0x23e5f20, event=<value optimized out>) at kernel/qaction.cpp:1255
#27 0x00007f76d32816ca in QAbstractButtonPrivate::click (this=0x26e1f30) at widgets/qabstractbutton.cpp:528
#28 0x00007f76d328197c in QAbstractButton::mouseReleaseEvent (this=0x23c24f0, e=0x7fffb4ba9c20) at widgets/qabstractbutton.cpp:1121
#29 0x00007f76d334d8ca in QToolButton::mouseReleaseEvent (this=0x7fffb4ba8260, e=0x70) at widgets/qtoolbutton.cpp:721
#30 0x00007f76d2f21582 in QWidget::event (this=0x23c24f0, event=0x7fffb4ba9c20) at kernel/qwidget.cpp:7998
#31 0x00007f76d2ecb22c in QApplicationPrivate::notify_helper (this=0x1e9da40, receiver=0x23c24f0, e=0x7fffb4ba9c20) at kernel/qapplication.cpp:4300
#32 0x00007f76d2ed1ecb in QApplication::notify (this=0x7fffb4baa9b0, receiver=0x23c24f0, e=0x7fffb4ba9c20) at kernel/qapplication.cpp:3865
#33 0x00007f76d21bc526 in KApplication::notify (this=0x7fffb4baa9b0, receiver=0x23c24f0, event=0x7fffb4ba9c20) at ../../kdeui/kernel/kapplication.cpp:302
#34 0x00007f76d19fc06c in QCoreApplication::notifyInternal (this=0x7fffb4baa9b0, receiver=0x23c24f0, event=0x7fffb4ba9c20) at kernel/qcoreapplication.cpp:704
#35 0x00007f76d2ed10ae in QCoreApplication::sendEvent (receiver=0x23c24f0, event=0x7fffb4ba9c20, alienWidget=0x23c24f0, nativeWidget=0x2386230, buttonDown=<value optimized out>, 
    lastMouseReceiver=<value optimized out>, spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#36 QApplicationPrivate::sendMouseEvent (receiver=0x23c24f0, event=0x7fffb4ba9c20, alienWidget=0x23c24f0, nativeWidget=0x2386230, buttonDown=<value optimized out>, 
    lastMouseReceiver=<value optimized out>, spontaneous=true) at kernel/qapplication.cpp:2965
#37 0x00007f76d2f50f65 in QETWidget::translateMouseEvent (this=0x2386230, event=<value optimized out>) at kernel/qapplication_x11.cpp:4368
#38 0x00007f76d2f4f8ac in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fffb4baa540) at kernel/qapplication_x11.cpp:3501
#39 0x00007f76d2f7b882 in x11EventSourceDispatch (s=0x1e9be50, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#40 0x00007f76d0c6f8c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#41 0x00007f76d0c73748 in ?? () from /lib/libglib-2.0.so.0
#42 0x00007f76d0c738fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#43 0x00007f76d1a25513 in QEventDispatcherGlib::processEvents (this=0x1e75770, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#44 0x00007f76d2f7b46e in QGuiEventDispatcherGlib::processEvents (this=0x7fffb4ba8260, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#45 0x00007f76d19fa992 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#46 0x00007f76d19fad6c in QEventLoop::exec (this=0x7fffb4baa870, flags=) at kernel/qeventloop.cpp:201
#47 0x00007f76d19feaab in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#48 0x00007f76d3d2ceed in kdemain (argc=<value optimized out>, argv=<value optimized out>) at ../../../kate/app/katemain.cpp:377
#49 0x00007f76d39c2c4d in __libc_start_main (main=<value optimized out>, argc=<value optimized out>, ubp_av=<value optimized out>, init=<value optimized out>, fini=<value optimized out>, 
    rtld_fini=<value optimized out>, stack_end=0x7fffb4babf38) at libc-start.c:226
#50 0x00000000004006b9 in _start ()

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

Possible duplicates by query: bug 241898, bug 238485, bug 238369, bug 236020, bug 232323.

Reported using DrKonqi
Comment 1 Dominik Haumann 2010-06-21 16:58:23 UTC
Certainly fixed in KDE >= 4.4.4.

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