Bug 207082

Summary: kopete crashes when doing a quick restart (crypto errors, QSslSocketPrivate::ensureInitialized, QSslSocket, WlmSocket)
Product: [Unmaintained] kopete Reporter: David Menday <david>
Component: WLM PluginAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: crash CC: andres.becerra, andresbajotierra
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Bug Depends on:    
Bug Blocks: 206322    

Description David Menday 2009-09-11 14:33:04 UTC
Application that crashed: kopete
Version of the application: 0.70.90
KDE Version: 4.3.1 (KDE 4.3.1)
Qt Version: 4.5.2
Operating System: Linux 2.6.30-gentoo-r4 x86_64

 -- Backtrace:
Application: Kopete (kopete), signal: Segmentation fault
[Current thread is 0 (LWP 10868)]

Thread 3 (Thread 0x7f203e5e6950 (LWP 10869)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f2050d96f6b in QMutexPrivate::wait (this=0x1299600, timeout=-1) at thread/qmutex_unix.cpp:80
#2  0x00007f2050d93105 in QMutex::lock (this=0x105cb08) at thread/qmutex.cpp:207
#3  0x00007f2050d98710 in QWaitCondition::wait (this=<value optimized out>, mutex=0x105cb08, time=2000) at thread/qwaitcondition_unix.cpp:161
#4  0x00007f205150a2b6 in KNetwork::Internal::KResolverManager::requestData (this=0x105caf0, th=0x11af330, maxWaitTime=3)
    at /var/tmp/portage/kde-base/kdelibs-4.3.1/work/kdelibs-4.3.1/kdecore/network/k3resolvermanager.cpp:370
#5  0x00007f205150a318 in KNetwork::Internal::KResolverThread::run (this=0x11af330) at /var/tmp/portage/kde-base/kdelibs-4.3.1/work/kdelibs-4.3.1/kdecore/network/k3resolvermanager.cpp:266
#6  0x00007f2050d978c4 in QThreadPrivate::start (arg=0x11af330) at thread/qthread_unix.cpp:188
#7  0x00007f2050b27017 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#8  0x00007f204f3d348d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f203dde5950 (LWP 10872)):
#0  __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:91
#1  0x00007f204f37b8be in _L_lock_3849 () from /lib/libc.so.6
#2  0x00007f204f377f9b in *__GI___libc_free (mem=0x7f204f653a00) at malloc.c:3623
#3  0x00007f20515067af in KNetwork::KResolverResults::operator= (this=0x117ad48, other=@0x12d5e80) at /usr/include/qt4/QtCore/qshareddata.h:96
#4  0x00007f205150911a in KNetwork::Internal::KResolverManager::doNotifying (this=0x105caf0, p=0x11d3230)
    at /var/tmp/portage/kde-base/kdelibs-4.3.1/work/kdelibs-4.3.1/kdecore/network/k3resolvermanager.cpp:600
#5  0x00007f2051509ba5 in KNetwork::Internal::KResolverManager::handleFinished (this=0x105caf0) at /var/tmp/portage/kde-base/kdelibs-4.3.1/work/kdelibs-4.3.1/kdecore/network/k3resolvermanager.cpp:469
#6  0x00007f205150a303 in KNetwork::Internal::KResolverThread::run (this=0x7f2038001350) at /var/tmp/portage/kde-base/kdelibs-4.3.1/work/kdelibs-4.3.1/kdecore/network/k3resolvermanager.cpp:281
#7  0x00007f2050d978c4 in QThreadPrivate::start (arg=0x7f2038001350) at thread/qthread_unix.cpp:188
#8  0x00007f2050b27017 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#9  0x00007f204f3d348d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f2054dc5750 (LWP 10868)):
[KCrash Handler]
#5  _int_malloc (av=0x7f204f653a00, bytes=24) at malloc.c:4202
#6  0x00007f204f37ab48 in *__GI___libc_malloc (bytes=24) at malloc.c:3551
#7  0x00007f2048aafc03 in CRYPTO_malloc (num=1332034048, file=0x7f2048b7c7c9 "lhash.c", line=193) at mem.c:328
#8  0x00007f2048b0de33 in lh_insert (lh=0x14798d0, data=0x7f2048dc82f0) at lhash.c:193
#9  0x00007f2048b10ab9 in int_err_set_item (d=0x7f2048dc82f0) at err_def.c:316
#10 0x00007f2048b1068c in ERR_load_strings (lib=0, str=0x7f2048dc8300) at err_def.c:475
#11 0x00007f2048b113a4 in ERR_load_ERR_strings () at err_str.c:288
#12 0x00007f2048b10ef9 in ERR_load_crypto_strings () at err_all.c:111
#13 0x00007f2048e084f9 in SSL_load_error_strings () at ssl_err2.c:66
#14 0x00007f20521226c5 in QSslSocketPrivate::ensureInitialized () at ssl/qsslsocket_openssl.cpp:413
#15 0x00007f2052114fdf in QSslCertificate (this=0x1462a48, data=@0x7fff519b8290, format=QSsl::Pem) at ssl/qsslcertificate_p.h:73
#16 0x00007f205211eeed in QSslSocketPrivate (this=0x1462840) at ssl/qsslconfiguration_p.h:85
#17 0x00007f2052122879 in QSslSocketBackendPrivate (this=0x7f204f653a00) at ssl/qsslsocket_openssl.cpp:158
#18 0x00007f205211dc0e in QSslSocket (this=0x11dc460, parent=0x0) at ssl/qsslsocket.cpp:319
#19 0x00007f20400d5ae4 in WlmSocket (this=0x7f204f653a00, mainConnection=0xe8b3f0, isSSL=24) at /var/tmp/portage/kde-base/kopete-4.3.1/work/kopete-4.3.1/kopete/protocols/wlm/wlmsocket.cpp:24
#20 0x00007f20400d381e in Callbacks::connectToServer (this=0xe15dd8, hostname=
        {static npos = 18446744073709551615, _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x7fff519b8570 "\210[á"}}, 
    port=1863, connected=0xe8b400, isSSL=24) at /var/tmp/portage/kde-base/kopete-4.3.1/work/kopete-4.3.1/kopete/protocols/wlm/wlmlibmsn.cpp:679
