Bug 115772

Summary: kopete crash after change my icq status to online
Product: [Unmaintained] kopete Reporter: sts
Component: ICQ and AIM PluginsAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: aldehoff, danielstefanmader+kde, edwin.boersma, florian_staudacher, itlistuser, kde-bugzilla, kde.org, kde, kdebugs, marmbrecht, mmodem00, opensource, protomank, sebastian.lohmann, sighn, sven.burmeister
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: two complete sessions - gdb output and bt from Dr Konqui -- see end of file

Description sts 2005-11-06 10:52:20 UTC
Version:           0.10.93 (0.11 Beta 2) (using KDE 3.4.92 (beta2, >= 20051010) Level "a" , SUSE 10.0 UNSUPPORTED)
Compiler:          Target: i586-suse-linux
OS:                Linux (i686) release 2.6.13-15-default

I can reproduce it!

Output from konsole:

QDateTime::fromString: Parameter out of range
QMetaObject::findSignal:ClientStream: Conflict with Stream::readyRead()
kopete (oscar/icq): WARNING: [ICQ::Presence ICQ::OnlineStatusManager::presenceOf(uint)] No presence exists for internal status 99! Returning Offline
QMetaObject::findSignal:ClientStream: Conflict with Stream::readyRead()
QMetaObject::findSignal:ClientStream: Conflict with Stream::readyRead()
ASSERT: "!mHost.isNull()" in oscarconnector.cpp (49)
ASSERT: "mPort" in oscarconnector.cpp (50)
kopete (oscar/icq): WARNING: [ICQ::Presence ICQ::OnlineStatusManager::presenceOf(uint)] No presence exists for internal status 99! Returning Offline
kopete (oscar/icq): WARNING: [ICQ::Presence ICQ::OnlineStatusManager::presenceOf(uint)] No presence exists 
for internal status 99! Returning Offline
kopete (oscar/icq): WARNING: [ICQ::Presence ICQ::OnlineStatusManager::presenceOf(uint)] No presence exists for internal status 99! Returning Offline
kopete (oscar/icq): WARNING: [ICQ::Presence ICQ::OnlineStatusManager::presenceOf(uint)] No presence exists for internal status 99! Returning Offline
kopete (oscar/icq): WARNING: [ICQ::Presence ICQ::OnlineStatusManager::presenceOf(uint)] No presence exists for internal status 99! Returning Offline
QMetaObject::findSignal:ClientStream: Conflict with Stream::readyRead()
KCrash: Application 'kopete' crashing...



Output from crash:

