Bug 67270

Summary: Kate crashes on file close (reproducible)
Product: [Unmaintained] kdelibs Reporter: palantir
Component: kmdiAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Backtrace

Description palantir 2003-11-05 08:22:29 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
OS:          Linux

Open Kate, open a file. Close the docks (open files, file browser, etc).
Now click on the opne files button and a floating pane appears containing the list of the most recent files. While this _floating_ dock is visible, click on the close file button (the one with the black X). Crash.
Comment 1 palantir 2003-11-05 08:23:00 UTC
Created attachment 3032 [details]
Backtrace
Comment 2 Stephan Kulow 2003-11-05 09:15:13 UTC
Please paste backtraces inline for easier look up

[New Thread 16384 (LWP 1622)]
0x4123c0c7 in waitpid () from /lib/libpthread.so.0
#0  0x4123c0c7 in waitpid () from /lib/libpthread.so.0
#1  0x40718759 in KCrash::defaultCrashHandler(int) ()
   from /opt/kde3/kde3_head_red/lib/libkdecore.so.4
#2  0x4123ad0d in __pthread_sighandler () from /lib/libpthread.so.0
#3  <signal handler called>
#4  0x0000001d in ?? ()
#5  0x41c3feaa in KMdiMainFrm::removeFromActiveDockList(KMdiDockContainer*) ()
   from /opt/kde3/kde3_head_red/lib/libkmdi.so.1
#6  0x41c40b10 in KMdiMainFrm::qt_invoke(int, QUObject*) ()
   from /opt/kde3/kde3_head_red/lib/libkmdi.so.1
#7  0x41b7975b in KateMainWindow::qt_invoke(int, QUObject*) ()
   from /opt/kde3/kde3_head_red/lib/libkateinterfaces.so.0
#8  0x40b58c1f in QObject::activate_signal(QConnectionList*, QUObject*) (
    this=0x81989b8, clist=0x81a0460, o=0xbfffdac0) at kernel/qobject.cpp:2333
#9  0x41c443d0 in KMdiDockContainer::deactivated(KMdiDockContainer*) ()
   from /opt/kde3/kde3_head_red/lib/libkmdi.so.1
#10 0x41c46c04 in KMdiDockContainer::tabClicked(int) ()
   from /opt/kde3/kde3_head_red/lib/libkmdi.so.1
#11 0x41c48ec7 in KMdiDockContainer::collapseOverlapped() ()
   from /opt/kde3/kde3_head_red/lib/libkmdi.so.1
#12 0x41c44445 in KMdiDockContainer::qt_invoke(int, QUObject*) ()
   from /opt/kde3/kde3_head_red/lib/libkmdi.so.1
#13 0x40b58d6c in QObject::activate_signal(QConnectionList*, QUObject*) (
    this=0x8165808, clist=0x81a03a0, o=0xbfffdd00) at kernel/qobject.cpp:2357
#14 0x40b58abe in QObject::activate_signal(int) (this=0x8165808, signal=11)
    at kernel/qobject.cpp:2302
#15 0x41c4019c in KMdiMainFrm::collapseOverlapContainers() ()
   from /opt/kde3/kde3_head_red/lib/libkmdi.so.1
#16 0x41c38704 in KMdiMainFrm::activateView(KMdiChildView*) ()
   from /opt/kde3/kde3_head_red/lib/libkmdi.so.1
#17 0x41c40a30 in KMdiMainFrm::qt_invoke(int, QUObject*) ()
   from /opt/kde3/kde3_head_red/lib/libkmdi.so.1
#18 0x41b7975b in KateMainWindow::qt_invoke(int, QUObject*) ()
   from /opt/kde3/kde3_head_red/lib/libkateinterfaces.so.0
#19 0x40b58c1f in QObject::activate_signal(QConnectionList*, QUObject*) (
    this=0x81cc788, clist=0x81d0ba0, o=0xbfffdea0) at kernel/qobject.cpp:2333
#20 0x41c31e7e in KMdiChildView::focusInEventOccurs(KMdiChildView*) ()
   from /opt/kde3/kde3_head_red/lib/libkmdi.so.1
#21 0x41c33ea6 in KMdiChildView::activate() ()
   from /opt/kde3/kde3_head_red/lib/libkmdi.so.1
#22 0x41c34297 in KMdiChildView::eventFilter(QObject*, QEvent*) ()
   from /opt/kde3/kde3_head_red/lib/libkmdi.so.1
#23 0x40b5684e in QObject::activate_filters(QEvent*) (this=0x8323050, 
    e=0xbfffe210) at kernel/qobject.cpp:902
#24 0x40b566c0 in QObject::event(QEvent*) (this=0x8323050, e=0xbfffe210)
    at kernel/qobject.cpp:735
#25 0x40b8fb13 in QWidget::event(QEvent*) (this=0x8323050, e=0xbfffe210)
    at kernel/qwidget.cpp:4408