#21 0x00007f203fe151d8 in MSN::NotificationServerConnection::connect (this=0xe8b3f0, hostname=@0x7fff519b85c0, port=1863)
    at /var/tmp/portage/net-libs/libmsn-4.0_beta8/work/libmsn-4.0-beta8/msn/notificationserver.cpp:1183
#22 0x00007f20400d6534 in WlmServer::WlmConnect (this=0xe15db0, server=@0x7fff519b8660, port=1863) at /var/tmp/portage/kde-base/kopete-4.3.1/work/kopete-4.3.1/kopete/protocols/wlm/wlmserver.cpp:43
#23 0x00007f20400c587f in WlmAccount::connectWithPassword (this=0x1259aa0, pass=@0x7fff519b8890) at /var/tmp/portage/kde-base/kopete-4.3.1/work/kopete-4.3.1/kopete/protocols/wlm/wlmaccount.cpp:288
#24 0x00007f2053ae736a in Kopete::PasswordedAccount::qt_metacall (this=0x1259aa0, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff519b8820)
    at /var/tmp/portage/kde-base/kopete-4.3.1/work/kopete-4.3.1_build/kopete/libkopete/kopetepasswordedaccount.moc:69
#25 0x00007f20400cfbf5 in WlmAccount::qt_metacall (this=0x7f204f653a00, _c=24, _id=1340002328, _a=0x7f204f653a70)
    at /var/tmp/portage/kde-base/kopete-4.3.1/work/kopete-4.3.1_build/kopete/protocols/wlm/wlmaccount.moc:150
#26 0x00007f2050e7de4d in QMetaObject::activate (sender=0x10e3ee8, from_signal_index=<value optimized out>, to_signal_index=4, argv=0x7f204f653a70) at kernel/qobject.cpp:3101
#27 0x00007f2053ae3f49 in KopetePasswordRequestBase::requestFinished (this=0x7f204f653a00, _t1=<value optimized out>)
    at /var/tmp/portage/kde-base/kopete-4.3.1/work/kopete-4.3.1_build/kopete/libkopete/kopetepassword.moc:147