(no debugging symbols found)
Using host libthread_db library "/lib/tls/libthread_db.so.1".
(no debugging symbols found)
`system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols.
(no debugging symbols found)
...
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 1104340128 (LWP 6449)]
(no debugging symbols found)
...
(no debugging symbols found)
[KCrash handler]
#4  0x42b2d927 in Client::deleteStaticTasks ()
   from /opt/kde3/lib/libkopete_oscar.so.2
#5  0x42b5e314 in Client::close () from /opt/kde3/lib/libkopete_oscar.so.2
#6  0x42b5e45f in Client::lt_loginFinished ()
   from /opt/kde3/lib/libkopete_oscar.so.2
#7  0x42b5e5d0 in Client::qt_invoke () from /opt/kde3/lib/libkopete_oscar.so.2
#8  0x4102aa29 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#9  0x4102aed0 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#10 0x42b34699 in Client::chatNavigationConnected ()
   from /opt/kde3/lib/libkopete_oscar.so.2
#11 0x42b40748 in Client::serverRedirectFinished ()
   from /opt/kde3/lib/libkopete_oscar.so.2
#12 0x42b40c07 in Client::serverRedirectFinished ()
   from /opt/kde3/lib/libkopete_oscar.so.2
#13 0x42b41709 in Client::serverRedirectFinished ()
   from /opt/kde3/lib/libkopete_oscar.so.2
#14 0x42b4176b in Client::serverRedirectFinished ()
   from /opt/kde3/lib/libkopete_oscar.so.2
#15 0x4102aa29 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#16 0x4102aed0 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#17 0x42b34699 in Client::chatNavigationConnected ()
   from /opt/kde3/lib/libkopete_oscar.so.2
#18 0x42b40748 in Client::serverRedirectFinished ()
   from /opt/kde3/lib/libkopete_oscar.so.2
#19 0x42b40c07 in Client::serverRedirectFinished ()
   from /opt/kde3/lib/libkopete_oscar.so.2
#20 0x42b6497f in Client::modifySSIItem ()
   from /opt/kde3/lib/libkopete_oscar.so.2
#21 0x42b37bab in Client::requestFullInfo ()
   from /opt/kde3/lib/libkopete_oscar.so.2
#22 0x42b36b11 in Client::streamConnected ()
   from /opt/kde3/lib/libkopete_oscar.so.2
#23 0x42b36b54 in Client::streamConnected ()
   from /opt/kde3/lib/libkopete_oscar.so.2
#24 0x42b43abd in SSIManager::qt_emit ()
   from /opt/kde3/lib/libkopete_oscar.so.2
#25 0x4102aa29 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#26 0x4102aed0 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#27 0x42b34bdc in Client::chatNavigationConnected ()
   from /opt/kde3/lib/libkopete_oscar.so.2
#28 0x42b34c01 in Client::chatNavigationConnected ()
   from /opt/kde3/lib/libkopete_oscar.so.2
#29 0x42b41952 in Client::serverRedirectFinished ()
   from /opt/kde3/lib/libkopete_oscar.so.2
#30 0x42b4cb43 in Client::createConnection ()
   from /opt/kde3/lib/libkopete_oscar.so.2
#31 0x4102aa29 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#32 0x4102aed0 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#33 0x42b3497a in Client::chatNavigationConnected ()
   from /opt/kde3/lib/libkopete_oscar.so.2
#34 0x42b4abf9 in Client::createConnection ()
   from /opt/kde3/lib/libkopete_oscar.so.2
#35 0x42b4ad6d in Client::createConnection ()
   from /opt/kde3/lib/libkopete_oscar.so.2
#36 0x42b4beb4 in Client::createConnection ()
   from /opt/kde3/lib/libkopete_oscar.so.2
#37 0x42b4cb25 in Client::createConnection ()
   from /opt/kde3/lib/libkopete_oscar.so.2
#38 0x4102aa29 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#39 0x4102aed0 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#40 0x42b34a0c in Client::chatNavigationConnected ()
   from /opt/kde3/lib/libkopete_oscar.so.2
#41 0x42b4bfec in Client::createConnection ()
   from /opt/kde3/lib/libkopete_oscar.so.2
#42 0x42b4c0e3 in Client::createConnection ()
   from /opt/kde3/lib/libkopete_oscar.so.2
#43 0x4102aa29 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#44 0x4102aed0 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#45 0x40d05ccc in KNetwork::KClientSocketBase::readyRead ()
   from /opt/kde3/lib/libkdecore.so.4
#46 0x40d05d0a in KNetwork::KClientSocketBase::slotReadActivity ()
   from /opt/kde3/lib/libkdecore.so.4
#47 0x40d0a0fc in KNetwork::KBufferedSocket::slotReadActivity ()
   from /opt/kde3/lib/libkdecore.so.4
#48 0x40d1505f in KNetwork::KBufferedSocket::qt_invoke ()
   from /opt/kde3/lib/libkdecore.so.4
#49 0x4102aa29 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#50 0x4102b001 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#51 0x4136d470 in QSocketNotifier::activated ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#52 0x41049b10 in QSocketNotifier::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#53 0x40fcad21 in QApplication::internalNotify ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#54 0x40fcb699 in QApplication::notify () from /usr/lib/qt3/lib/libqt-mt.so.3
#55 0x40caba2e in KApplication::notify () from /opt/kde3/lib/libkdecore.so.4
#56 0x40fbebad in QEventLoop::activateSocketNotifiers ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#57 0x40f78ee3 in QEventLoop::processEvents ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#58 0x40fe1c33 in QEventLoop::enterLoop () from /usr/lib/qt3/lib/libqt-mt.so.3
#59 0x40fe1b16 in QEventLoop::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#60 0x40fca66f in QApplication::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#61 0x0807ebe0 in ?? ()
#62 0xbfe70bf0 in ?? ()
#63 0xbfe70d24 in ?? ()
#64 0xbfe70d1c in ?? ()
#65 0x00000000 in ?? ()
#66 0x00000000 in ?? ()
#67 0x00000001 in ?? ()
#68 0x080df40c in vtable for QGList ()
#69 0x080dd866 in vtable for QGList ()
#70 0x080dd850 in vtable for QGList ()
#71 0x080dd83c in vtable for QGList ()
#72 0x416a48d8 in main_arena () from /lib/tls/libc.so.6
#73 0x416a48d8 in main_arena () from /lib/tls/libc.so.6
#74 0x00000003 in ?? ()
#75 0x00000020 in ?? ()
#76 0x00000011 in ?? ()
#77 0x416a48a8 in main_arena () from /lib/tls/libc.so.6
#78 0x080dab28 in vtable for QGList ()
#79 0x00000020 in ?? ()
#80 0x08152f88 in ?? ()
#81 0x00000000 in ?? ()
#82 0x081f3bf0 in ?? ()
#83 0x08235be0 in ?? ()
#84 0x082353b8 in ?? ()
#85 0x08238158 in ?? ()
#86 0x00000000 in ?? ()
#87 0x00000000 in ?? ()
#88 0x00000001 in ?? ()
#89 0x0813bb98 in ?? ()
#90 0x00000000 in ?? ()
#91 0x00000000 in ?? ()
#92 0x08239600 in ?? ()
#93 0x081f9c38 in ?? ()
#94 0x081fb3d8 in ?? ()
#95 0x416a4800 in _IO_stdfile_0_lock () from /lib/tls/libc.so.6
#96 0x080dabac in vtable for QGList ()
#97 0x0813bdf8 in ?? ()
#98 0x0813bc58 in ?? ()
#99 0x081fae50 in ?? ()
#100 0x0812c320 in vtable for QCString ()
#101 0x0813bbd0 in ?? ()
#102 0xbfe70ce0 in ?? ()
#103 0x081f4970 in ?? ()
#104 0x08152f98 in ?? ()
#105 0x00000134 in ?? ()
#106 0x000001ff in ?? ()
#107 0x080dce5f in vtable for QGList ()
#108 0x00000000 in ?? ()
#109 0x0820b5d8 in ?? ()
#110 0x41477b01 in ?? () from /usr/lib/qt3/lib/libqt-mt.so.3
#111 0x08229e30 in ?? ()
#112 0x081fb0d0 in ?? ()
#113 0x412e586e in QGDict::look_ascii () from /usr/lib/qt3/lib/libqt-mt.so.3
#114 0x4159cea0 in __libc_start_main () from /lib/tls/libc.so.6
#115 0x08072371 in ?? ()
Comment 1 Stephan Binner 2005-11-06 11:15:28 UTC
Can you please install http://ktown.kde.org/~binner/10.0-i386+kde/kdenetwork3-debuginfo-3.4.92-1.i586.rpm (20MB) and post the backtrace with debug infos included?
Comment 2 sts 2005-11-06 13:10:32 UTC
Using host libthread_db library "/lib/tls/libthread_db.so.1".
`system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols.
[Thread debugging using libthread_db enabled]
[New Thread 1104340128 (LWP 8064)]
[KCrash handler]
#4  0x42b2d927 in Client::deleteStaticTasks (this=0x83f1db8) at client.cpp:1015
#5  0x42b5e314 in Client::close (this=0x83f1db8) at client.cpp:177
#6  0x42b5e45f in Client::lt_loginFinished (this=0x83f1db8) at client.cpp:312
#7  0x42b5e5d0 in Client::qt_invoke (this=0x83f1db8, _id=3, _o=0xbfb90608)
    at client.moc:529
#8  0x4102aa29 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#9  0x4102aed0 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#10 0x42b34699 in Task::finished (this=0x0) at task.moc:88
#11 0x42b40748 in Task::done (this=0xbfb90608) at task.cpp:217
#12 0x42b40c07 in Task::setSuccess (this=0x848f900, code=0, str=@0x0)
    at task.cpp:191
#13 0x42b41709 in StageOneLoginTask::closeTaskFinished (this=0x848f900)
    at logintask.cpp:98
#14 0x42b4176b in StageOneLoginTask::qt_invoke (this=0x848f900, _id=4, _o=0x0)
    at logintask.moc:84
#15 0x4102aa29 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#16 0x4102aed0 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#17 0x42b34699 in Task::finished (this=0x0) at task.moc:88
#18 0x42b40748 in Task::done (this=0xbfb90748) at task.cpp:217
#19 0x42b40c07 in Task::setSuccess (this=0x8389640, code=0, str=@0x0)
    at task.cpp:191
#20 0x42b6497f in CloseConnectionTask::take (this=0x8389640, 
    transfer=0x8432b60) at closeconnectiontask.cpp:118
#21 0x42b37bab in Task::take (this=0x0, transfer=0x8432b60) at task.cpp:141
#22 0x42b36b11 in Connection::distribute (this=0x0, transfer=0x8432b60)
    at connection.cpp:212
#23 0x42b36b54 in Connection::streamReadyRead (this=0x8499ca0)
    at connection.cpp:229
#24 0x42b43abd in Connection::qt_invoke (this=0x8499ca0, _id=3, _o=0xbfb90998)
    at connection.moc:141
#25 0x4102aa29 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#26 0x4102aed0 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#27 0x42b34bdc in ClientStream::readyRead (this=0x0)
    at oscarclientstream.moc:155
#28 0x42b34c01 in ClientStream::doReadyRead (this=0x0)
    at oscarclientstream.cpp:404
#29 0x42b41952 in ClientStream::cp_incomingData (this=0xbfb90998)
    at oscarclientstream.cpp:321
#30 0x42b4cb43 in ClientStream::qt_invoke (this=0x8491260, _id=6, 
    _o=0xbfb90a98) at oscarclientstream.moc:165
