Bug 153630

Summary: kopete crash logging on msn with HTTP method
Product: [Unmaintained] kopete Reporter: FiNeX <finex>
Component: MSN PluginAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: agjell, apadox, bs0001, cade.robinson, enaB90, rpogomes
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: backtrace of kopete msn crash

Description FiNeX 2007-12-07 17:40:54 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

Kopete crash while connecting on MSN network.
It crash when on the preferences dialog the "Use http method" is selected. 

Moreover, when I select "override default server information", this value it is not saved, but the "Use http method" remain checked.

I'll attach a backtrace too.
Comment 1 FiNeX 2007-12-07 17:41:39 UTC
Created attachment 22401 [details]
backtrace of kopete msn crash
Comment 2 FiNeX 2007-12-07 17:42:41 UTC
In any case, the MSN network will not be activated.
Comment 3 FiNeX 2007-12-19 11:18:20 UTC

*** This bug has been marked as a duplicate of 154027 ***
Comment 4 FiNeX 2007-12-19 11:20:09 UTC
Wrong version, bug #154027 is about 3.5.8 version.
Comment 5 FiNeX 2008-01-06 18:46:47 UTC
Kopete doesn't crash anymore on 4.0.0 :-) :-) :-)
Comment 6 FiNeX 2008-01-06 23:27:13 UTC
Sorry, it is still crashing with the "Use HTTP method" selected :-(
Comment 7 Szabolcs Illes 2008-01-07 23:19:52 UTC
same here, using HTTP method crash, without it does not connect at all, it worked with 4.0RC2
Comment 8 FiNeX 2008-01-13 13:32:50 UTC
*** Bug 155483 has been marked as a duplicate of this bug. ***
Comment 9 Cade Robinson 2008-01-22 18:39:29 UTC
I get the same thing in the debian build.
Comment 10 Carlo Segato 2008-02-25 01:03:38 UTC
SVN commit 778944 by segato:

Fix crash when connecting to msn with HTTP method
BUG: 153630


 M  +1 -1      msnsocket.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=778944
Comment 11 FiNeX 2008-02-25 20:38:50 UTC
Just tried on revision 779096. This time kopete crash without the backtrace ;-(

I've got this errors on the shell output:


kopete(29643)/kopete (msn) MSNNotifySocket::parseCommand: Unimplemented command ' "SBS"   0   "null" ' from server!
kopete(29643)/kopete (msn - raw protocol) MSNSocket::slotDataReceived: "SYN 4 2008-01-23T06:00:57.993-08:00 2008-01-07T06:21:08.823-08:00"
kopete(29643)/kopete (msn) MSNNotifySocket::parseCommand: Contact list up-to-date.
kopete(29643)/kopete (msn - raw protocol) MSNSocket::slotReadyWrite: Sending http command:  "CHG 5 NLN 1073741860"
kopete(29643)/kopete (msn - raw protocol) MSNSocket::slotDataReceived: "CHG 5 NLN 1073741860"
kopete(29643) KopeteWindow::slotIdentityStatusIconChanged: QVariant(, )
ASSERT: "i >= 0 && i < size()" in file /media/progetti/KDE4/qt4/include/QtCore/qbytearray.h, line 385
kio_http(29678)/kssl KIO::TCPSlaveBase::disconnectFromHost:
kio_http(29678)/kssl KIO::TCPSlaveBase::disconnectFromHost:
kded(29316)/kio (KDirWatch) KDirWatchPrivate::inotifyEventReceived: 0 instance(s) monitoring the new file "/home/test/.kde4/share/apps/kwallet/kdewallet.kwlT29316.new"
kded(29316)/kio (KDirWatch) KDirWatchPrivate::inotifyEventReceived: 0 instance(s) monitoring the new file "/home/test/.kde4/share/apps/kwallet/kdewallet.kwl"
kopete(29643)/libkopete Kopete::PluginManagerPrivate::~PluginManagerPrivate: Destructing plugin manager without going through the shutdown process! Backtrace is:
"[
0: /opt/kde4/lib/libkdecore.so.5(_Z14kRealBacktracei+0x3e) [0xb7bf7b9e]
1: /opt/kde4/lib/libkopete.so.4 [0xb6ceda89]
2: /opt/kde4/lib/libkopete.so.4 [0xb6ce97c8]
3: /lib/libc.so.6(exit+0xd4) [0xb6090d44]
4: /media/progetti/KDE4/qt4/lib/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x8c) [0xb7de5b5c]
5: /media/progetti/KDE4/qt4/lib/libQtCore.so.4(_Z6qFatalPKcz+0x59) [0xb7de5c09]
6: /media/progetti/KDE4/qt4/lib/libQtCore.so.4(_Z9qt_assertPKcS0_i+0x35) [0xb7de5ca5]
7: /opt/kde4/lib/libkopete_msn_shared.so.4(_ZN9MSNSocket11WebResponseC1ERK10QByteArray+0x50b) [0xb4026bcb]
8: /opt/kde4/lib/libkopete_msn_shared.so.4(_ZN9MSNSocket16slotDataReceivedEv+0x43d) [0xb402b3bd]
9: /opt/kde4/lib/libkopete_msn_shared.so.4(_ZN9MSNSocket11qt_metacallEN11QMetaObject4CallEiPPv+0x2e6) [0xb402d9c6]
10: /opt/kde4/lib/libkopete_msn_shared.so.4 [0xb403f2aa]
11: /media/progetti/KDE4/qt4/lib/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectiiPPv+0x1fc) [0xb7eca2ec]
12: /media/progetti/KDE4/qt4/lib/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectPKS_iPPv+0x52) [0xb7eca6f2]
13: /media/progetti/KDE4/qt4/lib/libQtCore.so.4(_ZN9QIODevice9readyReadEv+0x37) [0xb7f00b47]
14: /opt/kde4/lib/libkdecore.so.5(_ZN8KNetwork17KClientSocketBase16slotReadActivityEv+0x26) [0xb7c89fc6]
15: /opt/kde4/lib/libkdecore.so.5(_ZN8KNetwork15KBufferedSocket16slotReadActivityEv+0x6b) [0xb7c88aeb]
16: /opt/kde4/lib/libkdecore.so.5(_ZN8KNetwork15KBufferedSocket11qt_metacallEN11QMetaObject4CallEiPPv+0x56) [0xb7c88156]
17: /media/progetti/KDE4/qt4/lib/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectiiPPv+0x1fc) [0xb7eca2ec]
18: /media/progetti/KDE4/qt4/lib/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectPKS_iPPv+0x52) [0xb7eca6f2]
19: /media/progetti/KDE4/qt4/lib/libQtCore.so.4(_ZN15QSocketNotifier9activatedEi+0x43) [0xb7f027b3]
20: /media/progetti/KDE4/qt4/lib/libQtCore.so.4(_ZN15QSocketNotifier5eventEP6QEvent+0x24f) [0xb7ed23af]
21: /media/progetti/KDE4/qt4/lib/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0xbc) [0xb6ed119c]
22: /media/progetti/KDE4/qt4/lib/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0xa9) [0xb6ed7ba9]
23: /opt/kde4/lib/libkdeui.so.5(_ZN12KApplication6notifyEP7QObjectP6QEvent+0x3d) [0xb7906dad]
24: /media/progetti/KDE4/qt4/lib/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0xa9) [0xb7eb9ee9]
25: /media/progetti/KDE4/qt4/lib/libQtCore.so.4 [0xb7ee0513]
26: /usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x176) [0xb5fe7346]
27: /usr/lib/libglib-2.0.so.0 [0xb5fea6d2]
28: /usr/lib/libglib-2.0.so.0(g_main_context_iteration+0x6e) [0xb5feac8e]
29: /media/progetti/KDE4/qt4/lib/libQtCore.so.4(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x58) [0xb7ee0678]
30: /media/progetti/KDE4/qt4/lib/libQtGui.so.4 [0xb6f55145]
31: /media/progetti/KDE4/qt4/lib/libQtCore.so.4(_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE+0x32) [0xb7eb9112]
32: /media/progetti/KDE4/qt4/lib/libQtCore.so.4(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0xa1) [0xb7eb9241]
33: /media/progetti/KDE4/qt4/lib/libQtCore.so.4(_ZN16QCoreApplication4execEv+0xaa) [0xb7ebb49a]
34: /media/progetti/KDE4/qt4/lib/libQtGui.so.4(_ZN12QApplication4execEv+0x27) [0xb6ed0897]
35: kopete [0x8089eaa]
36: /lib/libc.so.6(__libc_start_main+0xe0) [0xb607a390]
37: kopete(_ZN10Q3ListView18drawContentsOffsetEP8QPainteriiiiii+0x6d) [0x8063851]
]
"
kopete(29643)/libkopete Kopete::PluginManagerPrivate::~PluginManagerPrivate: Deleting stale plugin ' "" '
Fatal Error: Accessed global static 'MessageHandlerFactory::FactoryList *g_list()' after destruction. Defined at /media/progetti/KDE4/kdesvn/kdenetwork/kopete/libkopete/kopetemessagehandler.cpp:82
kDebugStream called after destruction (from virtual KRES::ManagerImpl::~ManagerImpl() file /media/progetti/KDE4/kdesvn/kdepimlibs/kresources/managerimpl.cpp line 90)

