Bug 54404 - MSN plugin crashes when leaving chat after partner has left first
Summary: MSN plugin crashes when leaving chat after partner has left first
Status: RESOLVED FIXED
Alias: None
Product: kopete
Classification: Applications
Component: MSN Plugin (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
: 54477 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-02-10 14:47 UTC by Thom Schubert
Modified: 2003-02-11 22:09 UTC (History)
1 user (show)

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 Thom Schubert 2003-02-10 14:47:03 UTC
Version:           0.6 (using KDE KDE 3.1)
Installed from:    SuSE RPMs
Compiler:          gcc 3.2 
OS:          Linux

When using MSN and the remote partner has left the chat, and I then close the chatwindow => kopete crashes.  Reproducible, every time. If I close the window first there is no crash.

Backtrace follows.

[New Thread 1024 (LWP 30165)]
0x414508c9 in wait4 () from /lib/libc.so.6
#0  0x414508c9 in wait4 () from /lib/libc.so.6
#1  0x414cbc90 in __DTOR_END__ () from /lib/libc.so.6
#2  0x412c6a93 in waitpid () from /lib/libpthread.so.0
#3  0x409deb0d in KCrash::defaultCrashHandler(int) ()
   from /opt/kde3/lib/libkdecore.so.4
#4  0x412c412b in pthread_sighandler () from /lib/libpthread.so.0
#5  <signal handler called>
#6  0x400666a2 in KopeteMessageManager::~KopeteMessageManager() ()
   from /opt/kde3/lib/libkopete.so.1
#7  0x41cec077 in MSNMessageManager::~MSNMessageManager() ()
   from /opt/kde3/lib/kde3/kopete_msn.so
#8  0x40d35f93 in QObject::event(QEvent*) ()
   from /usr/lib/qt3//lib/libqt-mt.so.3
#9  0x40cda2e4 in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/lib/qt3//lib/libqt-mt.so.3
#10 0x40cd9e4b in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/qt3//lib/libqt-mt.so.3
#11 0x40970fc9 in KApplication::notify(QObject*, QEvent*) ()
   from /opt/kde3/lib/libkdecore.so.4
#12 0x40cdb078 in QApplication::sendPostedEvents(QObject*, int) ()
   from /usr/lib/qt3//lib/libqt-mt.so.3
#13 0x40cdaef8 in QApplication::sendPostedEvents() ()
   from /usr/lib/qt3//lib/libqt-mt.so.3
#14 0x40c9086e in QEventLoop::processEvents(unsigned) ()
   from /usr/lib/qt3//lib/libqt-mt.so.3
#15 0x40cedfa6 in QEventLoop::enterLoop() ()
   from /usr/lib/qt3//lib/libqt-mt.so.3
#16 0x40cede48 in QEventLoop::exec() () from /usr/lib/qt3//lib/libqt-mt.so.3
#17 0x40cda511 in QApplication::exec() () from /usr/lib/qt3//lib/libqt-mt.so.3
#18 0x0805da5f in main ()
#19 0x413cb4a2 in __libc_start_main () from /lib/libc.so.6
Comment 1 Paul Hoepfner-Homme 2003-02-11 02:15:48 UTC
I just installed Kopete 0.6, and I think I had a similar crash. I was chatting 
with an MSN buddy, and he said bye, and I said bye, and then I simply 
closed the MSN window, and Kopete crashed. I don't know whether my 
buddy left the chat first. 
 
Here is the crash output: 
 
(no debugging symbols found)...(no debugging symbols found)... 
(no debugging symbols found)...(no debugging symbols found)... 
(no debugging symbols found)...(no debugging symbols found)... 
(no debugging symbols found)...(no debugging symbols found)... 
(no debugging symbols found)...(no debugging symbols found)... 
(no debugging symbols found)...(no debugging symbols found)... 
(no debugging symbols found)...(no debugging symbols found)... 
(no debugging symbols found)...(no debugging symbols found)... 
(no debugging symbols found)...(no debugging symbols found)... 
(no debugging symbols found)...(no debugging symbols found)... 
(no debugging symbols found)...(no debugging symbols found)... 
(no debugging symbols found)...(no debugging symbols found)... 
(no debugging symbols found)...(no debugging symbols found)... 
(no debugging symbols found)...(no debugging symbols found)... 
(no debugging symbols found)...(no debugging symbols found)... 
(no debugging symbols found)...0x4131ded9 in wait4 () from /lib/libc.so.6 
#0  0x4131ded9 in wait4 () from /lib/libc.so.6 
#1  0x4139f900 in __check_rhosts_file () from /lib/libc.so.6 
#2  0x411ed856 in waitpid () from /lib/libpthread.so.0 
#3  0x4096386e in KCrash::defaultCrashHandler () 
   from /usr/kde/3.1/lib/libkdecore.so.4 
#4  0x411eb664 in pthread_kill () from /lib/libpthread.so.0 
#5  0x4129f8f8 in sigaction () from /lib/libc.so.6 
#6  0x43070636 in MSNMessageManager::~MSNMessageManager () 
   from /usr/lib/kde3/kopete_msn.so 
#7  0x40cb4bc2 in QObject::event () from /usr/qt/3/lib/libqt-mt.so.3 
#8  0x40c6ce93 in QApplication::internalNotify () 
   from /usr/qt/3/lib/libqt-mt.so.3 
#9  0x40c6cc97 in QApplication::notify () from /usr/qt/3/lib/libqt-mt.so.3 
#10 0x408fa0af in KApplication::notify () from 
/usr/kde/3.1/lib/libkdecore.so.4 
#11 0x40c6dbeb in QApplication::sendPostedEvents () 
   from /usr/qt/3/lib/libqt-mt.so.3 
#12 0x40c6da22 in QApplication::sendPostedEvents () 
   from /usr/qt/3/lib/libqt-mt.so.3 
#13 0x40c341d8 in QEventLoop::processEvents () from 
/usr/qt/3/lib/libqt-mt.so.3 
#14 0x40c7cd83 in QEventLoop::enterLoop () from 
/usr/qt/3/lib/libqt-mt.so.3 
#15 0x40c7ccd2 in QEventLoop::exec () from /usr/qt/3/lib/libqt-mt.so.3 
#16 0x40c6d015 in QApplication::exec () from /usr/qt/3/lib/libqt-mt.so.3 
#17 0x0805ddf2 in KDialog::marginHint () 
#18 0x4128e3c1 in __libc_start_main () from /lib/libc.so.6 
 
Comment 2 Eirik Thorsnes 2003-02-11 14:04:05 UTC
After installing v0.6 using recompiled Redhat 8.0 src rpm I get a similar crash
/ backtrace when closing chat window after other person left. KDE version as
shipped with Redhat 8.0

Backtrace:
(no debugging symbols found)...[New Thread 8192 (LWP 21596)]
0x420ae169 in wait4 () from /lib/i686/libc.so.6
#0  0x420ae169 in wait4 () from /lib/i686/libc.so.6
#1  0x4212a2d0 in __DTOR_END__ () from /lib/i686/libc.so.6
#2  0x411bfc63 in waitpid () from /lib/i686/libpthread.so.0
#3  0x409551e5 in KCrash::defaultCrashHandler(int) ()
   from /usr/lib/libkdecore.so.4
#4  <signal handler called>
#5  0x40065962 in KopeteMessageManager::~KopeteMessageManager() ()
   from /usr/lib/libkopete.so.1
#6  0x443413b7 in MSNMessageManager::~MSNMessageManager() ()
   from /usr/lib/kde3/kopete_msn.so
#7  0x40c70d73 in QObject::event(QEvent*) ()
   from /usr/lib/qt3//lib/libqt-mt.so.3
#8  0x40c1ec49 in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/lib/qt3//lib/libqt-mt.so.3
#9  0x40c1e4f1 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/qt3//lib/libqt-mt.so.3
#10 0x408e99c6 in KApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/libkdecore.so.4
#11 0x40c1f5d4 in QApplication::sendPostedEvents(QObject*, int) ()
   from /usr/lib/qt3//lib/libqt-mt.so.3
#12 0x40c1f4c8 in QApplication::sendPostedEvents() ()
   from /usr/lib/qt3//lib/libqt-mt.so.3
#13 0x40bbf4d5 in QApplication::processNextEvent(bool) ()
   from /usr/lib/qt3//lib/libqt-mt.so.3
#14 0x40c20280 in QApplication::enter_loop() ()
   from /usr/lib/qt3//lib/libqt-mt.so.3
#15 0x40bbf02d in QApplication::exec() () from /usr/lib/qt3//lib/libqt-mt.so.3
#16 0x0805da0f in main ()
#17 0x420158d4 in __libc_start_main () from /lib/i686/libc.so.6

-----
Eirik Thorsnes
Comment 3 michel 2003-02-11 21:16:19 UTC
I have the exact same problem, using kopete 0.6. The following patch fixes it
(apply it to kopete/libkopete/kopetemessagemanager.cpp):

-----------------------
--- kopetemessagemanager.cpp.orig       2003-02-11 21:05:46.000000000 +0100
+++ kopetemessagemanager.cpp    2003-02-11 21:06:04.000000000 +0100
@@ -110,7 +110,7 @@
        d->mCanBeDeleted = false; //prevent double deletion
        KopeteMessageManagerFactory::factory()->removeSession( this );
        emit dying(d->mView);
-       if( d->mWidget == ChatWindow )
+       if( ChatWindow && d->mWidget == ChatWindow )
        {
                KopeteChatWindow *chatWindow =
static_cast<KopeteChatWindow*>(myWindow);
                ChatWindowMap windowMap = *(chatWindowMap());
-----------------------

I don't know if it's the right fix, but at least it is a workaround. It seems
that the ChatWindow destructs itself when the last MSN buddy leaves.
Comment 4 Russell Miller 2003-02-11 22:08:08 UTC
*** Bug 54477 has been marked as a duplicate of this bug. ***
Comment 5 Russell Miller 2003-02-11 22:09:24 UTC
This has been fixed in CVS.