#31 0x4102aa29 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#32 0x4102aed0 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#33 0x42b3497a in CoreProtocol::incomingData (this=0x0) at coreprotocol.moc:110
#34 0x42b4abf9 in CoreProtocol::wireToTransfer (this=0x848328c, 
    wire=@0x84832b4) at coreprotocol.cpp:226
#35 0x42b4ad6d in CoreProtocol::addIncomingData (this=0x848328c, 
    incomingBytes=@0xbfb90c0c) at coreprotocol.cpp:108
#36 0x42b4beb4 in ClientStream::bs_readyRead (this=0x8491260)
    at oscarclientstream.cpp:385
#37 0x42b4cb25 in ClientStream::qt_invoke (this=0x8491260, _id=10, 
    _o=0xbfb90cb8) at oscarclientstream.moc:169
#38 0x4102aa29 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#39 0x4102aed0 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#40 0x42b34a0c in ByteStream::readyRead (this=0x0) at bytestream.moc:108
#41 0x42b4bfec in KNetworkByteStream::slotReadyRead (this=0x8473b08)
    at oscarbytestream.cpp:124
#42 0x42b4c0e3 in KNetworkByteStream::qt_invoke (this=0x8473b08, _id=4, 
    _o=0xbfb90dc8) at oscarbytestream.moc:108
#43 0x4102aa29 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#44 0x4102aed0 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#45 0x40d05ccc in KNetwork::KClientSocketBase::readyRead ()
   from /opt/kde3/lib/libkdecore.so.4
#46 0x40d05d0a in KNetwork::KClientSocketBase::slotReadActivity ()
   from /opt/kde3/lib/libkdecore.so.4
#47 0x40d0a0fc in KNetwork::KBufferedSocket::slotReadActivity ()
   from /opt/kde3/lib/libkdecore.so.4
#48 0x40d1505f in KNetwork::KBufferedSocket::qt_invoke ()
   from /opt/kde3/lib/libkdecore.so.4
#49 0x4102aa29 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#50 0x4102b001 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#51 0x4136d470 in QSocketNotifier::activated ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#52 0x41049b10 in QSocketNotifier::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#53 0x40fcad21 in QApplication::internalNotify ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#54 0x40fcb699 in QApplication::notify () from /usr/lib/qt3/lib/libqt-mt.so.3
#55 0x40caba2e in KApplication::notify () from /opt/kde3/lib/libkdecore.so.4
#56 0x40fbebad in QEventLoop::activateSocketNotifiers ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#57 0x40f78ee3 in QEventLoop::processEvents ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#58 0x40fe1c19 in QEventLoop::enterLoop () from /usr/lib/qt3/lib/libqt-mt.so.3
#59 0x40fe1b16 in QEventLoop::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#60 0x40fca66f in QApplication::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#61 0x0807ebe0 in main (argc=0, argv=0x0) at main.cpp:103
#62 0x4159cea0 in __libc_start_main () from /lib/tls/libc.so.6
#63 0x08072371 in _start () at start.S:119
Comment 3 Roman Jarosz 2005-11-06 17:11:34 UTC
Can you paste more info from console? It will be great if you can send console output from kopete start to the crash.
Comment 4 sts 2005-11-06 17:44:20 UTC
QImage::smoothScale: Image is a null image
sts@stephan:~> QDateTime::fromString: Parameter out of range
QDateTime::fromString: Parameter out of range
QDateTime::fromString: Parameter out of range
QDateTime::fromString: Parameter out of range
QDateTime::fromString: Parameter out of range
QDateTime::fromString: Parameter out of range
QDateTime::fromString: Parameter out of range
QDateTime::fromString: Parameter out of range
QDateTime::fromString: Parameter out of range
QDateTime::fromString: Parameter out of range
QDateTime::fromString: Parameter out of range
QDateTime::fromString: Parameter out of range
QDateTime::fromString: Parameter out of range
QDateTime::fromString: Parameter out of range
QDateTime::fromString: Parameter out of range
QDateTime::fromString: Parameter out of range
QDateTime::fromString: Parameter out of range
QDateTime::fromString: Parameter out of range
QDateTime::fromString: Parameter out of range
QDateTime::fromString: Parameter out of range
QDateTime::fromString: Parameter out of range
QDateTime::fromString: Parameter out of range
QDateTime::fromString: Parameter out of range
QDateTime::fromString: Parameter out of range
QDateTime::fromString: Parameter out of range
QDateTime::fromString: Parameter out of range
QDateTime::fromString: Parameter out of range
QDateTime::fromString: Parameter out of range
QMetaObject::findSignal:ClientStream: Conflict with Stream::readyRead()
kopete (oscar/icq): WARNING: [ICQ::Presence ICQ::OnlineStatusManager::presenceOf(uint)] No presence exists for internal status 99! Returning Offline
QMetaObject::findSignal:ClientStream: Conflict with Stream::readyRead()
QMetaObject::findSignal:ClientStream: Conflict with Stream::readyRead()
ASSERT: "!mHost.isNull()" in oscarconnector.cpp (49)
ASSERT: "mPort" in oscarconnector.cpp (50)
kopete (oscar/icq): WARNING: [ICQ::Presence ICQ::OnlineStatusManager::presenceOf(uint)] No presence exists for internal status 99! Returning Offline
kopete (oscar/icq): WARNING: [ICQ::Presence ICQ::OnlineStatusManager::presenceOf(uint)] No presence exists for internal status 99! Returning Offline
kopete (oscar/icq): WARNING: [ICQ::Presence ICQ::OnlineStatusManager::presenceOf(uint)] No presence exists for internal status 99! Returning Offline
kopete (oscar/icq): WARNING: [ICQ::Presence ICQ::OnlineStatusManager::presenceOf(uint)] No presence exists for internal status 99! Returning Offline
kopete (oscar/icq): WARNING: [ICQ::Presence ICQ::OnlineStatusManager::presenceOf(uint)] No presence exists for internal status 99! Returning Offline
QMetaObject::findSignal:ClientStream: Conflict with Stream::readyRead()
KCrash: Application 'kopete' crashing...
Comment 5 Roman Jarosz 2005-11-07 23:25:45 UTC
SVN commit 478802 by rjarosz:

Remove second declaration of signal readyRead() in derived class

CCBUG:115772



 M  +0 -1      oscarclientstream.h  
 M  +1 -1      stream.h  


--- branches/KDE/3.5/kdenetwork/kopete/protocols/oscar/liboscar/oscarclientstream.h #478801:478802
@@ -121,7 +121,6 @@
 	void securityLayerActivated(int);
 	void authenticated(); // this signal is ordinarily emitted in processNext
 	void warning(int);
-	void readyRead(); //signals that there is a transfer ready to be read
 public slots:
 	void continueAfterWarning();
 
--- branches/KDE/3.5/kdenetwork/kopete/protocols/oscar/liboscar/stream.h #478801:478802
@@ -67,7 +67,7 @@
 signals:
 	void connectionClosed();
 	void delayedCloseFinished();
-	void readyRead();
+	void readyRead(); //signals that there is a transfer ready to be read
 //	void stanzaWritten();
 	void error(int);
 };
Comment 6 Mathieu Jobin 2005-11-08 02:13:15 UTC
kopete just crash,... I'm not sure If I should be creating a new ticket.....