#28 0x00007f2053ae7009 in KopetePasswordGetRequestPrompt::processRequest (this=0x10e3e90) at /var/tmp/portage/kde-base/kopete-4.3.1/work/kopete-4.3.1/kopete/libkopete/kopetepassword.cpp:152
#29 0x00007f2053ae58e4 in KopetePasswordRequest::walletReceived (this=0x10e3e90, wallet=0x1163ab0) at /var/tmp/portage/kde-base/kopete-4.3.1/work/kopete-4.3.1/kopete/libkopete/kopetepassword.cpp:98
#30 0x00007f2053ae4031 in KopetePasswordRequestBase::qt_metacall (this=0x10e3e90, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7fff519b8a60)
    at /var/tmp/portage/kde-base/kopete-4.3.1/work/kopete-4.3.1_build/kopete/libkopete/kopetepassword.moc:133
#31 0x00007f2050e7de4d in QMetaObject::activate (sender=0x1163b20, from_signal_index=<value optimized out>, to_signal_index=4, argv=0x7f204f653a70) at kernel/qobject.cpp:3101
#32 0x00007f2053afd1cf in KopeteWalletSignal::walletOpened (this=0x7f204f653a00, _t1=0x1163ab0)
    at /var/tmp/portage/kde-base/kopete-4.3.1/work/kopete-4.3.1_build/kopete/libkopete/kopetewalletmanager.moc:148
#33 0x00007f2053afd1fe in Kopete::WalletManager::emitWalletOpened (this=<value optimized out>, wallet=0x18)
    at /var/tmp/portage/kde-base/kopete-4.3.1/work/kopete-4.3.1/kopete/libkopete/kopetewalletmanager.cpp:184
#34 0x00007f2053afd6b0 in Kopete::WalletManager::slotWalletChangedStatus (this=0x7f2053d4dc10) at /var/tmp/portage/kde-base/kopete-4.3.1/work/kopete-4.3.1/kopete/libkopete/kopetewalletmanager.cpp:143
#35 0x00007f2053afe378 in Kopete::WalletManager::qt_metacall (this=0x7f2053d4dc10, _c=QMetaObject::InvokeMetaMethod, _id=23, _a=<value optimized out>)
    at /var/tmp/portage/kde-base/kopete-4.3.1/work/kopete-4.3.1_build/kopete/libkopete/kopetewalletmanager.moc:75
#36 0x00007f2050e7de4d in QMetaObject::activate (sender=0x1163ab0, from_signal_index=<value optimized out>, to_signal_index=8, argv=0x7f204f653a70) at kernel/qobject.cpp:3101
#37 0x00007f2051abfbb2 in KWallet::Wallet::walletOpened (this=0x7f204f653a00, _t1=true) at /var/tmp/portage/kde-base/kdelibs-4.3.1/work/kdelibs-4.3.1_build/kdeui/kwallet.moc:139
#38 0x00007f2051ac0964 in KWallet::Wallet::qt_metacall (this=0x1163ab0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff519b8da0)
    at /var/tmp/portage/kde-base/kdelibs-4.3.1/work/kdelibs-4.3.1_build/kdeui/kwallet.moc:99
#39 0x00007f2050e7de4d in QMetaObject::activate (sender=0x11333d0, from_signal_index=<value optimized out>, to_signal_index=9, argv=0x7f204f653a70) at kernel/qobject.cpp:3101
#40 0x00007f2051b81d0f in OrgKdeKWalletInterface::walletAsyncOpened (this=0x7f204f653a00, _t1=11, _t2=1710589346)
    at /var/tmp/portage/kde-base/kdelibs-4.3.1/work/kdelibs-4.3.1_build/kdeui/kwallet_interface.moc:300
#41 0x00007f2051b83149 in OrgKdeKWalletInterface::qt_metacall (this=0x11333d0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff519b9480)
    at /var/tmp/portage/kde-base/kdelibs-4.3.1/work/kdelibs-4.3.1_build/kdeui/kwallet_interface.moc:176
