Bug 54585 - kopete crashes on close of kopete and sometimes close of windows in kopete
Summary: kopete crashes on close of kopete and sometimes close of windows in kopete
Status: RESOLVED FIXED
Alias: None
Product: kopete
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
: 65745 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-02-13 07:07 UTC by Chris Quilley
Modified: 2007-09-06 22:27 UTC (History)
2 users (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 Chris Quilley 2003-02-13 07:07:03 UTC
Version:           0.6 (using KDE KDE 3.1)
Installed from:    Compiled From Sources
Compiler:          gcc 3.2 
OS:          Linux

Whenever I close kopete 0.6 it crashes. This sometimes happens when I close windows in kopete as well, although very rarely. Betcher thinks it's a "dangling pointer" problem. Here's the bt output:
(gdb) bt
#0  0x080655ee in QGList::count() const (this=0xb4)
    at /usr/lib/qt3/include/qglist.h:146
#1  0x4007b394 in QPtrList<Kopete::ChatView>::count() const (this=0x0)
    at /usr/lib/qt3/include/qptrlist.h:62
#2  0x4007af90 in KopeteChatWindow::chatViewCount() (this=0x0)
    at ui/kopetechatwindow.h:57
#3  0x4007571b in ~KopeteMessageManager (this=0x83c27a0)
    at kopetemessagemanager.cpp:120
#4  0x41e339e8 in ~MSNMessageManager (this=0x83c27a0)
    at msnmessagemanager.cpp:77
#5  0x4007ca05 in QIntDict<KopeteMessageManager>::deleteItem(void*) (
    this=0xbffff3b0, d=0x83c27a0) at /usr/lib/qt3/include/qintdict.h:94
#6  0x4105c8a4 in QGDict::clear() () from /usr/lib/qt3/lib/libqt-mt.so.3
#7  0x4007c8d8 in QIntDict<KopeteMessageManager>::clear() (this=0xbffff3b0)
    at /usr/lib/qt3/include/qintdict.h:72
#8  0x4007c126 in KopeteMessageManagerFactory::cleanSessions(KopeteProtocol*)
(
    this=0x83b4c50, protocol=0x837efa8) at kopetemessagemanagerfactory.cpp:176
#9  0x4005f538 in KopeteProtocol::unload() (this=0x837efa8)
    at kopeteprotocol.cpp:41
#10 0x41e1edaa in MSNProtocol::unload() (this=0x837efa8) at
msnprotocol.cpp:127
#11 0x40068bda in LibraryLoader::remove(KopetePlugin*) (this=0x8185218,
    p=0x837efa8) at pluginloader.cpp:269
#12 0x40067a28 in ~LibraryLoader (this=0x8185218) at pluginloader.cpp:83
---Type <return> to continue, or q <return> to quit---
#13 0x4006c332 in KStaticDeleter<LibraryLoader>::destructObject() (
    this=0x400cf964) at /usr/include/kstaticdeleter.h:115
#14 0x40a0d877 in KGlobal::deleteStaticDeleters() ()
   from /usr/lib/libkdecore.so.4
#15 0x40998176 in KApplication::~KApplication() ()
   from /usr/lib/libkdecore.so.4
#16 0x40a1c397 in KUniqueApplication::~KUniqueApplication() ()
   from /usr/lib/libkdecore.so.4
#17 0x08063ce9 in ~Kopete (this=0xbffff5c0) at kopete.cpp:91
#18 0x08060bff in main (argc=2, argv=0xbffff754) at main.cpp:80
#19 0x4145b082 in __libc_start_main () from /lib/i686/libc.so.6
(gdb)