I think it can be related with this one because it goes through OscarAccount::disconnect

Hope my trace will be usefull.



Using host libthread_db library "/lib/libthread_db.so.1".
`system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols.
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 10118)]
[New Thread 32769 (LWP 10122)]
[KCrash handler]
#6  0x106a42c1 in ?? ()
#7  0x0861e0e1 in ?? ()
#8  0xb515d940 in Client::deleteStaticTasks (this=0x877a238)
    at client.cpp:1027
#9  0xb515a460 in Client::close (this=0x877a238) at client.cpp:177
#10 0xb5149dd7 in OscarAccount::logOff (this=0x87b09f8, reason=148918632)
    at oscaraccount.cpp:124
#11 0xb5149eab in OscarAccount::disconnect (this=0x8e05168)
    at oscaraccount.cpp:138
#12 0xb7e6a044 in Kopete::AccountManager::disconnectAll (this=0x8e05168)
    at kopeteaccountmanager.cpp:126
#13 0xb7e6b83f in Kopete::AccountManager::qt_invoke (this=0x82aa028, _id=3, 
    _o=0xbfc30a80) at kopeteaccountmanager.moc:207
#14 0xb65d06ac in QObject::activate_signal (this=0x82a9ff0, clist=0x82aa2c0, 
    o=0xbfc30a80) at qobject.cpp:2355
#15 0xb65d0504 in QObject::activate_signal (this=0x82a9ff0, signal=2)
    at qobject.cpp:2324
#16 0xb70cab04 in KAction::activated (this=0x8e05168) at kaction.moc:176
#17 0xb70ca1fc in KAction::slotActivated (this=0x82a9ff0) at kaction.cpp:1102
#18 0xb70caeaa in KAction::qt_invoke (this=0x82a9ff0, _id=15, _o=0xbfc30bc0)
    at kaction.moc:218
#19 0xb65d06ac in QObject::activate_signal (this=0x8250d40, clist=0x891c270, 
    o=0xbfc30bc0) at qobject.cpp:2355
#20 0xb65d0504 in QObject::activate_signal (this=0x8250d40, signal=2)
    at qobject.cpp:2324
#21 0xb6e2db32 in KAccelPrivate::menuItemActivated (this=0x8e05168)
    at kaccelprivate.moc:110
#22 0xb6e2c0d8 in KAccelPrivate::emitActivatedSignal (this=0x8250d40, 
    pAction=0x82fc2c8) at kaccel.cpp:378
#23 0xb6e2bed3 in KAccelPrivate::eventFilter (this=0x8250d40, 
    pEvent=0xbfc31100) at kaccel.cpp:350
#24 0xb65cd9d6 in QObject::activate_filters (this=0x823c540, e=0xbfc31100)
    at qobject.cpp:902
#25 0xb65cd853 in QObject::event (this=0x823c540, e=0xbfc31100)
    at qobject.cpp:735
#26 0xb6613a5f in QWidget::event (this=0x823c540, e=0xbfc31100)
    at qwidget.cpp:4658
#27 0xb66f65aa in QMainWindow::event (this=0x823c540, e=0xbfc31100)
    at qmainwindow.cpp:1686
#28 0xb6560235 in QApplication::internalNotify (this=0xbfc315c0, 
    receiver=0x823c540, e=0xbfc31100) at qapplication.cpp:2635
#29 0xb655f5d0 in QApplication::notify (this=0xbfc315c0, receiver=0x82a9950, 
    e=0xbfc31100) at qapplication.cpp:2392
#30 0xb6da9d7f in KApplication::notify (this=0xbfc315c0, receiver=0x82a9950, 
    event=0xbfc31100) at kapplication.cpp:550
#31 0xb79da6fb in QApplication::sendEvent (receiver=0x8e05168, 
    event=0xb5d7da01) at qapplication.h:491
#32 0xb6e2abb9 in KAccelEventHandler::x11Event (this=0x8248928, 
    pEvent=0xb6f21ad0) at kaccel.cpp:144
#33 0xb6dbcf9b in KAppX11HackWidget::publicx11Event (this=0x87aa400, 
    e=0x8e05168) at kapplication.cpp:1652
#34 0xb6daeee9 in KApplication::x11EventFilter (this=0xbfc315c0, 
    _event=0xbfc314b0) at kapplication.cpp:1722
#35 0xb64d1055 in qt_x11EventFilter (ev=0xbfc314b0)
    at qapplication_x11.cpp:386
#36 0xb64dcdbb in QApplication::x11ProcessEvent (this=0xbfc315c0, 
    event=0xbfc314b0) at qapplication_x11.cpp:3308
#37 0xb64fb2c5 in QEventLoop::processEvents (this=0x8205778, flags=4)
    at qeventloop_x11.cpp:192
#38 0xb65777d9 in QEventLoop::enterLoop (this=0x8205778) at qeventloop.cpp:198
#39 0xb65776f2 in QEventLoop::exec (this=0x8205778) at qeventloop.cpp:145
#40 0xb65603d7 in QApplication::exec (this=0xbfc315c0)
    at qapplication.cpp:2758
#41 0x080749de in main (argc=148918632, argv=0x8e05168) at main.cpp:103
Comment 7 Matt Rogers 2005-11-08 15:34:12 UTC
how do we reproduce this?
Comment 8 sts 2005-11-08 19:44:28 UTC
I install latest snapshop on another computer and running kopete.
On this computer today kopete (3.5Beta2) ask me for upload contacts to icq. No crash but start with konsole:

..
QMetaObject::findSignal:ClientStream: Conflict with Stream::readyRead()
kopete (oscar/icq): WARNING: [ICQ::Presence ICQ::OnlineStatusManager::presenceOf(uint)] No presence exists for internal status 99! Returning Offline
QMetaObject::findSignal:ClientStream: Conflict with Stream::readyRead()
..

I'm not online. Only If I set later the status to online.
Comment 9 Thiago Macieira 2005-11-19 23:21:15 UTC
*** Bug 116715 has been marked as a duplicate of this bug. ***
Comment 10 Daniel Hahler 2005-11-20 01:09:33 UTC
It may be related to KDE wallet, because normally it is in this state (the ICQ flower is not fully coloured and turning) until I've entered the password to open the wallet (Kopete is the first app that accesses it).

But after entering the password, it doesn't change the state. If I explicitly set the status to online it crashes.

Is there a debug enabled build with SVN commit 478802 from above?

Or should I try the debug enabled build from above?
Comment 11 Thiago Macieira 2005-12-01 11:37:17 UTC
*** Bug 117421 has been marked as a duplicate of this bug. ***
Comment 12 Thiago Macieira 2005-12-01 11:38:42 UTC
*** Bug 117416 has been marked as a duplicate of this bug. ***
Comment 13 Matt Rogers 2005-12-13 05:42:29 UTC
*** Bug 116404 has been marked as a duplicate of this bug. ***
Comment 14 Matt Rogers 2005-12-13 05:44:46 UTC
*** Bug 112373 has been marked as a duplicate of this bug. ***
Comment 15 Jan Ritzerfeld 2005-12-19 22:06:48 UTC
*** Bug 118662 has been marked as a duplicate of this bug. ***
Comment 16 Thiago Macieira 2005-12-20 01:43:24 UTC
*** Bug 118669 has been marked as a duplicate of this bug. ***
Comment 17 Thiago Macieira 2005-12-20 01:44:14 UTC
Is this bug fixed or not? 115772 is open bug 103251 isn't and they have the same backtrace.
Comment 18 Matt Rogers 2005-12-20 01:50:51 UTC
i don't know if it's fixed or not, since I'm not really sure how i'm supposed to reproduce it.
Comment 19 Thiago Macieira 2005-12-20 01:58:57 UTC

*** This bug has been marked as a duplicate of 103251 ***
Comment 20 Daniel Duris 2005-12-20 10:57:01 UTC
But my bug is not duplicate of this!!!
Read this again:
[Bug 118669] New: kopete crash after cancel is pressed on new event pop-up (e.g. popup showing new user logged in)

it does not crash after changing status, but after I click cancel on user chat popuup or so.
Comment 21 Daniel Duris 2005-12-20 11:10:47 UTC
I reinstalled Kopete and it seems to work flawlessly now.

Thing to do: I used to use both: make uninstall and make clean before reinstalling again with 10.0.3 from tar.bz2

Maybe developers should include complete uninstall in make install as this seems to clean whatever was causing the bug.
Comment 22 Thiago Macieira 2005-12-31 13:31:05 UTC
Is this fixed? We've been getting crash reports that match this bug.
Comment 23 Michael Armbrecht 2005-12-31 17:37:14 UTC
I just reinstalled v0.11 and it still crashes. In which version is this supposed to be fixed?
Comment 24 sts 2005-12-31 19:21:47 UTC
I will reopen this bug..
Comment 25 Matt Rogers 2006-01-03 21:15:04 UTC
*** Bug 119454 has been marked as a duplicate of this bug. ***
Comment 26 Dirk Stoecker 2006-01-09 14:39:15 UTC
I would help debugging this problem (as it really disturbs me also), but I'm unable to use gdb and get useful results. How can I debug kopete, so that I find the place, where the SIGSEGV happens?
Comment 27 Matt Rogers 2006-01-13 02:19:59 UTC
*** Bug 119274 has been marked as a duplicate of this bug. ***
Comment 28 Jan Schaefer 2006-01-18 10:18:54 UTC
I can confirm this bug with Kopete 0.11 using KDE 3.5.0.
Comment 29 Matt Rogers 2006-01-18 13:36:30 UTC
awesome, that means you'll fix it then? Because I still can't reproduce it.
Comment 30 Jan Schaefer 2006-01-18 13:57:09 UTC
Well, I could try it. Assumed that the compiled version will crash, too. Currently, I use SuSE RPM's. But if you like, I would try to fix the bug.
Comment 31 Dirk Stoecker 2006-01-18 14:13:34 UTC
The compiled SVN revision crashs as well.

But as said, I'm still unable to get the kopete program with it's fork/threading to produce any useful debugging results. And without finding the place of the error fixing is a bit complicated. Any hint how to proceed would be fine.
Comment 32 Thiago Macieira 2006-01-21 19:33:42 UTC
*** Bug 120500 has been marked as a duplicate of this bug. ***
Comment 33 Alistair Tonner 2006-01-27 05:19:33 UTC
Created attachment 14397 [details]
two complete sessions - gdb output and bt from Dr Konqui -- see end of file

This is the output from gdb and kopete crash -- note the second session -- I
was able to force a crash by changing state to invisible.  from the 5 or 6
consecutive (no state exists for ... 99 - returning offline) on down is the
crash -- the state comments are me clicking on the icq flower ..
Comment 34 Alistair Tonner 2006-01-27 05:30:35 UTC
See the above attachment to this bug 


System uname: 2.6.14-nitro2X8664_pwcfb_nplt i686 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.0_pre15
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=athlon-xp"
CHOST="i686-pc-linux-gnu"

gcc --version
gcc (GCC) 3.4.5 (Gentoo 3.4.5, ssp-3.4.5-1.0, pie-8.7.9)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 /lib/libc.so.6
GNU C Library stable release version 2.3.6, by Roland McGrath et al.
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.4.5 (Gentoo 3.4.5, ssp-3.4.5-1.0, pie-8.7.9).
Compiled on a Linux 2.6.11 system on 2006-01-22.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        linuxthreads-0.10 by Xavier Leroy
        The C stubs add-on version 2.1.2.
        GNU Libidn by Simon Josefsson
        BIND-8.2.3-T5B
        libthread_db work sponsored by Alpha Processor Inc
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.

kopete --version
Qt: 3.3.4
KDE: 3.5.0
Kopete: 0.11


   Interesting points in my case:

1) dual homed network behind a firewall (outside IP addresses are on SEPARATE networks and one is not reversible) - the firewall load balances requests out to the net.

2) This is the default behaviour with kopete after upgrade to 3.5.0 kde.  Previously the connection to ICQ would frequently error out -- but not sigsegv the app.

3) licq connection works *far* more consistently to connect, but still has difficulties -- the 'network window' in icq essentially indicates that the first login session works, but the second (??? active session) login fails.

4) iptraf on the firewall indicates that the second connection to icq login servers is 50% of the time on the same pipe as the first connection, 50% of the time on the other pipe -- this crash (and licq's problem) occur under both connection strategies.

  I'm no coder but I can certainly manage patching and playing with networks, routing and fine tuning things on a *nix server (I get paid for that)

   Anything I can do to help -- let me know -- *do NOT use the nerdnet address*  -- I will check this posting every 24 hours for the next week - and shortly update my profile with new email.
Comment 35 Matt Rogers 2006-02-05 17:52:01 UTC
who here uses the connection status plugin? If you turn it off, does the crash go away?
Comment 36 Jan Schaefer 2006-02-06 10:02:44 UTC
Yeah! You are absolutely right. It seems to be the connection status plugin. After I disabled that plugin I have had no crash anymore. So we know the source now. This might also the reason why some people do not have any problems.
Comment 37 Jan Schaefer 2006-02-07 10:50:13 UTC
Sorry, false alarm. It still crashes. It is difficult to reproduce, however. Sometimes, Kopete runs in a kind of endless loop, where it tries to connect to the ICQ server, but without success. So the ICQ flower is turning and turning which can last for hours without a connect. When I then set the status to offline Kopete crashes. Before I disabled the connection status plugin, Kopete had always run into this endless loop after the startup of KDE. Now it only happens sometimes, but not deterministically.
Comment 38 Andre Duffeck 2006-02-08 19:10:34 UTC
*** Bug 121613 has been marked as a duplicate of this bug. ***
Comment 39 S. Burmeister 2006-02-10 13:35:56 UTC
I got the following backtrace with recent SVN and the plug-in was disabled. I tried to go offline while ICQ was trying to connect.

Using host libthread_db library "/lib/tls/libthread_db.so.1".
`system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols.
[Thread debugging using libthread_db enabled]
[New Thread 1106012864 (LWP 6068)]
[KCrash handler]
#6  0x42cf354e in Client::deleteStaticTasks (this=0x8148f90) at client.cpp:1095
#7  0x42cf3789 in Client::close (this=0x8148f90) at client.cpp:189
#8  0x42ce2429 in OscarAccount::logOff (this=0x84999f8, 
    reason=Kopete::Account::Manual) at oscaraccount.cpp:124
