Bug 206515 - Kopete suddenly crash when minimized [std::string::append, MSN::P2P::handle_BYE, MSN::P2P::handleP2Pmessage] (libmsn svn)
Summary: Kopete suddenly crash when minimized [std::string::append, MSN::P2P::handle_B...
Status: RESOLVED FIXED
Alias: None
Product: kopete
Classification: Unmaintained
Component: WLM Plugin (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
: 214804 216867 218695 222782 222796 223737 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-09-06 18:32 UTC by Dan
Modified: 2010-01-23 15:20 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Debug patch for libmsn (674 bytes, patch)
2010-01-15 09:45 UTC, Roman Jarosz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dan 2009-09-06 18:32:28 UTC
Application that crashed: kopete
Version of the application: 0.70.90
KDE Version: 4.3.61 (KDE 4.3.61 (KDE 4.4 >= 20090717))
Qt Version: 4.5.2
Operating System: Linux 2.6.31-rc9 x86_64

 -- Backtrace:
Application: Kopete (kopete), signal: Segmentation fault
[KCrash Handler]
#5  0x00007f7071a71eb5 in std::string::append () from /usr/local/lib64/libstdc++.so.6
#6  0x00007f7061ecccf8 in MSN::P2P::handle_BYE () from /usr/local/lib/libmsn.so.0.1
#7  0x00007f7061ec6e4b in MSN::P2P::handleP2Pmessage () from /usr/local/lib/libmsn.so.0.1
#8  0x00007f7061e64411 in MSN::SwitchboardServerConnection::message_p2p () from /usr/local/lib/libmsn.so.0.1
#9  0x00007f7061e66388 in MSN::SwitchboardServerConnection::handle_MSG () from /usr/local/lib/libmsn.so.0.1
#10 0x00007f7061e64ca7 in MSN::SwitchboardServerConnection::dispatchCommand () from /usr/local/lib/libmsn.so.0.1
#11 0x00007f7061e68a23 in MSN::SwitchboardServerConnection::handleIncomingData () from /usr/local/lib/libmsn.so.0.1
#12 0x00007f7061e610a4 in MSN::Connection::dataArrivedOnSocket () from /usr/local/lib/libmsn.so.0.1
#13 0x00007f7062164d5c in WlmSocket::qt_metacall (this=0x2bc06e0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=<value optimized out>)
    at /home/fraga/svn/kdenetwork/b/kopete/protocols/wlm/wlmsocket.moc:73
#14 0x00007f7072eebd6b in QMetaObject::activate (sender=0x2bc06e0, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0x3ffffffffffffff9) at kernel/qobject.cpp:3104
#15 0x00007f70741e15c5 in QSslSocket::qt_metacall (this=0x2bc06e0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffe7d2a890) at .moc/release-shared/moc_qsslsocket.cpp:114
#16 0x00007f7062164ca8 in WlmSocket::qt_metacall (this=0x2ac56a8, _c=1643036564, _id=2, _a=0x3ffffffffffffff9) at /home/fraga/svn/kdenetwork/b/kopete/protocols/wlm/wlmsocket.moc:68
#17 0x00007f7072eebd6b in QMetaObject::activate (sender=0x36d26d0, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0x3ffffffffffffff9) at kernel/qobject.cpp:3104
#18 0x00007f70741c86ef in QAbstractSocketPrivate::canReadNotification (this=0x387d120) at socket/qabstractsocket.cpp:604
#19 0x00007f70741b7cd1 in QReadNotifier::event (this=<value optimized out>, e=0x7f7061eebf94) at socket/qnativesocketengine.cpp:1036
#20 0x00007f7071ea162c in QApplicationPrivate::notify_helper (this=0x24300e0, receiver=0x39f07d0, e=0x7fffe7d2ace0) at kernel/qapplication.cpp:4056
#21 0x00007f7071ea874e in QApplication::notify (this=0x7fffe7d2b010, receiver=0x39f07d0, e=0x7fffe7d2ace0) at kernel/qapplication.cpp:4021
#22 0x00007f7073ae7c46 in KApplication::notify (this=0x7fffe7d2b010, receiver=0x39f07d0, event=0x7fffe7d2ace0) at /home/fraga/svn/kdelibs/kdeui/kernel/kapplication.cpp:302
#23 0x00007f7072ed712b in QCoreApplication::notifyInternal (this=0x7fffe7d2b010, receiver=0x39f07d0, event=0x7fffe7d2ace0) at kernel/qcoreapplication.cpp:610
#24 0x00007f7072efee7a in socketNotifierSourceDispatch (source=0x24329a0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#25 0x00007f706e3327bf in g_main_context_dispatch () from /usr/local/lib/libglib-2.0.so.0
#26 0x00007f706e333010 in g_main_context_iterate () from /usr/local/lib/libglib-2.0.so.0
#27 0x00007f706e33318c in g_main_context_iteration () from /usr/local/lib/libglib-2.0.so.0
#28 0x00007f7072efec06 in QEventDispatcherGlib::processEvents (this=0x242fc60, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327
#29 0x00007f7071f3327e in QGuiEventDispatcherGlib::processEvents (this=0x2ac56a8, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#30 0x00007f7072ed5a82 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#31 0x00007f7072ed5e5d in QEventLoop::exec (this=0x7fffe7d2af60, flags=) at kernel/qeventloop.cpp:201
#32 0x00007f7072ed7f81 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#33 0x00000000004150a2 in main (argc=<value optimized out>, argv=<value optimized out>) at /home/fraga/svn/kdenetwork/kopete/kopete/main.cpp:105

Reported using DrKonqi
Comment 1 Matt Rogers 2009-09-06 20:58:22 UTC
Are you running libmsn 4.0 beta 7 or later?
Comment 2 Dario Andres 2009-09-06 23:28:15 UTC
The backtrace seems related to bug 195410 (not related to beta7 crashy-ness)
Thanks
Comment 3 Dan 2009-09-07 03:56:09 UTC
(In reply to comment #1)
> Are you running libmsn 4.0 beta 7 or later?

Yes, I'm using the latest SVN libmsn version (now rev. 108).
Comment 4 Dario Andres 2009-09-17 01:01:32 UTC
- Does recompiling Kopete fixes the issue ? Thanks
Comment 5 Dan 2009-09-18 19:47:26 UTC
(In reply to comment #4)
> - Does recompiling Kopete fixes the issue ? Thanks

Unfortunately no :( I recompiled everything from scratch and wait 2 days, but it crashed with the same backtrace output.
Comment 6 Dario Andres 2009-12-06 22:07:42 UTC
*** Bug 216867 has been marked as a duplicate of this bug. ***
Comment 7 Roman Jarosz 2010-01-02 15:04:42 UTC
*** Bug 214804 has been marked as a duplicate of this bug. ***
Comment 8 Roman Jarosz 2010-01-02 15:05:13 UTC
*** Bug 218695 has been marked as a duplicate of this bug. ***
Comment 9 Roman Jarosz 2010-01-15 09:32:35 UTC
*** Bug 222796 has been marked as a duplicate of this bug. ***
Comment 10 Roman Jarosz 2010-01-15 09:45:02 UTC
Created attachment 39914 [details]
Debug patch for libmsn

Dâniel could you apply this patch, start Kopete from console (or normally but then the debug message should be in .xsession-errors) and paste here the debug messages before the crash. I think I know were it crashes but will need the debug to correctly fix it.

It's probably some "broken" client which crashes Kopete on emoticon/wink/voiceclip/displaypicture/filetransfer request/response.
Comment 11 Roman Jarosz 2010-01-15 09:50:45 UTC
*** Bug 222782 has been marked as a duplicate of this bug. ***
Comment 12 Dan 2010-01-15 15:48:42 UTC
(In reply to comment #10)
> Created an attachment (id=39914) [details]
> Debug patch for libmsn
> 
> Dâniel could you apply this patch, start Kopete from console (or normally but
> It's probably some "broken" client which crashes Kopete on
> emoticon/wink/voiceclip/displaypicture/filetransfer request/response.

Yes, I think you are right. I will ask you for some patience while we wait for it to crash again. Then I post the results. Thank you.
Comment 13 Roman Jarosz 2010-01-15 17:02:04 UTC
Dâniel it's most likely display picture so if you change it you may trigger the crash sooner.
Comment 14 Dan 2010-01-21 22:28:35 UTC
(In reply to comment #13)
> Dâniel it's most likely display picture so if you change it you may trigger the
> crash sooner.

I tried that but (un)fortunately it didn't happen anymore...
Comment 15 Roman Jarosz 2010-01-22 09:33:46 UTC
The workaround was committed to libmsn it will be in next libmsn version which should be released soon. But if you can please watch the console output (.xsession-errors) for "P2P::handle_BYE ERROR" and paste the output to this bug
Comment 16 Roman Jarosz 2010-01-22 09:34:24 UTC
*** Bug 223737 has been marked as a duplicate of this bug. ***
Comment 17 Dan 2010-01-23 15:20:52 UTC
(In reply to comment #15)
> The workaround was committed to libmsn it will be in next libmsn version which
> should be released soon. But if you can please watch the console output
> (.xsession-errors) for "P2P::handle_BYE ERROR" and paste the output to this bug

I am waiting for 2 days for this message in ~/.xsession-errors but I couldn't get it :(.