when I was talking to betcher on IRC he looked at this and tried to fix it. I applied his patch (<Error403> in kopetemessagemanager.cpp near line 119 there begins a function "~KopeteMessageManager". At the top of the fuction (after the first '{
<Error403> in kopetemessagemanager.cpp near line 119 there begins a function "~KopeteMessageManager". At the top of the fuction (after the first '{'), add "if (!d) return;")
and I still got the crash and the same bt output.
Comment 1 Chris Quilley 2003-02-13 07:07:46 UTC
I should also say I'm running mandrake 9. 
Comment 2 Martijn Klingens 2003-02-13 09:46:11 UTC
Subject: Re: [Kopete-devel]  kopete crashes on close of kopete and sometimes close of windows in kopete

See bugs 54404, 54477 and 54527. Fixed in CVS.

Comment 3 Stephan Kulow 2003-10-09 15:39:21 UTC
*** Bug 65745 has been marked as a duplicate of this bug. ***
Comment 4 S. Burmeister 2004-11-08 12:45:23 UTC
This bug is back! Please re-open.

It started when I wanted to change the server for an IRC-account, which is not possible by the way, as the new setting is not saved. (another bug?) Anyway, I set up a second irc-account with the new server and since then kopete crashes on EVERY exit.

I use the latest SuSE RPMs for KDE 3.3.1


Using host libthread_db library "/lib/tls/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 1104476960 (LWP 6075)]
[KCrash handler]
#7  0x40c0d4d9 in KDialogBase::delayedDestruct ()
   from /opt/kde3/lib/libkdeui.so.4
#8  0x425d8830 in IRCAccount::~IRCAccount ()
   from /opt/kde3/lib/kde3/kopete_irc.so
#9  0x41333aec in QObject::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#10 0x412d140f in QApplication::internalNotify ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#11 0x412d2fb9 in QApplication::notify () from /usr/lib/qt3/lib/libqt-mt.so.3
#12 0x40f6bd5e in KApplication::notify () from /opt/kde3/lib/libkdecore.so.4
#13 0x412d2250 in QApplication::sendPostedEvents ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#14 0x412d22d4 in QApplication::sendPostedEvents ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#15 0x4127f554 in QEventLoop::processEvents ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#16 0x412e9071 in QEventLoop::enterLoop () from /usr/lib/qt3/lib/libqt-mt.so.3
#17 0x412e8eb6 in QEventLoop::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#18 0x412d2e8f in QApplication::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#19 0x08076d7c in main ()
Comment 5 Pumpkin 2007-09-06 22:27:54 UTC
On openSuse 10.2 x86_64. I use IRC and MSN. On close, Kopete crashes :

Vérification au démarrage de la configuration du système désactivée.

Using host libthread_db library "/lib64/libthread_db.so.1".

[Thread debugging using libthread_db enabled]
[New Thread 47835600677056 (LWP 4868)]

[KCrash handler]
#5  0x00000000006de940 in ?? ()
#6  0x00002b818fda00c8 in Kopete::Account::~Account ()
   from /opt/kde3/lib64/libkopete.so.1
#7  0x00002aaaaae260eb in IRCAccount::~IRCAccount ()
   from /opt/kde3/lib64/kde3/kopete_irc.so
#8  0x00002b8191da9589 in QObject::event ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#9  0x00002b8191d52eb5 in QApplication::internalNotify ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#10 0x00002b8191d53c40 in QApplication::notify ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#11 0x00002b819132de38 in KApplication::notify ()
   from /opt/kde3/lib64/libkdecore.so.4
#12 0x00002b8191d54429 in QApplication::sendPostedEvents ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#13 0x00002b8191d09071 in QEventLoop::processEvents ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#14 0x00002b8191d67963 in QEventLoop::enterLoop ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#15 0x00002b8191d67812 in QEventLoop::exec ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#16 0x000000000043f0d5 in QWidget::setUpdatesEnabled ()
#17 0x00002b81927beae4 in __libc_start_main () from /lib64/libc.so.6
#18 0x000000000042fe19 in QWidget::setUpdatesEnabled ()
#19 0x00007fff1aff58c8 in ?? ()
#20 0x0000000000000000 in ?? ()