#26 0x40af6c35 in QApplication::internalNotify(QObject*, QEvent*) (
    this=0xbffff230, receiver=0x8323050, e=0xbfffe210)
    at kernel/qapplication.cpp:2582
#27 0x40af686b in QApplication::notify(QObject*, QEvent*) (this=0xbffff230, 
    receiver=0x8323050, e=0xbfffe210) at kernel/qapplication.cpp:2470
#28 0x406821ec in KApplication::notify(QObject*, QEvent*) ()
   from /opt/kde3/kde3_head_red/lib/libkdecore.so.4
#29 0x40a8d47f in QApplication::sendEvent(QObject*, QEvent*) (
    receiver=0x8323050, event=0xbfffe210) at qapplication.h:490
#30 0x40b8d2c6 in QWidget::setFocus() (this=0x8323050)
    at kernel/qwidget.cpp:3099
#31 0x40b8d127 in QWidget::setFocus() (this=0x82c6198)
    at kernel/qwidget.cpp:3040
#32 0x41bc708b in Kate::View::setFocus() ()
   from /opt/kde3/kde3_head_red/lib/libkatepartinterfaces.so.0
#33 0x41b841a2 in KateViewManager::slotViewChanged() ()
   from /opt/kde3/kde3_head_red/lib/libkateinterfaces.so.0
#34 0x41b83112 in KateViewManager::qt_invoke(int, QUObject*) ()
   from /opt/kde3/kde3_head_red/lib/libkateinterfaces.so.0
#35 0x40b58d6c in QObject::activate_signal(QConnectionList*, QUObject*) (
    this=0x81ccfe0, clist=0x81d09f8, o=0xbfffe3b0) at kernel/qobject.cpp:2357
#36 0x40b58abe in QObject::activate_signal(int) (this=0x81ccfe0, signal=4)
    at kernel/qobject.cpp:2302
#37 0x41b83000 in KateViewManager::viewChanged() ()
   from /opt/kde3/kde3_head_red/lib/libkateinterfaces.so.0
#38 0x41b83f8c in KateViewManager::activateView(Kate::View*) ()
   from /opt/kde3/kde3_head_red/lib/libkateinterfaces.so.0
#39 0x41b83a1f in KateViewManager::createView(Kate::Document*) ()
   from /opt/kde3/kde3_head_red/lib/libkateinterfaces.so.0
#40 0x41b84119 in KateViewManager::activateView(unsigned) ()
   from /opt/kde3/kde3_head_red/lib/libkateinterfaces.so.0
#41 0x41b71720 in KateFileList::slotActivateView(QListBoxItem*) ()
   from /opt/kde3/kde3_head_red/lib/libkateinterfaces.so.0
#42 0x41b71118 in KateFileList::qt_invoke(int, QUObject*) ()
   from /opt/kde3/kde3_head_red/lib/libkateinterfaces.so.0
#43 0x40b58c1f in QObject::activate_signal(QConnectionList*, QUObject*) (
    this=0x81d0f50, clist=0x81d4528, o=0xbfffe570) at kernel/qobject.cpp:2333
#44 0x40ea9451 in QListBox::highlighted(QListBoxItem*) (this=0x81d0f50, 
    t0=0x8424538) at .moc/debug-shared-mt/moc_qlistbox.cpp:286
#45 0x40c37ffd in QListBox::takeItem(QListBoxItem const*) (this=0x81d0f50, 
    item=0x81d4160) at widgets/qlistbox.cpp:4226
#46 0x40c2cd0b in ~QListBoxItem (this=0x81d4160) at widgets/qlistbox.cpp:377
#47 0x41b72098 in KateFileListItem::~KateFileListItem() ()
   from /opt/kde3/kde3_head_red/lib/libkateinterfaces.so.0
#48 0x40c2f2d3 in QListBox::removeItem(int) (this=0x81d0f50, index=0)
    at widgets/qlistbox.cpp:1589
#49 0x41b716db in KateFileList::slotDocumentDeleted(unsigned) ()
   from /opt/kde3/kde3_head_red/lib/libkateinterfaces.so.0
#50 0x41b71108 in KateFileList::qt_invoke(int, QUObject*) ()
   from /opt/kde3/kde3_head_red/lib/libkateinterfaces.so.0
#51 0x40b58c1f in QObject::activate_signal(QConnectionList*, QUObject*) (
    this=0x80f02c8, clist=0x81d41a0, o=0xbfffe760) at kernel/qobject.cpp:2333
#52 0x41b6eb55 in KateDocManager::documentDeleted(unsigned) ()
   from /opt/kde3/kde3_head_red/lib/libkateinterfaces.so.0
#53 0x41b6f2cd in KateDocManager::deleteDoc(Kate::Document*) ()
   from /opt/kde3/kde3_head_red/lib/libkateinterfaces.so.0