#9  0x42ce2b14 in OscarAccount::disconnect (this=0x84999f8)
    at oscaraccount.cpp:138
#10 0x42c5786f in ICQAccount::setPresenceTarget (this=0x84999f8, 
    newPres=@0xbf978b2c, message=@0x8122cc0) at icqaccount.cpp:224
#11 0x42c57a95 in ICQAccount::setPresenceType (this=0x84999f8, 
    type=ICQ::Presence::Offline, message=@0x8122cc0) at icqaccount.cpp:212
#12 0x42c57e93 in ICQAccount::setOnlineStatus (this=0x84999f8, 
    status=@0x85b6b98, reason=@0x8122cc0) at icqaccount.cpp:261
#13 0x40126180 in Kopete::Account::qt_invoke (this=0x84999f8, _id=9, 
    _o=0xbf978d08) at kopeteaccount.moc:231
#14 0x401422db in Kopete::PasswordedAccount::qt_invoke (this=0x84999f8, _id=9, 
    _o=0xbf978d08) at kopetepasswordedaccount.moc:93
#15 0x42ce5bfa in OscarAccount::qt_invoke (this=0x84999f8, _id=9, 
    _o=0xbf978d08) at oscaraccount.moc:201
#16 0x42c5839a in ICQAccount::qt_invoke (this=0x84999f8, _id=9, _o=0xbf978d08)
    at icqaccount.moc:178