#42 0x00007f20511638d3 in QDBusConnectionPrivate::deliverCall (this=0xe16020, object=0x11333d0, msg=@0xf85d08, metaTypes=@0xf85d10, slotIdx=9) at qdbusintegrator.cpp:891
#43 0x00007f2051169e1f in QDBusCallDeliveryEvent::placeMetaCall (this=0x17, object=0x18) at qdbusintegrator_p.h:101
#44 0x00007f2050e7a9e1 in QObject::event (this=0x11333d0, e=0xf85cc0) at kernel/qobject.cpp:1099
#45 0x00007f204ff9ca2d in QApplicationPrivate::notify_helper (this=0xdfb930, receiver=0x11333d0, e=0xf85cc0) at kernel/qapplication.cpp:4056
#46 0x00007f204ffa542a in QApplication::notify (this=0x7fff519ba040, receiver=0x11333d0, e=0xf85cc0) at kernel/qapplication.cpp:4021
#47 0x00007f2051a3e89b in KApplication::notify (this=0x7fff519ba040, receiver=0x11333d0, event=0xf85cc0)
    at /var/tmp/portage/kde-base/kdelibs-4.3.1/work/kdelibs-4.3.1/kdeui/kernel/kapplication.cpp:302
#48 0x00007f2050e6bd3b in QCoreApplication::notifyInternal (this=0x7fff519ba040, receiver=0x11333d0, event=0xf85cc0) at kernel/qcoreapplication.cpp:606
#49 0x00007f2050e6c67e in QCoreApplicationPrivate::sendPostedEvents (receiver=<value optimized out>, event_type=0, data=0xddd140) at kernel/qcoreapplication.h:213
#50 0x00007f2050e91213 in postEventSourceDispatch (s=<value optimized out>) at kernel/qcoreapplication.h:218
#51 0x00007f204bba0711 in IA__g_main_context_dispatch (context=0xdff440) at gmain.c:2144
#52 0x00007f204bba3e8d in g_main_context_iterate (context=0xdff440, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2778
#53 0x00007f204bba404b in IA__g_main_context_iteration (context=0xdff440, may_block=1) at gmain.c:2841
#54 0x00007f2050e90eaf in QEventDispatcherGlib::processEvents (this=0xdfbcb0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327
#55 0x00007f2050022c7f in QGuiEventDispatcherGlib::processEvents (this=0x7f204f653a00, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#56 0x00007f2050e6a6e2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 1369153392}) at kernel/qeventloop.cpp:149
#57 0x00007f2050e6a87c in QEventLoop::exec (this=0x7fff519b9fb0, flags={i = 1369153472}) at kernel/qeventloop.cpp:197
#58 0x00007f2050e6c91c in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#59 0x00000000004162c8 in main (argc=3, argv=0x7fff519bae78) at /var/tmp/portage/kde-base/kopete-4.3.1/work/kopete-4.3.1/kopete/kopete/main.cpp:104

Reported using DrKonqi
Comment 1 Dario Andres 2009-09-16 05:27:09 UTC
- What is your libmsn version? beta7 and beta8 are known to be crashy with Kopete.
Downgrading to beta6 (or recompiling Kopete against the newest libmsn) should help to workaround/fix the issues.
Thanks
Comment 2 David Menday 2009-09-16 13:19:12 UTC
(In reply to comment #1)
> - What is your libmsn version? beta7 and beta8 are known to be crashy with
> Kopete.
> Downgrading to beta6 (or recompiling Kopete against the newest libmsn) should
> help to workaround/fix the issues.
> Thanks

I had beta8 installed, now downgrading to beta6 (masking beta7 and beta8).
Comment 3 Andrés Becerra 2009-09-29 16:49:57 UTC
*** Bug 208211 has been marked as a duplicate of this bug. ***
Comment 4 Roman Jarosz 2009-12-29 16:42:00 UTC
We broke binary compatibility in libmsn, please recompile Kopete or tell distribution to provide new recompiled Kopete packages.