#54 0x41b6f948 in KateDocManager::closeDocument(Kate::Document*) ()
   from /opt/kde3/kde3_head_red/lib/libkateinterfaces.so.0
#55 0x41b84edf in KateViewManager::slotDocumentClose() ()
   from /opt/kde3/kde3_head_red/lib/libkateinterfaces.so.0
#56 0x41b83202 in KateViewManager::qt_invoke(int, QUObject*) ()
   from /opt/kde3/kde3_head_red/lib/libkateinterfaces.so.0
#57 0x40b58c1f in QObject::activate_signal(QConnectionList*, QUObject*) (
    this=0x82377f0, clist=0x8237e28, o=0xbfffe960) at kernel/qobject.cpp:2333
#58 0x40b58abe in QObject::activate_signal(int) (this=0x82377f0, signal=2)
    at kernel/qobject.cpp:2302
#59 0x40470b0c in KAction::activated() ()
   from /opt/kde3/kde3_head_red/lib/libkdeui.so.4
#60 0x404701bf in KAction::slotActivated() ()
   from /opt/kde3/kde3_head_red/lib/libkdeui.so.4
#61 0x40470cac in KAction::qt_invoke(int, QUObject*) ()
   from /opt/kde3/kde3_head_red/lib/libkdeui.so.4
#62 0x40b58d6c in QObject::activate_signal(QConnectionList*, QUObject*) (
    this=0x82568c0, clist=0x826e918, o=0xbfffea80) at kernel/qobject.cpp:2357
#63 0x40b58abe in QObject::activate_signal(int) (this=0x82568c0, signal=4)
    at kernel/qobject.cpp:2302
#64 0x40e9e299 in QButton::clicked() (this=0x82568c0)
    at .moc/debug-shared-mt/moc_qbutton.cpp:152
#65 0x40beb9ab in QButton::mouseReleaseEvent(QMouseEvent*) (this=0x82568c0, 
    e=0xbfffee10) at widgets/qbutton.cpp:820
#66 0x40b8fbef in QWidget::event(QEvent*) (this=0x82568c0, e=0xbfffee10)
    at kernel/qwidget.cpp:4426
#67 0x40af6c35 in QApplication::internalNotify(QObject*, QEvent*) (
    this=0xbffff230, receiver=0x82568c0, e=0xbfffee10)
    at kernel/qapplication.cpp:2582
#68 0x40af63f9 in QApplication::notify(QObject*, QEvent*) (this=0xbffff230, 
    receiver=0x82568c0, e=0xbfffee10) at kernel/qapplication.cpp:2368
#69 0x406821ec in KApplication::notify(QObject*, QEvent*) ()
   from /opt/kde3/kde3_head_red/lib/libkdecore.so.4
#70 0x40a8d4e7 in QApplication::sendSpontaneousEvent(QObject*, QEvent*) (
    receiver=0x82568c0, event=0xbfffee10) at qapplication.h:493
#71 0x40a86e2f in QETWidget::translateMouseEvent(_XEvent const*) (
    this=0x82568c0, event=0xbffff120) at kernel/qapplication_x11.cpp:4428
#72 0x40a84b5f in QApplication::x11ProcessEvent(_XEvent*) (this=0xbffff230, 
    event=0xbffff120) at kernel/qapplication_x11.cpp:3603
#73 0x40a9eb0a in QEventLoop::processEvents(unsigned) (this=0x80c4270, flags=4)
    at kernel/qeventloop_x11.cpp:192
#74 0x40b0c332 in QEventLoop::enterLoop() (this=0x80c4270)
    at kernel/qeventloop.cpp:198
#75 0x40b0c24e in QEventLoop::exec() (this=0x80c4270)
    at kernel/qeventloop.cpp:145
#76 0x40af6daf in QApplication::exec() (this=0xbffff230)
    at kernel/qapplication.cpp:2705
#77 0x4080a567 in kdemain ()
   from /opt/kde3/kde3_head_red/lib/libkdeinit_kate.so
#78 0x408079ce in kdeinitmain () from /opt/kde3/kde3_head_red/lib/kde3/kate.so
#79 0x0804cdbe in launch(int, char const*, char const*, char const*, int, char const*, bool, char const*, bool, char const*) ()
#80 0x0804db14 in handle_launcher_request(int) ()
#81 0x0804dfe2 in handle_requests(int) ()
#82 0x0804ecc4 in main ()
#83 0x41395917 in __libc_start_main () from /lib/libc.so.6
Comment 3 Iván Sánchez Ortega 2003-11-06 20:28:11 UTC
I reproduced this one by chance in CVS 20031020. 
Hope this helps: I crashed Kate with the open files list docked (in IDEAK MDI mode). I guess that it doesn't matter if the open files list is docked or floating. It just does matter if the open files list is visible when closing a file (or pressing Ctrl+V, in my case)
Comment 4 Waldo Bastian 2004-01-20 20:11:14 UTC
Can't reproduce, seem to be fixed.