#17 0x4143da49 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#18 0x400e4c93 in Kopete::OnlineStatusAction::activated (this=0x85b6b68, 
    t0=@0x85b6b98) at kopeteonlinestatusmanager.moc:196
#19 0x400e4ce5 in Kopete::OnlineStatusAction::slotActivated (this=0x85b6b68)
    at kopeteonlinestatusmanager.cpp:427
#20 0x40d371be in KAction::slotPopupActivated ()
   from /opt/kde3/lib/libkdeui.so.4
#21 0x40d37491 in KAction::qt_invoke () from /opt/kde3/lib/libkdeui.so.4
#22 0x400e4d51 in Kopete::OnlineStatusAction::qt_invoke (this=0x85b6b68, 
    _id=16, _o=0xbf978e54) at kopeteonlinestatusmanager.moc:204
#23 0x4143da49 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#24 0x4177f5d2 in QSignal::signal () from /usr/lib/qt3/lib/libqt-mt.so.3
#25 0x4145a66b in QSignal::activate () from /usr/lib/qt3/lib/libqt-mt.so.3
#26 0x41544888 in QPopupMenu::mouseReleaseEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#27 0x40ceb621 in KPopupMenu::mouseReleaseEvent ()
   from /opt/kde3/lib/libkdeui.so.4
#28 0x41477708 in QWidget::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#29 0x413ddd41 in QApplication::internalNotify ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#30 0x413deea8 in QApplication::notify () from /usr/lib/qt3/lib/libqt-mt.so.3
#31 0x4105860e in KApplication::notify () from /opt/kde3/lib/libkdecore.so.4
#32 0x413790e0 in QETWidget::translateMouseEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#33 0x41377afb in QApplication::x11ProcessEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#34 0x4138bbea in QEventLoop::processEvents ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#35 0x413f4c53 in QEventLoop::enterLoop () from /usr/lib/qt3/lib/libqt-mt.so.3
#36 0x413f4b36 in QEventLoop::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#37 0x413dd68f in QApplication::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#38 0x080726b1 in main (argc=3, argv=0xbf979934) at main.cpp:103
Comment 40 Andre Duffeck 2006-02-27 08:33:31 UTC
*** Bug 122779 has been marked as a duplicate of this bug. ***
Comment 41 S. Burmeister 2006-03-02 08:56:35 UTC
Crash when clicking on icq-offline while icq was trying to connect.

