Bug 228275

Summary: kate crashes closing files
Product: [Applications] kate Reporter: Marcos Dione <mdione>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Marcos Dione 2010-02-24 09:49:20 UTC
Version:           3.4.64 (using Devel)
OS:                Linux
Installed from:    Compiled sources

I have a session with between 10 and 20 files opened. I start closing them selecting some from the Documents list with the mouse and/or the back/forward shortcuts and hitting Ctrl-W. after one of the closings (seems random) it chashes. here's the backtrace:

Application: Kate (kdeinit4), signal: Segmentation fault
[KCrash Handler]
#6  QBasicAtomicInt::ref (this=0xbfb219ac, other=...) at ../../include/QtCore/../../../../qt-copy/src/corelib/arch/qatomic_i386.h:120
#7  QUrl (this=0xbfb219ac, other=...) at /home/mdione/src/system/kde4/qt-copy/src/corelib/io/qurl.cpp:4117
#8  0xb772bc48 in KUrl (this=0xbfb219ac, _u=...) at /home/mdione/src/system/kde4/kdelibs/kdecore/io/kurl.cpp:472
#9  0xb761cb74 in KParts::ReadOnlyPart::url (this=0x9429010) at /home/mdione/src/system/kde4/kdelibs/kparts/part.cpp:465
#10 0xb404476e in KateDocManager::data (this=0x8f17420, index=..., role=35) at /home/mdione/src/system/kde4/kdesdk/kate/app/katedocmanager.cpp:133
#11 0xb407e349 in KateViewDocumentProxyModel::data (this=0x9501bd8, index=..., role=35) at /home/mdione/src/system/kde4/kdesdk/kate/app/kateviewdocumentproxymodel.cpp:325
#12 0xb407fec7 in KateViewDocumentProxyModel::sort (this=0x9501bd8) at /home/mdione/src/system/kde4/kdesdk/kate/app/kateviewdocumentproxymodel.cpp:637
#13 0xb407d878 in KateViewDocumentProxyModel::opened (this=0x9501bd8, index=...) at /home/mdione/src/system/kde4/kdesdk/kate/app/kateviewdocumentproxymodel.cpp:216
#14 0xb40559c6 in KateMainWindow::slotWindowActivated (this=0x903b680) at /home/mdione/src/system/kde4/kdesdk/kate/app/katemainwindow.cpp:579
#15 0xb40504a9 in KateMainWindow::qt_metacall (this=0x903b680, _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0xbfb21d4c) at /home/mdione/src/system/kde4/build/kdesdk/kate/app/katemainwindow.moc:180
#16 0xb6c4d7aa in QMetaObject::metacall (object=0x903b680, cl=33, idx=58, argv=0xbfb21d4c) at /home/mdione/src/system/kde4/qt-copy/src/corelib/kernel/qmetaobject.cpp:237
#17 0xb6c5d5c0 in QMetaObject::activate (sender=0x94e8bf8, m=0xb4099ac4, local_signal_index=1, argv=0x0) at /home/mdione/src/system/kde4/qt-copy/src/corelib/kernel/qobject.cpp:3290
#18 0xb405c8ef in KateViewManager::viewChanged (this=0x94e8bf8) at /home/mdione/src/system/kde4/build/kdesdk/kate/app/kateviewmanager.moc:164
#19 0xb405eaa8 in KateViewManager::activateView (this=0x94e8bf8, view=0x9765358) at /home/mdione/src/system/kde4/kdesdk/kate/app/kateviewmanager.cpp:462
#20 0xb405e337 in KateViewManager::createView (this=0x94e8bf8, doc=0x94883c8) at /home/mdione/src/system/kde4/kdesdk/kate/app/kateviewmanager.cpp:301
#21 0xb405e11e in KateViewManager::documentDeleted (this=0x94e8bf8) at /home/mdione/src/system/kde4/kdesdk/kate/app/kateviewmanager.cpp:271
#22 0xb405c793 in KateViewManager::qt_metacall (this=0x94e8bf8, _c=QMetaObject::InvokeMetaMethod, _id=17, _a=0xbfb21f48) at /home/mdione/src/system/kde4/build/kdesdk/kate/app/kateviewmanager.moc:138
#23 0xb6c4d7aa in QMetaObject::metacall (object=0x94e8bf8, cl=33, idx=45, argv=0xbfb21f48) at /home/mdione/src/system/kde4/qt-copy/src/corelib/kernel/qmetaobject.cpp:237
#24 0xb6c5d5c0 in QMetaObject::activate (sender=0x8f17420, m=0xb4098cf8, local_signal_index=2, argv=0xbfb21f48) at /home/mdione/src/system/kde4/qt-copy/src/corelib/kernel/qobject.cpp:3290
#25 0xb40434e4 in KateDocManager::documentDeleted (this=0x8f17420, _t1=0x9429010) at /home/mdione/src/system/kde4/build/kdesdk/kate/app/katedocmanager.moc:142
#26 0xb404515a in KateDocManager::deleteDoc (this=0x8f17420, doc=0x9429010) at /home/mdione/src/system/kde4/kdesdk/kate/app/katedocmanager.cpp:218
#27 0xb4046039 in KateDocManager::closeDocument (this=0x8f17420, doc=0x9429010, closeUrl=true) at /home/mdione/src/system/kde4/kdesdk/kate/app/katedocmanager.cpp:365
#28 0xb405ddc2 in KateViewManager::slotDocumentClose (this=0x94e8bf8, document=0x9429010) at /home/mdione/src/system/kde4/kdesdk/kate/app/kateviewmanager.cpp:202
#29 0xb405de11 in KateViewManager::slotDocumentClose (this=0x94e8bf8) at /home/mdione/src/system/kde4/kdesdk/kate/app/kateviewmanager.cpp:211
#30 0xb405c6cd in KateViewManager::qt_metacall (this=0x94e8bf8, _c=QMetaObject::InvokeMetaMethod, _id=9, _a=0xbfb222e8) at /home/mdione/src/system/kde4/build/kdesdk/kate/app/kateviewmanager.moc:130
#31 0xb6c4d7aa in QMetaObject::metacall (object=0x94e8bf8, cl=33, idx=37, argv=0xbfb222e8) at /home/mdione/src/system/kde4/qt-copy/src/corelib/kernel/qmetaobject.cpp:237
#32 0xb6c5d5c0 in QMetaObject::activate (sender=0x9523468, m=0xb6a6db78, local_signal_index=1, argv=0xbfb222e8) at /home/mdione/src/system/kde4/qt-copy/src/corelib/kernel/qobject.cpp:3290
#33 0xb63078c9 in QAction::triggered (this=0x9523468, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#34 0xb63097dc in QAction::activate (this=0x9523468, event=QAction::Trigger) at /home/mdione/src/system/kde4/qt-copy/src/gui/kernel/qaction.cpp:1255
#35 0xb630ae18 in QAction::event (this=0xbfb219ac, e=0x6f0069) at /home/mdione/src/system/kde4/qt-copy/src/gui/kernel/qaction.cpp:1181
#36 0xb6e5dcc5 in KAction::event (this=0x9523468, event=0xbfb22808) at /home/mdione/src/system/kde4/kdelibs/kdeui/actions/kaction.cpp:131
#37 0xb630d42c in QApplicationPrivate::notify_helper (this=0x8e20820, receiver=0x9523468, e=0xbfb22808) at /home/mdione/src/system/kde4/qt-copy/src/gui/kernel/qapplication.cpp:4300
#38 0xb6314e26 in QApplication::notify (this=0xbfb236dc, receiver=0x9523468, e=0xbfb22808) at /home/mdione/src/system/kde4/qt-copy/src/gui/kernel/qapplication.cpp:3704
#39 0xb6f41b54 in KApplication::notify (this=0xbfb236dc, receiver=0x9523468, event=0xbfb22808) at /home/mdione/src/system/kde4/kdelibs/kdeui/kernel/kapplication.cpp:302
#40 0xb6c48ee8 in QCoreApplication::notifyInternal (this=0xbfb236dc, receiver=0x9523468, event=0xbfb22808) at /home/mdione/src/system/kde4/qt-copy/src/corelib/kernel/qcoreapplication.cpp:704
#41 0xb634a637 in QCoreApplication::sendEvent (this=0x8e208cc, e=0xbfb22cc4) at ../../include/QtCore/../../../../qt-copy/src/corelib/kernel/qcoreapplication.h:215
#42 QShortcutMap::dispatchEvent (this=0x8e208cc, e=0xbfb22cc4) at /home/mdione/src/system/kde4/qt-copy/src/gui/kernel/qshortcutmap.cpp:879
#43 0xb634c32e in QShortcutMap::tryShortcutEvent (this=0x8e208cc, o=0x95e7f88, e=0xbfb22cc4) at /home/mdione/src/system/kde4/qt-copy/src/gui/kernel/qshortcutmap.cpp:364
#44 0xb63171bb in QApplication::notify (this=0xbfb236dc, receiver=0x95e7f88, e=0xbfb22cc4) at /home/mdione/src/system/kde4/qt-copy/src/gui/kernel/qapplication.cpp:3746
#45 0xb6f41b54 in KApplication::notify (this=0xbfb236dc, receiver=0x95e7f88, event=0xbfb22cc4) at /home/mdione/src/system/kde4/kdelibs/kdeui/kernel/kapplication.cpp:302
#46 0xb6c48ee8 in QCoreApplication::notifyInternal (this=0xbfb236dc, receiver=0x95e7f88, event=0xbfb22cc4) at /home/mdione/src/system/kde4/qt-copy/src/corelib/kernel/qcoreapplication.cpp:704
#47 0xb630e63e in QCoreApplication::sendSpontaneousEvent (receiver=0x95e7f88, event=0xbfb219ac) at ../../include/QtCore/../../../../qt-copy/src/corelib/kernel/qcoreapplication.h:218
#48 qt_sendSpontaneousEvent (receiver=0x95e7f88, event=0xbfb219ac) at /home/mdione/src/system/kde4/qt-copy/src/gui/kernel/qapplication.cpp:5279
#49 0xb63b4dae in QKeyMapper::sendKeyEvent (keyWidget=0x95e7f88, grab=false, type=QEvent::KeyPress, code=87, modifiers=..., text=..., autorepeat=<value optimized out>, count=<value optimized out>, 
    nativeScanCode=25, nativeVirtualKey=119, nativeModifiers=4) at /home/mdione/src/system/kde4/qt-copy/src/gui/kernel/qkeymapper_x11.cpp:1861