kDebugStream called after destruction (from void KDirWatchPrivate::removeEntry(KDirWatch*, const QString&, KDirWatchPrivate::Entry*) file /media/progetti/KDE4/kdesvn/kdelibs/kio/kio/kdirwatch.cpp line 763)
KDirWatchPrivate::removeEntry for "/home/test/.kde4/share/apps/kabc/distlists" sub_entry: 0x0
kDebugStream called after destruction (from void KDirWatchPrivate::removeEntry(KDirWatch*, const QString&, KDirWatchPrivate::Entry*) file /media/progetti/KDE4/kdesvn/kdelibs/kio/kio/kdirwatch.cpp line 763)
KDirWatchPrivate::removeEntry for "/home/test/.kde4/share/apps/kabc" sub_entry: 0x8223ccc
kDebugStream called after destruction (from void KDirWatchPrivate::removeEntry(KDirWatch*, const QString&, KDirWatchPrivate::Entry*) file /media/progetti/KDE4/kdesvn/kdelibs/kio/kio/kdirwatch.cpp line 808)
Cancelled INotify (fd 13, 2) for "/home/test/.kde4/share/apps/kabc"
kDebugStream called after destruction (from void KDirWatchPrivate::removeEntry(KDirWatch*, const QString&, KDirWatchPrivate::Entry*) file /media/progetti/KDE4/kdesvn/kdelibs/kio/kio/kdirwatch.cpp line 833)
Removed Dir "/home/test/.kde4/share/apps/kabc" for "/home/test/.kde4/share/apps/kabc/distlists" [""]
kDebugStream called after destruction (from void KDirWatchPrivate::removeEntry(KDirWatch*, const QString&, KDirWatchPrivate::Entry*) file /media/progetti/KDE4/kdesvn/kdelibs/kio/kio/kdirwatch.cpp line 833)
Removed File "/home/test/.kde4/share/apps/kabc/distlists" for "" ["KDirWatch-1"]
kDebugStream called after destruction (from void KDirWatchPrivate::removeEntry(KDirWatch*, const QString&, KDirWatchPrivate::Entry*) file /media/progetti/KDE4/kdesvn/kdelibs/kio/kio/kdirwatch.cpp line 763)
KDirWatchPrivate::removeEntry for "/home/test/.kde4/share/apps/kabc/std.vcf" sub_entry: 0x0
kDebugStream called after destruction (from void KDirWatchPrivate::removeEntry(KDirWatch*, const QString&, KDirWatchPrivate::Entry*) file /media/progetti/KDE4/kdesvn/kdelibs/kio/kio/kdirwatch.cpp line 808)
Cancelled INotify (fd 13, 1) for "/home/test/.kde4/share/apps/kabc/std.vcf"
kDebugStream called after destruction (from void KDirWatchPrivate::removeEntry(KDirWatch*, const QString&, KDirWatchPrivate::Entry*) file /media/progetti/KDE4/kdesvn/kdelibs/kio/kio/kdirwatch.cpp line 833)
Removed File "/home/test/.kde4/share/apps/kabc/std.vcf" for "" ["KDirWatch-1"]
kded(29316)/kio (KDirWatch) KDirWatch::setDirty: "KWallet Directory Watcher" emitting dirty "/home/test/.kde4/share/apps/kwallet"
kio_http(29678)/kssl KIO::TCPSlaveBase::disconnectFromHost:
kdeinit4: PID 29678 terminated.
Comment 12 Matt Rogers 2008-02-26 06:21:41 UTC
run kopete from within gdb (be sure to use the --nofork parameter when 
starting) so that you can get the backtrace when it asserts.
Comment 13 FiNeX 2008-02-26 10:04:51 UTC
No backtrace, even from gdb with the --nofork parameter (gdb returns "No stack").
Comment 14 Pablo Cholaky 2008-06-18 11:26:06 UTC
kopete(6861)/libkopete Kopete::PluginManagerPrivate::~PluginManagerPrivate: Deleting stale plugin ' "" '
Fatal Error: Accessed global static 'PluginManagerPrivate *_kpmp()' after destruction. Defined at /tmp/portage/kde-base/kopete-9999/work/kopete/kopete/libkopete/kopetepluginmanager.cpp:98
Comment 15 patrick peronny 2008-06-18 11:53:27 UTC
Hello,

