Bug 304105 - Kopete crashes when incoming OTR encrypted message is recieved
Summary: Kopete crashes when incoming OTR encrypted message is recieved
Status: RESOLVED FIXED
Alias: None
Product: kopete
Classification: Applications
Component: general (show other bugs)
Version: 1.2.90
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-26 18:22 UTC by David
Modified: 2013-10-26 11:51 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 4.12


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David 2012-07-26 18:22:42 UTC
Application: kopete (1.2.90)
KDE Platform Version: 4.8.90 (4.8.90)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-27-generic x86_64
Distribution: Ubuntu 12.04 LTS

-- Information about the crash:
- What I was doing when the application crashed: The partner has kopete runnign too and OTR activated he or she has your window still open from the last session and writes a message ... but your OTR isnt initalized .. so kopete will crash in some cases, in most cases it says "recieved urneadable encrypted msg from XXXXX", but sometimes this OTR fault leads to a kopete crash

- Custom settings of the application:
OTR plugin is used (this crash happened with the OSCAR protocoll/ icq)

The crash can be reproduced some of the 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 0x7fc70bfe5780 (LWP 15619))]

Thread 2 (Thread 0x7fc6f0d1b700 (LWP 15655)):
#0  0x00007fc70836cb03 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fc70330c036 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fc70330c49a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fc6f294d406 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007fc70332d9e5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fc703de6e9a in start_thread (arg=0x7fc6f0d1b700) at pthread_create.c:308
#6  0x00007fc7083784bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fc70bfe5780 (LWP 15619)):
[KCrash Handler]
#6  QString (other=..., this=0x28374c0) at /usr/include/qt4/QtCore/qstring.h:725
#7  QHashNode (value0=@0x58: <error reading variable>, key0=..., this=0x28374b0) at /usr/include/qt4/QtCore/qhash.h:224
#8  QHash<QString, Kopete::ActiveNotification*>::duplicateNode (node=0x40, newNode=<optimized out>) at /usr/include/qt4/QtCore/qhash.h:532
#9  0x00007fc709925c27 in QHashData::detach_helper2 (this=0x3a2ef00, node_duplicate=0x7fc70b64f460 <QHash<QString, Kopete::ActiveNotification*>::duplicateNode(QHashData::Node*, void*)>, node_delete=0x7fc70b64f480 <QHash<QString, Kopete::ActiveNotification*>::deleteNode2(QHashData::Node*)>, nodeSize=<optimized out>, nodeAlign=8) at tools/qhash.cpp:239
#10 0x00007fc70b650466 in detach_helper (this=0x35709e8) at /usr/include/qt4/QtCore/qhash.h:584
#11 detach (this=0x35709e8) at /usr/include/qt4/QtCore/qhash.h:303
#12 QHash<QString, Kopete::ActiveNotification*>::remove (this=0x35709e8, akey=...) at /usr/include/qt4/QtCore/qhash.h:788
#13 0x00007fc70b65036f in Kopete::ActiveNotification::~ActiveNotification (this=0x2f8a5c0, __in_chrg=<optimized out>) at ../../../kopete/libkopete/private/kopeteactivenotification.cpp:40
#14 0x00007fc70b6503c9 in Kopete::ActiveNotification::~ActiveNotification (this=0x2f8a5c0, __in_chrg=<optimized out>) at ../../../kopete/libkopete/private/kopeteactivenotification.cpp:41
#15 0x00007fc709a1b935 in QObjectPrivate::deleteChildren (this=0x30bacd0) at kernel/qobject.cpp:1908
#16 0x00007fc709a21b9c in QObject::~QObject (this=0x27f4160, __in_chrg=<optimized out>) at kernel/qobject.cpp:927
#17 0x00007fc70a499029 in KNotification::~KNotification (this=0x27f4160, __in_chrg=<optimized out>) at ../../kdeui/notifications/knotification.cpp:113
#18 0x00007fc709a22478 in QObject::event (this=0x27f4160, e=<optimized out>) at kernel/qobject.cpp:1176
#19 0x00007fc708b0e894 in notify_helper (e=0x319da50, receiver=0x27f4160, this=0x2356cd0) at kernel/qapplication.cpp:4559
#20 QApplicationPrivate::notify_helper (this=0x2356cd0, receiver=0x27f4160, e=0x319da50) at kernel/qapplication.cpp:4531
#21 0x00007fc708b13713 in QApplication::notify (this=0x7fff7186f190, receiver=0x27f4160, e=0x319da50) at kernel/qapplication.cpp:4420
#22 0x00007fc70a46f9e6 in KApplication::notify (this=0x7fff7186f190, receiver=0x27f4160, event=0x319da50) at ../../kdeui/kernel/kapplication.cpp:311
#23 0x00007fc709a08e9c in QCoreApplication::notifyInternal (this=0x7fff7186f190, receiver=0x27f4160, event=0x319da50) at kernel/qcoreapplication.cpp:876
#24 0x00007fc709a0cc6a in sendEvent (event=0x319da50, receiver=0x27f4160) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#25 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x2305440) at kernel/qcoreapplication.cpp:1500
#26 0x00007fc709a37f93 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#27 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:279
#28 0x00007fc70330bd53 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007fc70330c0a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007fc70330c164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007fc709a383bf in QEventDispatcherGlib::processEvents (this=0x2306d20, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#32 0x00007fc708bb6d5e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#33 0x00007fc709a07c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#34 0x00007fc709a07ed7 in QEventLoop::exec (this=0x7fff7186f110, flags=...) at kernel/qeventloop.cpp:204
#35 0x00007fc709a0cf67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#36 0x000000000041418f in main (argc=3, argv=0x7fff71870018) at ../../../kopete/kopete/main.cpp:105

Possible duplicates by query: bug 303954, bug 303775, bug 303722, bug 303506, bug 303302.

Reported using DrKonqi
Comment 1 Michael Zanetti 2013-09-17 17:17:35 UTC
Git commit b977f1f701afd1f9192f35e0263f2f1c04bef53e by Michael Zanetti.
Committed on 24/06/2013 at 22:20.
Pushed by mzanetti into branch 'master'.

ported otr plugin to libotr 4.0.0
Related: bug 195328, bug 218570, bug 298681, bug 306276, bug 309987, bug 318255, bug 204502

M  +1    -3    CMakeLists.txt
M  +5    -5    cmake/modules/FindLibOTR.cmake
M  +17   -16   plugins/otr/authenticationwizard.cpp
M  +1    -1    plugins/otr/authenticationwizard.h
M  +1    -1    plugins/otr/kopete_otr.desktop
M  +1    -1    plugins/otr/otrguiclient.cpp
M  +1    -1    plugins/otr/otrguiclient.h
M  +455  -316  plugins/otr/otrlchatinterface.cpp
M  +42   -7    plugins/otr/otrlchatinterface.h
M  +2    -6    plugins/otr/otrlconfinterface.cpp
M  +1    -1    plugins/otr/otrlconfinterface.h
M  +22   -68   plugins/otr/otrplugin.cpp
M  +1    -1    plugins/otr/otrplugin.h
M  +1    -1    plugins/otr/otrpreferences.cpp
M  +1    -1    plugins/otr/otrpreferences.h
M  +1    -1    plugins/otr/privkeypopup.cpp
M  +1    -1    plugins/otr/privkeypopup.h

http://commits.kde.org/kopete/b977f1f701afd1f9192f35e0263f2f1c04bef53e