#50 0xb63b7a32 in QKeyMapperPrivate::translateKeyEvent (this=0x8e44f60, keyWidget=0x95e7f88, event=0xbfb23350, grab=105) at /home/mdione/src/system/kde4/qt-copy/src/gui/kernel/qkeymapper_x11.cpp:1831
#51 0xb638f873 in QApplication::x11ProcessEvent (this=0xbfb236dc, event=0xbfb23350) at /home/mdione/src/system/kde4/qt-copy/src/gui/kernel/qapplication_x11.cpp:3394
#52 0xb63b9c0a in x11EventSourceDispatch (s=0x8e4ff80, callback=0, user_data=0x0) at /home/mdione/src/system/kde4/qt-copy/src/gui/kernel/qguieventdispatcher_glib.cpp:146
#53 0xb5be7b38 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#54 0xb5beb3d0 in ?? () from /lib/libglib-2.0.so.0
#55 0xb5beb503 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#56 0xb6c70125 in QEventDispatcherGlib::processEvents (this=0x8e1f8a8, flags=...) at /home/mdione/src/system/kde4/qt-copy/src/corelib/kernel/qeventdispatcher_glib.cpp:412
#57 0xb63b9435 in QGuiEventDispatcherGlib::processEvents (this=0x8e1f8a8, flags=...) at /home/mdione/src/system/kde4/qt-copy/src/gui/kernel/qguieventdispatcher_glib.cpp:204
#58 0xb6c47749 in QEventLoop::processEvents (this=0xbfb23644, flags=) at /home/mdione/src/system/kde4/qt-copy/src/corelib/kernel/qeventloop.cpp:149
#59 0xb6c47922 in QEventLoop::exec (this=0xbfb23644, flags=...) at /home/mdione/src/system/kde4/qt-copy/src/corelib/kernel/qeventloop.cpp:197
#60 0xb6c49929 in QCoreApplication::exec () at /home/mdione/src/system/kde4/qt-copy/src/corelib/kernel/qcoreapplication.cpp:981
#61 0xb630d4c7 in QApplication::exec () at /home/mdione/src/system/kde4/qt-copy/src/gui/kernel/qapplication.cpp:3579
#62 0xb446aa66 in kdemain (argc=3, argv=0x8dc64c8) at /home/mdione/src/system/kde4/kdesdk/kate/app/katemain.cpp:377
#63 0x0804d898 in launch (argc=3, _name=0x8e0d49c "kate", args=0x8e0d4e2 "", cwd=0x0, envc=0, envs=0x8e0d4e6 "", reset_env=false, tty=0x0, avoid_loops=false, startup_id_str=0x80524d7 "0")
    at /home/mdione/src/system/kde4/kdelibs/kinit/kinit.cpp:719
#64 0x0804e92d in handle_launcher_request (sock=8, who=0x8052770 "launcher") at /home/mdione/src/system/kde4/kdelibs/kinit/kinit.cpp:1211
#65 0x0804f058 in handle_requests (waitForPid=0) at /home/mdione/src/system/kde4/kdelibs/kinit/kinit.cpp:1404
#66 0x080504d3 in main (argc=4, argv=0xbfb242f4, envp=0xbfb24308) at /home/mdione/src/system/kde4/kdelibs/kinit/kinit.cpp:1843


my setup is: compiled from svn/git; from qt up to kdelibs the checkout was refreshed last night, kate must have been compiled last saturday.
Comment 1 Dominik Haumann 2010-03-11 18:07:55 UTC

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