Same problem using lastest debian build kdenetwork(4:4.0.82+svn819867-1)

I have no backtrace but this is the shell output :

ASSERT: "i >= 0 && i < size()" in file /usr/include/qt4/QtCore/qbytearray.h, line 385                                   
Fatal Error: Accessed global static 'MessageHandlerFactory::FactoryList *g_list()' after destruction. Defined at /tmp/buildd/kdenetwork-4.0.82+svn819867/kopete/libkopete/kopetemessagehandler.cpp:82                                           
kDebugStream called after destruction (from virtual KRES::ManagerImpl::~ManagerImpl() file /tmp/buildd/kdepimlibs-4.0.82+svn819867/kresources/managerimpl.cpp line 90)              

kDebugStream called after destruction (from void KDirWatchPrivate::removeEntry(KDirWatch*, const QString&, KDirWatchPrivate::Entry*) file /tmp/buildd/kde4libs-4.0.82+svn819867/kio/kio/kdirwatch.cpp line 774)                                 
path= "/home/koudelka/.kde4/share/apps/kabc/distlists" sub_entry: 0x0                                                   
kDebugStream called after destruction (from void KDirWatchPrivate::removeEntry(KDirWatch*, const QString&, KDirWatchPrivate::Entry*) file /tmp/buildd/kde4libs-4.0.82+svn819867/kio/kio/kdirwatch.cpp line 774)                                 
path= "/home/koudelka/.kde4/share/apps/kabc" sub_entry: 0x818012c                                                       
kDebugStream called after destruction (from void KDirWatchPrivate::removeEntry(KDirWatch*, KDirWatchPrivate::Entry*, KDirWatchPrivate::Entry*) file /tmp/buildd/kde4libs-4.0.82+svn819867/kio/kio/kdirwatch.cpp line 824)
Cancelled INotify (fd 21, 2) for "/home/koudelka/.kde4/share/apps/kabc"
kDebugStream called after destruction (from void KDirWatchPrivate::removeEntry(KDirWatch*, KDirWatchPrivate::Entry*, KDirWatchPrivate::Entry*) file /tmp/buildd/kde4libs-4.0.82+svn819867/kio/kio/kdirwatch.cpp line 849)
Removed Dir "/home/koudelka/.kde4/share/apps/kabc" for "/home/koudelka/.kde4/share/apps/kabc/distlists" [""]
kDebugStream called after destruction (from void KDirWatchPrivate::removeEntry(KDirWatch*, KDirWatchPrivate::Entry*, KDirWatchPrivate::Entry*) file /tmp/buildd/kde4libs-4.0.82+svn819867/kio/kio/kdirwatch.cpp line 849)
Removed File "/home/koudelka/.kde4/share/apps/kabc/distlists" for "" ["KDirWatch-1"]
kDebugStream called after destruction (from void KDirWatchPrivate::removeEntry(KDirWatch*, const QString&, KDirWatchPrivate::Entry*) file /tmp/buildd/kde4libs-4.0.82+svn819867/kio/kio/kdirwatch.cpp line 774)
path= "/home/koudelka/.kde4/share/apps/kabc/std.vcf" sub_entry: 0x0
kDebugStream called after destruction (from void KDirWatchPrivate::removeEntry(KDirWatch*, KDirWatchPrivate::Entry*, KDirWatchPrivate::Entry*) file /tmp/buildd/kde4libs-4.0.82+svn819867/kio/kio/kdirwatch.cpp line 824)
Cancelled INotify (fd 21, 1) for "/home/koudelka/.kde4/share/apps/kabc/std.vcf"
kDebugStream called after destruction (from void KDirWatchPrivate::removeEntry(KDirWatch*, KDirWatchPrivate::Entry*, KDirWatchPrivate::Entry*) file /tmp/buildd/kde4libs-4.0.82+svn819867/kio/kio/kdirwatch.cpp line 849)
Removed File "/home/koudelka/.kde4/share/apps/kabc/std.vcf"for "" ["KDirWatch-1"]
Comment 16 patrick peronny 2008-06-19 09:13:55 UTC
i used gdb with --nofork parameter and i have only the message : "no stack"
Comment 17 Stef Louwers 2008-07-07 13:57:39 UTC
I can also confirm for kopete 0.50.1
Comment 18 Rui G. 2008-07-08 00:28:38 UTC
I tried logging in with kopete 0.50.80 and it didn't crash, but wasn't really connected anyway, as is explained in bug 151638.
Comment 19 Björn Streicher 2008-10-14 16:58:58 UTC
Same here using Kopete 0.60.2 (Kubuntu, KDE 4.1.2)
Comment 20 FiNeX 2008-11-05 23:47:05 UTC
*** Bug 171309 has been marked as a duplicate of this bug. ***
Comment 21 Matt Rogers 2008-11-15 06:09:24 UTC
We've completely replaced the current MSN implementation with a new MSN implementation which  If you continue to experience this bug after testing the new implementation (which can be gotten from our subversion repository or with the KDE 4.2 Beta 1 release), PLEASE, open a new bug rather than reopening this bug. Thank you for your time and efforting in helping us find and fix problems in Kopete.
Comment 22 Björn Streicher 2008-11-15 11:29:58 UTC
Works perfectly now using Version 0.60.3, (Kubuntu, KDE 4.1.3) - well done!
Comment 23 FiNeX 2008-11-17 12:05:25 UTC
*** Bug 175388 has been marked as a duplicate of this bug. ***