Bug 300077

Summary: Kopete crashes on startup when connecting to MSN
Product: [Unmaintained] kopete Reporter: James Roe <roejames12>
Component: generalAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: alex.garcia, andrew.crouthamel, liquidsky42
Priority: NOR    
Version First Reported In: 1.2.3   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description James Roe 2012-05-15 17:24:31 UTC
Application: kopete (1.2.3)
KDE Platform Version: 4.8.3 (4.8.3)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-24-generic x86_64
Distribution: Ubuntu 12.04 LTS

-- Information about the crash:
- Unusual behavior I noticed:
This has happened once before, but I deleted the configuration files, and reconfigured everything all over, and it stopped happening, however the bug is back again...

I don't know what happened, but when I start Kopete, the very moment it connects to MSN, it crashes. I have MSN on autostart.

No idea if this is related, but yesterday I tried to shutdown my system, and it wouldn't shutdown. It had a blackscreen. The mouse and keyboard stopped making the system respond (can't flip the numlock or capslock for example), and not even the computers power button worked, but alt+sysrq REISUB keys worked fine. This happened with Kopete today after I did that stuff yesterday.

The crash can be reproduced every time.

-- Backtrace:
Application: Kopete (kopete), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fd1a3b62780 (LWP 2307))]

Thread 5 (Thread 0x7fd18986b700 (LWP 2312)):
#0  0x00007fd19b0936ec in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fd19b093f1b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fd19b09445a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fd18a7922c6 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007fd19b0b59a5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fd19b958e9a in start_thread (arg=0x7fd18986b700) at pthread_create.c:308
#6  0x00007fd19feec4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fd18251d700 (LWP 2313)):
#0  __pthread_mutex_unlock_usercnt (mutex=<optimized out>, decr=<optimized out>) at pthread_mutex_unlock.c:52
#1  __pthread_mutex_unlock (mutex=0x7fd178000a60) at pthread_mutex_unlock.c:290
#2  0x00007fd19b0cf591 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fd19b093713 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fd19b093f1b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fd19b094124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007fd1a15ac426 in QEventDispatcherGlib::processEvents (this=0x7fd1780008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#7  0x00007fd1a157bc82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#8  0x00007fd1a157bed7 in QEventLoop::exec (this=0x7fd1780013c0, flags=...) at kernel/qeventloop.cpp:204
#9  0x00007fd1880d99ba in QCA::SyncThread::run() () from /usr/lib/libqca.so.2
#10 0x00007fd1a147dfcb in QThreadPrivate::start (arg=0xe088b0) at thread/qthread_unix.cpp:298
#11 0x00007fd19b958e9a in start_thread (arg=0x7fd18251d700) at pthread_create.c:308
#12 0x00007fd19feec4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fd181d1c700 (LWP 2314)):
#0  0x00007fd19b093aa0 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fd19b093f96 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fd19b094124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fd1a15ac426 in QEventDispatcherGlib::processEvents (this=0x7fd1700008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007fd1a157bc82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fd1a157bed7 in QEventLoop::exec (this=0x7fd1700013c0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007fd183d400c5 in XMPP::SyncThread::run (this=0xe6b760) at ../../../../../kopete/protocols/jabber/libiris/iris/irisnet/corelib/netinterface.cpp:151
#7  0x00007fd1a147dfcb in QThreadPrivate::start (arg=0xe6b760) at thread/qthread_unix.cpp:298
#8  0x00007fd19b958e9a in start_thread (arg=0x7fd181d1c700) at pthread_create.c:308
#9  0x00007fd19feec4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fd16ffff700 (LWP 2342)):
#0  0x00007fd1a14d4be0 in qt_gettime () at tools/qelapsedtimer_unix.cpp:146
#1  0x00007fd1a15acb8d in QTimerInfoList::updateCurrentTime (this=0x7fd168002060) at kernel/qeventdispatcher_unix.cpp:343
#2  0x00007fd1a15acec3 in QTimerInfoList::timerWait (this=0x7fd168002060, tm=...) at kernel/qeventdispatcher_unix.cpp:450
#3  0x00007fd1a15ab97c in timerSourcePrepareHelper (src=<optimized out>, timeout=0x7fd16fffec6c) at kernel/qeventdispatcher_glib.cpp:136
#4  0x00007fd1a15aba25 in timerSourcePrepare (source=<optimized out>, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#5  0x00007fd19b09371e in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007fd19b093f1b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007fd19b094124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007fd1a15ac426 in QEventDispatcherGlib::processEvents (this=0x7fd1680008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#9  0x00007fd1a157bc82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#10 0x00007fd1a157bed7 in QEventLoop::exec (this=0x7fd16fffedd0, flags=...) at kernel/qeventloop.cpp:204
#11 0x00007fd1a147afa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#12 0x00007fd1a155b9ff in QInotifyFileSystemWatcherEngine::run (this=0x11646f0) at io/qfilesystemwatcher_inotify.cpp:248
#13 0x00007fd1a147dfcb in QThreadPrivate::start (arg=0x11646f0) at thread/qthread_unix.cpp:298
#14 0x00007fd19b958e9a in start_thread (arg=0x7fd16ffff700) at pthread_create.c:308
#15 0x00007fd19feec4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#16 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fd1a3b62780 (LWP 2307)):
[KCrash Handler]
#6  RC4 () at rc4-x86_64.s:343
#7  0x0000000000000667 in ?? ()
#8  0x000000000000061f in ?? ()
#9  0x000000000112abc0 in ?? ()
#10 0x00007fd182f1f629 in rc4_hmac_md5_cipher (ctx=<optimized out>, out=0x10f46a8 "\360s\342\247u\206(*\205\240\320\177\253\306qyi\001\354\210\254\201\316dc\277\021\220y\234\273APn\016\031\004\002\003\025M\005\031\031\035WB", in=<optimized out>, len=0) at e_rc4_hmac_md5.c:163
#11 0x00007fd182547bcf in tls1_enc (s=0x103a060, send=1) at t1_enc.c:828
#12 0x00007fd18253ee04 in do_ssl3_write (s=0x103a060, type=23, buf=0x1178cf8 "POST /rsi/rsi.asmx HTTP/1.1\r\nSOAPAction: http://www.hotmail.msn.com/ws/2004/09/oim/rsi/GetMessage\r\nAccept: */*\r\nContent-Type: text/xml; charset=utf-8\r\nCache-Control: no-cache\r\nProxy-Connection: Keep-A"..., len=1623, create_empty_fragment=0) at s3_pkt.c:815
#13 0x00007fd18253f134 in ssl3_write_bytes (s=0x103a060, type=23, buf_=0x1178cf8, len=<optimized out>) at s3_pkt.c:605
#14 0x00007fd19dec8d54 in QSslSocketBackendPrivate::transmit (this=0x1222ab0) at ssl/qsslsocket_openssl.cpp:1020
#15 0x00007fd19dec2f89 in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at .moc/release-shared/moc_qsslsocket.cpp:98
#16 QSslSocket::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at .moc/release-shared/moc_qsslsocket.cpp:77
#17 0x00007fd1a1591281 in QMetaObject::activate (sender=0x1118050, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3547
#18 0x00007fd19dea268f in QAbstractSocketPrivate::canReadNotification (this=0x11276d0) at socket/qabstractsocket.cpp:654
#19 0x00007fd19deaa201 in event (this=<optimized out>, e=<optimized out>) at socket/qnativesocketengine.cpp:1151
#20 QReadNotifier::event (this=<optimized out>, e=<optimized out>) at socket/qnativesocketengine.cpp:1148
#21 0x00007fd1a0682894 in notify_helper (e=0x7fffc11a74d0, receiver=0x1154b90, this=0x7bad40) at kernel/qapplication.cpp:4559
#22 QApplicationPrivate::notify_helper (this=0x7bad40, receiver=0x1154b90, e=0x7fffc11a74d0) at kernel/qapplication.cpp:4531
#23 0x00007fd1a0687713 in QApplication::notify (this=0x7fffc11a7760, receiver=0x1154b90, e=0x7fffc11a74d0) at kernel/qapplication.cpp:4420
#24 0x00007fd1a1fddbb6 in KApplication::notify (this=0x7fffc11a7760, receiver=0x1154b90, event=0x7fffc11a74d0) at ../../kdeui/kernel/kapplication.cpp:311
#25 0x00007fd1a157ce9c in QCoreApplication::notifyInternal (this=0x7fffc11a7760, receiver=0x1154b90, event=0x7fffc11a74d0) at kernel/qcoreapplication.cpp:876
#26 0x00007fd1a15aba97 in sendEvent (event=0x7fffc11a74d0, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#27 socketNotifierSourceDispatch (source=0x7bb0f0) at kernel/qeventdispatcher_glib.cpp:110
#28 0x00007fd19b093c9a in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007fd19b094060 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007fd19b094124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007fd1a15ac426 in QEventDispatcherGlib::processEvents (this=0x762d20, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#32 0x00007fd1a072ad5e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#33 0x00007fd1a157bc82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#34 0x00007fd1a157bed7 in QEventLoop::exec (this=0x7fffc11a76e0, flags=...) at kernel/qeventloop.cpp:204
#35 0x00007fd1a1580f67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#36 0x000000000041418f in main (argc=3, argv=0x7fffc11a85e8) at ../../../kopete/kopete/main.cpp:105