Using host libthread_db library "/lib/tls/libthread_db.so.1".
`system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols.
[Thread debugging using libthread_db enabled]
[New Thread 1104581984 (LWP 6083)]
[New Thread 1132264368 (LWP 6655)]
[Thread debugging using libthread_db enabled]
[New Thread 1104581984 (LWP 6083)]
[New Thread 1132264368 (LWP 6655)]
[Thread debugging using libthread_db enabled]
[New Thread 1104581984 (LWP 6083)]
[New Thread 1132264368 (LWP 6655)]
[KCrash handler]
#6  0x4167de20 in QDomNodePrivate::replaceChild ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#7  0x42ee9423 in Client::deleteStaticTasks (this=0x8524578) at client.cpp:1293
#8  0x42eee8af in Client::close (this=0x8524578) at client.cpp:216
#9  0x42ed4472 in OscarAccount::logOff (this=0x8496488, 
    reason=Kopete::Account::Manual) at oscaraccount.cpp:137
#10 0x42ed4b5c in OscarAccount::disconnect (this=0x8496488)
    at oscaraccount.cpp:151
#11 0x42e3bfe9 in ICQAccount::setPresenceTarget (this=0x8496488, 
    newPres=@0xbf97997c, message=@0x8127fa0) at icqaccount.cpp:327
#12 0x42e3c20f in ICQAccount::setPresenceType (this=0x8496488, 
    type=ICQ::Presence::Offline, message=@0x8127fa0) at icqaccount.cpp:315
#13 0x42e3c60d in ICQAccount::setOnlineStatus (this=0x8496488, 
    status=@0x85f0988, reason=@0x8127fa0) at icqaccount.cpp:364
#14 0x40124d94 in Kopete::Account::qt_invoke (this=0x8496488, _id=9, 
    _o=0xbf979b58) at kopeteaccount.moc:231
#15 0x40141a97 in Kopete::PasswordedAccount::qt_invoke (this=0x8496488, _id=9, 
    _o=0xbf979b58) at kopetepasswordedaccount.moc:93
#16 0x42ed7bd5 in OscarAccount::qt_invoke (this=0x8496488, _id=9, 
    _o=0xbf979b58) at oscaraccount.moc:201
#17 0x42e3e76d in ICQAccount::qt_invoke (this=0x8496488, _id=9, _o=0xbf979b58)
    at icqaccount.moc:197
#18 0x4143da49 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#19 0x400e4e03 in Kopete::OnlineStatusAction::activated (this=0x85f0958, 
    t0=@0x85f0988) at kopeteonlinestatusmanager.moc:196
#20 0x400e4e55 in Kopete::OnlineStatusAction::slotActivated (this=0x85f0958)
    at kopeteonlinestatusmanager.cpp:427
#21 0x40d371be in KAction::slotPopupActivated ()
   from /opt/kde3/lib/libkdeui.so.4
#22 0x40d37491 in KAction::qt_invoke () from /opt/kde3/lib/libkdeui.so.4
#23 0x400e4ec1 in Kopete::OnlineStatusAction::qt_invoke (this=0x85f0958, 
    _id=16, _o=0xbf979ca4) at kopeteonlinestatusmanager.moc:204
#24 0x4143da49 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#25 0x4177f5d2 in QSignal::signal () from /usr/lib/qt3/lib/libqt-mt.so.3
#26 0x4145a66b in QSignal::activate () from /usr/lib/qt3/lib/libqt-mt.so.3
#27 0x41544888 in QPopupMenu::mouseReleaseEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#28 0x40ceb621 in KPopupMenu::mouseReleaseEvent ()
   from /opt/kde3/lib/libkdeui.so.4
#29 0x41477708 in QWidget::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#30 0x413ddd41 in QApplication::internalNotify ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#31 0x413deea8 in QApplication::notify () from /usr/lib/qt3/lib/libqt-mt.so.3
#32 0x4105860e in KApplication::notify () from /opt/kde3/lib/libkdecore.so.4
#33 0x413790e0 in QETWidget::translateMouseEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#34 0x41377afb in QApplication::x11ProcessEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#35 0x4138bbea in QEventLoop::processEvents ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#36 0x413f4c39 in QEventLoop::enterLoop () from /usr/lib/qt3/lib/libqt-mt.so.3
#37 0x413f4b36 in QEventLoop::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#38 0x413dd68f in QApplication::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#39 0x08072d41 in main (argc=3, argv=0xbf97a784) at main.cpp:107
Comment 42 Roman Jarosz 2006-03-07 02:32:53 UTC
Can somebody try to change in file kopete/protocols/oscar/liboscar/client.cpp
void Client::close()
{
	d->active = false;
	d->connections.clear();
	deleteStaticTasks();
... to ...
void Client::close()
{
	d->active = false;
	deleteStaticTasks();
	d->connections.clear();

and test if it will still crash.
Thanks
Comment 43 Matt Rogers 2006-03-11 03:53:55 UTC
*** Bug 123263 has been marked as a duplicate of this bug. ***
Comment 44 Matt Rogers 2006-03-11 22:34:52 UTC
*** Bug 123447 has been marked as a duplicate of this bug. ***
Comment 45 Roman Jarosz 2006-03-18 17:17:26 UTC
SVN commit 520030 by rjarosz:

Fix bug 115772: kopete crash after change my icq status to online.
CloseConnectionTask is deleted when its root connection is closed.
BUG: 115772



 M  +1 -5      liboscar/client.cpp  
 M  +10 -0     liboscar/closeconnectiontask.cpp  
 M  +3 -0      oscaraccount.cpp  


--- branches/kopete/0.12/kopete/protocols/oscar/liboscar/client.cpp #520029:520030
@@ -110,7 +110,6 @@
 	SSIAuthTask* ssiAuthTask;
 	ICQUserInfoRequestTask* icqInfoTask;
 	UserInfoTask* userInfoTask;
-	CloseConnectionTask* closeConnectionTask;
 	TypingNotifyTask * typingNotifyTask;
 	//Managers
 	SSIManager* ssiManager;
@@ -157,7 +156,6 @@
 	d->ssiAuthTask = 0L;
 	d->icqInfoTask = 0L;
 	d->userInfoTask = 0L;
-	d->closeConnectionTask = 0L;
 	d->stage = ClientPrivate::StageOne;
 	d->typingNotifyTask = 0L;
 	d->awayMsgRequestTimer = new QTimer();
@@ -371,7 +369,7 @@
 {
 	//create a new connection and set it up
 	Connection* c = createConnection( d->host, QString::number( d->port ) );
-	d->closeConnectionTask = new CloseConnectionTask( c->rootTask() );
+	new CloseConnectionTask( c->rootTask() );
 
 	//create the new login task
 	m_loginTaskTwo = new StageTwoLoginTask( c->rootTask() );
@@ -1288,7 +1286,6 @@
 	delete d->ssiAuthTask;
 	delete d->icqInfoTask;
 	delete d->userInfoTask;
-	delete d->closeConnectionTask;
 	delete d->typingNotifyTask;
 
 	d->errorTask = 0;
@@ -1298,7 +1295,6 @@
 	d->ssiAuthTask = 0;
 	d->icqInfoTask = 0;
 	d->userInfoTask = 0;
-	d->closeConnectionTask = 0;
 	d->typingNotifyTask = 0;
 }
 
--- branches/kopete/0.12/kopete/protocols/oscar/liboscar/closeconnectiontask.cpp #520029:520030
@@ -112,6 +112,16 @@
 		}
 		
 		tlvList.clear();
+		
+		if ( m_bosHost.isEmpty() )
+		{
+			kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "Empty host address!" << endl;
+			
+			Oscar::SNAC s = { 0, 0, 0, 0 };
+			client()->fatalTaskError( s, 0 );
+			return true;
+		}
+		
 		kdDebug( OSCAR_RAW_DEBUG ) << k_funcinfo << "We should reconnect to server '" 
 			<< m_bosHost << "' on port " << m_bosPort << endl;
 		setSuccess( errorNum, errorReason );
--- branches/kopete/0.12/kopete/protocols/oscar/oscaraccount.cpp #520029:520030
@@ -642,6 +642,9 @@
 		                        Kopete::UI::Global::mainWidget() );
 		switch ( code )
 		{
+		case 0x0000:
+			logOff( Kopete::Account::Unknown );
+			break;
 		case 0x0004:
 		case 0x0005:
 			logOff( Kopete::Account::BadPassword );
Comment 46 Roman Jarosz 2006-03-18 17:32:29 UTC
SVN commit 520037 by rjarosz:

Backport fix for bug 115772: kopete crash after change my icq status to online.
CloseConnectionTask is deleted when its root connection is closed.
CCBUG: 115772



 M  +1 -5      liboscar/client.cpp  
 M  +10 -0     liboscar/closeconnectiontask.cpp  
 M  +3 -0      oscaraccount.cpp  


--- branches/KDE/3.5/kdenetwork/kopete/protocols/oscar/liboscar/client.cpp #520036:520037
@@ -89,7 +89,6 @@
 	SSIAuthTask* ssiAuthTask;
 	ICQUserInfoRequestTask* icqInfoTask;
 	UserInfoTask* userInfoTask;
-	CloseConnectionTask* closeConnectionTask;
 	TypingNotifyTask * typingNotifyTask;
 	//Managers
 	SSIManager* ssiManager;
@@ -132,7 +131,6 @@
 	d->ssiAuthTask = 0L;
 	d->icqInfoTask = 0L;
 	d->userInfoTask = 0L;
-	d->closeConnectionTask = 0L;
 	d->stage = ClientPrivate::StageOne;
 	d->typingNotifyTask = 0L;
 	d->awayMsgRequestTimer = new QTimer();
@@ -340,7 +338,7 @@
 {
 	//create a new connection and set it up
 	Connection* c = createConnection( d->host, QString::number( d->port ) );
-	d->closeConnectionTask = new CloseConnectionTask( c->rootTask() );
+	new CloseConnectionTask( c->rootTask() );
 
 	//create the new login task
 	m_loginTaskTwo = new StageTwoLoginTask( c->rootTask() );
@@ -1090,7 +1088,6 @@
 	delete d->ssiAuthTask;
 	delete d->icqInfoTask;
 	delete d->userInfoTask;
-	delete d->closeConnectionTask;
 	delete d->typingNotifyTask;
 
 	d->errorTask = 0;
@@ -1100,7 +1097,6 @@
 	d->ssiAuthTask = 0;
 	d->icqInfoTask = 0;
 	d->userInfoTask = 0;
-	d->closeConnectionTask = 0;
 	d->typingNotifyTask = 0;
 }
 
--- branches/KDE/3.5/kdenetwork/kopete/protocols/oscar/liboscar/closeconnectiontask.cpp #520036:520037
@@ -112,6 +112,16 @@
 		}
 		
 		tlvList.clear();
+		
+		if ( m_bosHost.isEmpty() )
+		{
+			kdWarning(OSCAR_RAW_DEBUG) << k_funcinfo << "Empty host address!" << endl;
+			
+			Oscar::SNAC s = { 0, 0, 0, 0 };
+			client()->fatalTaskError( s, 0 );
+			return true;
+		}
+		
 		kdDebug( OSCAR_RAW_DEBUG ) << k_funcinfo << "We should reconnect to server '" 
 			<< m_bosHost << "' on port " << m_bosPort << endl;
 		setSuccess( errorNum, errorReason );
--- branches/KDE/3.5/kdenetwork/kopete/protocols/oscar/oscaraccount.cpp #520036:520037
@@ -620,6 +620,9 @@
 		                        Kopete::UI::Global::mainWidget() );
 		switch ( code )
 		{
+		case 0x0000:
+			logOff( Kopete::Account::Unknown );
+			break;
 		case 0x0004:
 		case 0x0005:
 			logOff( Kopete::Account::BadPassword );
Comment 47 Jan Ritzerfeld 2006-03-23 19:56:06 UTC
*** Bug 124014 has been marked as a duplicate of this bug. ***
Comment 48 Matt Rogers 2006-04-02 00:57:22 UTC
*** Bug 124718 has been marked as a duplicate of this bug. ***
Comment 49 Dirk Stoecker 2006-04-25 18:55:14 UTC
The current SVN version, with the above patch included does not fix the problem.

I did a bit of debugging and can you tell the source of the crash (but not the real cause).

kopete crashs in kdenetwork/kopete/protocols/oscar/liboscar/client.cpp destructor, because it is called for a class which has never been initialized (but at least been cleared, as all elements are zero).

I do not know how to debug any further, as I have no idea, where the source of the error may be.
a) Is there a static "class Client" variable, which due the library system nevers gets its constructor called?
b) Is there a dynamic variable, which is allocated the wrong way (e.g. malloc)?

Any hints from kopete developers? I can do debugging, but need a hint how to continue!

#0  0x401d20d0 in Client::deleteStaticTasks (this=0x83b86f0) at kdenetwork/kopete/protocols/oscar/liboscar/client.cpp:1084
1084            delete d->errorTask;
(gdb) bt
#0  0x401d20d0 in Client::deleteStaticTasks (this=0x83b86f0) at kdenetwork/kopete/protocols/oscar/liboscar/client.cpp:1084
#1  0x401d7175 in ~Client (this=0x83b86f0) at kdenetwork/kopete/protocols/oscar/liboscar/client.cpp:149
#2  0x40f6ca0b in FAMOpen2 () from /usr/lib/libfam.so.0
#3  0x40f6ca63 in FAMOpen () from /usr/lib/libfam.so.0
#4  0x40ae2017 in KDirWatchPrivate::KDirWatchPrivate () from /opt/kde3/lib/libkio.so.4
#5  0x40ae62f9 in KDirWatch::KDirWatch () from /opt/kde3/lib/libkio.so.4
#6  0x424ace04 in KABC::ResourceFile::ResourceFile () from /opt/kde3/lib/libkabc_file.so.1
#7  0x40f916e4 in KRES::PluginFactory<KABC::ResourceFile, KABC::ResourceFileConfig>::resource () from /opt/kde3/lib/kde3/kabc_file.so
#8  0x40367b9a in KRES::Factory::resource () from /opt/kde3/lib/libkresources.so.1
#9  0x4036c1d8 in KRES::ManagerImpl::readResourceConfig () from /opt/kde3/lib/libkresources.so.1
#10 0x4036c81e in KRES::ManagerImpl::readConfig () from /opt/kde3/lib/libkresources.so.1
#11 0x402c78eb in KABC::AddressBook::AddressBook () from /opt/kde3/lib/libkabc.so.1
#12 0x402cd3ee in KABC::StdAddressBook::StdAddressBook () from /opt/kde3/lib/libkabc.so.1
#13 0x402cd48b in KABC::StdAddressBook::self () from /opt/kde3/lib/libkabc.so.1
#14 0x4011b16e in Kopete::KABCPersistence::addressBook () at kdenetwork/kopete/libkopete/kabcpersistence.cpp:91
#15 0x0807330e in KopeteApplication::slotLoadPlugins (this=0xbfd137b8) at kdenetwork/kopete/kopete/kopeteapplication.cpp:110
#16 0x08073cf6 in KopeteApplication::qt_invoke (this=0xbfd137b8, _id=23, _o=0xbfd13304) at kopeteapplication.moc:93
#17 0x4152a929 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#18 0x41877892 in QSignal::signal () from /usr/lib/libqt-mt.so.3
#19 0x4154784b in QSignal::activate () from /usr/lib/libqt-mt.so.3
#20 0x4154f393 in QSingleShotTimer::event () from /usr/lib/libqt-mt.so.3
#21 0x414c9f41 in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3
#22 0x414ca8c9 in QApplication::notify () from /usr/lib/libqt-mt.so.3
#23 0x411430de in KApplication::notify () from /opt/kde3/lib/libkdecore.so.4
#24 0x414bea94 in QEventLoop::activateTimers () from /usr/lib/libqt-mt.so.3
#25 0x4147767e in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
#26 0x414e0fd8 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#27 0x414e0ed6 in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
#28 0x414c988f in QApplication::exec () from /usr/lib/libqt-mt.so.3
#29 0x080728e1 in main (argc=2, argv=0xbfd13974) at kdenetwork/kopete/kopete/main.cpp:103
Comment 50 Roman Jarosz 2006-07-01 14:01:19 UTC
*** Bug 129181 has been marked as a duplicate of this bug. ***
Comment 51 Roman Jarosz 2006-07-01 14:05:37 UTC
*** Bug 128583 has been marked as a duplicate of this bug. ***
Comment 52 Roman Jarosz 2006-07-30 21:23:24 UTC
The backtrace from Dirk Stoecker is different from others. He can not reproduce it anymore and I can't too. So I'm closing it.
The backtrace looks like some compilation error.
Comment 53 Robert Hogan 2007-01-18 22:07:40 UTC
libfam is deleting kopete's Client class instead of it's own. you need to namespace your client class.
Comment 54 Matt Rogers 2007-01-19 01:16:29 UTC
libfam should namespace it's Client class. :P 

There are also several other classes in Kopete's protocols named Client and I don't see this affecting them. How is oscar's Client class any different?