Bug 72436 - after unloading parts runtime, kdevelop crashes on close
Summary: after unloading parts runtime, kdevelop crashes on close
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: kmdi (show other bugs)
Version: SVN
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-12 02:18 UTC by Jens Dagerbo
Modified: 2004-01-12 13:32 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
patch (924 bytes, patch)
2004-01-12 02:21 UTC, Jens Dagerbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jens Dagerbo 2004-01-12 02:18:33 UTC
Version:           unknown (using KDE 3.1.94 (CVS >= 20031206), compiled sources)
Compiler:          gcc version 3.2.2
OS:          Linux (i686) release 2.6.0

To reproduce:
1. Start KDevelop 
2. Unload a few global plugins
3. Close KDevelop

Unless lucky, this will crash KDevelop with the following backtrace:

[New Thread 16384 (LWP 31169)]
[New Thread 32769 (LWP 31174)]
0x4188939c in waitpid () from /lib/libpthread.so.0
#0  0x4188939c in waitpid () from /lib/libpthread.so.0
#1  0x40de6270 in KCrash::defaultCrashHandler(int) ()
   from /opt/kde/lib/libkdecore.so.4
#2  0x4188817c in __pthread_sighandler () from /lib/libpthread.so.0
#3  <signal handler called>
#4  0x41450677 in QGDict::unlink_ascii(char const*, void*) ()
   from /opt/qt-3.2.1/lib/libqt-mt.so.3
#5  0x41450b24 in QGDict::take_ascii(char const*) ()
   from /opt/qt-3.2.1/lib/libqt-mt.so.3
#6  0x40b05c35 in KActionCollection::_take(KAction*) ()
   from /opt/kde/lib/libkdeui.so.4
#7  0x40b05da6 in KActionCollection::take(KAction*) ()
   from /opt/kde/lib/libkdeui.so.4
#8  0x40af8d05 in KAction::~KAction() () from /opt/kde/lib/libkdeui.so.4
#9  0x40b0a070 in KToggleAction::~KToggleAction() ()
   from /opt/kde/lib/libkdeui.so.4
#10 0x404f05f5 in KMDIPrivate::ToggleToolViewAction::~ToggleToolViewAction() ()
   from /opt/kde/lib/libkmdi.so.1
#11 0x411aff12 in QObject::~QObject() () from /opt/qt-3.2.1/lib/libqt-mt.so.3
#12 0x40b05057 in KActionCollection::~KActionCollection() ()
   from /opt/kde/lib/libkdeui.so.4
#13 0x40bd3f95 in KXMLGUIClient::~KXMLGUIClient() ()
   from /opt/kde/lib/libkdeui.so.4
#14 0x404f2792 in KMDIPrivate::KMDIGUIClient::~KMDIGUIClient() ()
   from /opt/kde/lib/libkmdi.so.1
#15 0x404d4ac6 in KMdiMainFrm::~KMdiMainFrm() () from /opt/kde/lib/libkmdi.so.1
#16 0x080663e9 in ~MainWindow (this=0x817eaf8) at mainwindow.cpp:328
#17 0x411b0993 in QObject::event(QEvent*) ()
   from /opt/qt-3.2.1/lib/libqt-mt.so.3
#18 0x411e76dc in QWidget::event(QEvent*) ()
   from /opt/qt-3.2.1/lib/libqt-mt.so.3
#19 0x4129ff12 in QMainWindow::event(QEvent*) ()
   from /opt/qt-3.2.1/lib/libqt-mt.so.3
#20 0x404d78bf in KMdiMainFrm::event(QEvent*) () from /opt/kde/lib/libkmdi.so.1
#21 0x41157e25 in QApplication::internalNotify(QObject*, QEvent*) ()
   from /opt/qt-3.2.1/lib/libqt-mt.so.3
#22 0x411574db in QApplication::notify(QObject*, QEvent*) ()
   from /opt/qt-3.2.1/lib/libqt-mt.so.3
#23 0x40d44c2c in KApplication::notify(QObject*, QEvent*) ()
   from /opt/kde/lib/libkdecore.so.4
#24 0x41158bd8 in QApplication::sendPostedEvents(QObject*, int) ()
   from /opt/qt-3.2.1/lib/libqt-mt.so.3
#25 0x4116b0c9 in QEventLoop::enterLoop() ()
   from /opt/qt-3.2.1/lib/libqt-mt.so.3
#26 0x4116af88 in QEventLoop::exec() () from /opt/qt-3.2.1/lib/libqt-mt.so.3
#27 0x41158071 in QApplication::exec() () from /opt/qt-3.2.1/lib/libqt-mt.so.3
#28 0x08064abf in main (argc=1, argv=0xbffff524) at main.cpp:128
#29 0x419fcb47 in __libc_start_main () from /lib/libc.so.6
Comment 1 Jens Dagerbo 2004-01-12 02:21:02 UTC
Created attachment 4110 [details]
patch

This trivial patch seems to fix the problem for me.
Comment 2 Sascha Cunz 2004-01-12 02:28:24 UTC
I can verfiy this crash - and also that the patch fixed it
Comment 3 Stephan Kulow 2004-01-12 13:22:35 UTC
please commit it
Comment 4 Jens Dagerbo 2004-01-12 13:32:33 UTC
Subject: kdelibs/kmdi

CVS commit by dagerbo: 

Fixes bug 72436.

Reviewed by coolo ;)

CCMAIL: 72436-done@bugs.kde.org


  M +1 -1      kmdiguiclient.cpp   1.17


--- kdelibs/kmdi/kmdiguiclient.cpp  #1.16:1.17
@@ -223,5 +223,5 @@ void KMDIGUIClient::addToolView(KMdiTool
         kdDebug(760)<<"*****void KMDIGUIClient::addToolView(KMdiToolViewAccessor* mtva)*****"<<endl;
         KAction *a=new ToggleToolViewAction(i18n("Show %1").arg(mtva->wrappedWidget()->caption()),
-                QString::null,dynamic_cast<KDockWidget*>(mtva->wrapperWidget()),m_mdiMainFrm,actionCollection(),"nothing");
+                QString::null,dynamic_cast<KDockWidget*>(mtva->wrapperWidget()),m_mdiMainFrm,actionCollection() );
         connect(a,SIGNAL(destroyed(QObject*)),this,SLOT(actionDeleted(QObject*)));
         m_toolViewActions.append(a);