Reported using DrKonqi
Comment 1 James Roe 2012-05-15 17:50:43 UTC
Deleted the MSN configuration, and readded it, and it didn't crash again. No idea why it was doing that before, but there has to be a bug somewhere, because it's happened to me more than once after fixing it.
Comment 2 Christoph Feck 2012-05-20 01:30:38 UTC
*** Bug 300303 has been marked as a duplicate of this bug. ***
Comment 3 Àlex García 2012-05-21 07:07:22 UTC
Same here, I had to start kopete from console, with --noconnect, deleted my two msn accounds and readded it. Now it's working again (no systray icon, but that's another different bug).
Comment 4 Jan Krings 2012-06-12 09:34:20 UTC
I have the same problem, but in my case, if I start the connection wizzard Kopete crashes. So I can not setup my msn account.
Comment 5 James Roe 2012-06-12 14:55:38 UTC
I believe I've made headway. Now, more recently, this is happening, but if I delete the MSN configuration and readd it, then it still won't work (though sometimes it does). What does work everytime though, was logging into MSN from Meebo, then logging back out. It sounds like this is some weird bug where Kopete/libmsn isn't properly handling something that's getting sent by MSN.
Comment 6 Àlex García 2012-06-13 08:40:35 UTC
It seems it has to do with pending friendship requests handling. For me, it was crashing when showing popups for them.

Once I have logged in via live.com and rejected all them (pure spam accounts), I have been able to log in again from Kopete.
Comment 7 Andrew Crouthamel 2018-10-29 23:57:43 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Andrew Crouthamel 2018-11-12 18:08:49 UTC
MSN/WLM has been shut down, closing this bug.