Bug 328999 - Kopete crash when sending message with OTR enabled
Summary: Kopete crash when sending message with OTR enabled
Status: RESOLVED UPSTREAM
Alias: None
Product: kopete
Classification: Applications
Component: general (show other bugs)
Version: 1.6.0
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Michael Zanetti
URL:
Keywords: drkonqi, regression
: 329002 329109 329296 329379 329594 330177 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-12-19 12:25 UTC by Nico Kruber
Modified: 2014-02-09 00:22 UTC (History)
26 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (12.46 KB, text/plain)
2013-12-20 16:47 UTC, Markus Zimmermann
Details
New crash information added by DrKonqi (8.36 KB, text/plain)
2013-12-22 20:25 UTC, Matthias Mailänder
Details
New crash information added by DrKonqi (4.98 KB, text/plain)
2013-12-23 07:28 UTC, Craig
Details
New crash information added by DrKonqi (6.96 KB, text/plain)
2013-12-23 12:27 UTC, Florian Hoelters
Details
New crash information added by DrKonqi (12.91 KB, text/plain)
2013-12-31 12:46 UTC, Martin Walch
Details
fix NULL pointer dereference (557 bytes, patch)
2013-12-31 13:08 UTC, Pali Rohár
Details
New crash information added by DrKonqi (6.94 KB, text/plain)
2014-01-01 15:17 UTC, zazaamm
Details
New crash information added by DrKonqi (12.17 KB, text/plain)
2014-01-03 16:33 UTC, Till Schäfer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nico Kruber 2013-12-19 12:25:31 UTC
Application: kopete (1.6.0)
KDE Platform Version: 4.12.0
Qt Version: 4.8.5
Operating System: Linux 3.11.6-4-desktop x86_64
Distribution: "openSUSE 13.1 (Bottle) (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed:

I was trying to send a message to an offline-contact on Facebook and every time I try, it crashes

The crash can be reproduced every time.

-- Backtrace:
Application: Kopete (kopete), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f7618ec6880 (LWP 1414))]

Thread 3 (Thread 0x7f7600930700 (LWP 2521)):
#0  0x00007f761525fb3d in poll () from /lib64/libc.so.6
#1  0x00007f760fbad604 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f760fbad70c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f7616921d76 in QEventDispatcherGlib::processEvents (this=0x7f75fc0910d0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#4  0x00007f76168f3d0f in QEventLoop::processEvents (this=this@entry=0x7f75fc0b9440, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f76168f4005 in QEventLoop::exec (this=0x7f75fc0b9440, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f75f8562cd6 in QCA::SyncThread::run() () from /usr/lib64/libqca.so.2
#7  0x00007f76167f568f in QThreadPrivate::start (arg=0x2446700) at thread/qthread_unix.cpp:338
#8  0x00007f7614cff0db in start_thread () from /lib64/libpthread.so.0
#9  0x00007f761526890d in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f75fbfff700 (LWP 2522)):
#0  0x00007f761525fb3d in poll () from /lib64/libc.so.6
#1  0x00007f760fbad604 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f760fbad70c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f7616921d76 in QEventDispatcherGlib::processEvents (this=0x7f75f40301c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#4  0x00007f76168f3d0f in QEventLoop::processEvents (this=this@entry=0x7f75fbffec70, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f76168f4005 in QEventLoop::exec (this=this@entry=0x7f75fbffec70, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f76167f2fef in QThread::exec (this=this@entry=0x286c7d0) at thread/qthread.cpp:536
#7  0x00007f75f89c1e75 in XMPP::NetTrackerThread::run (this=0x286c7d0) at /usr/src/debug/kopete-4.12.0/protocols/jabber/libiris/src/irisnet/corelib/netinterface.cpp:168
#8  0x00007f76167f568f in QThreadPrivate::start (arg=0x286c7d0) at thread/qthread_unix.cpp:338
#9  0x00007f7614cff0db in start_thread () from /lib64/libpthread.so.0
#10 0x00007f761526890d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f7618ec6880 (LWP 1414)):
[KCrash Handler]
#6  Kopete::ChatSession::protocol (this=this@entry=0x0) at /usr/src/debug/kopete-4.12.0/libkopete/kopetechatsession.cpp:222
#7  0x00007f75f9549e5a in OtrlChatInterface::max_message_size (opdata=0x0, context=<optimized out>) at /usr/src/debug/kopete-4.12.0/plugins/otr/otrlchatinterface.cpp:245
#8  0x00007f75f932d980 in ?? () from /usr/lib64/libotr.so.5
#9  0x00007f75f932e377 in otrl_message_sending () from /usr/lib64/libotr.so.5
#10 0x00007f75f954b3a7 in OtrlChatInterface::encryptMessage (this=<optimized out>, message=...) at /usr/src/debug/kopete-4.12.0/plugins/otr/otrlchatinterface.cpp:643
#11 0x00007f75f975fc06 in OTRPlugin::slotOutgoingMessage (this=0x256cd20, msg=...) at /usr/src/debug/kopete-4.12.0/plugins/otr/otrplugin.cpp:164
#12 0x00007f7616908d68 in QMetaObject::activate (sender=0x214b6d0, m=m@entry=0x7f76187ed700 <Kopete::ChatSessionManager::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7fff9c271f10) at kernel/qobject.cpp:3556
#13 0x00007f7618564525 in Kopete::ChatSessionManager::aboutToSend (this=<optimized out>, _t1=...) at /usr/src/debug/kopete-4.12.0/build/libkopete/kopetechatsessionmanager.moc:136
#14 0x00007f7616908d68 in QMetaObject::activate (sender=sender@entry=0x285a280, m=m@entry=0x7f76187ed620 <Kopete::ChatSession::staticMetaObject>, local_signal_index=local_signal_index@entry=5, argv=argv@entry=0x7fff9c272040) at kernel/qobject.cpp:3556
#15 0x00007f7618560337 in Kopete::ChatSession::messageSent (this=this@entry=0x285a280, _t1=..., _t2=_t2@entry=0x285a280) at /usr/src/debug/kopete-4.12.0/build/libkopete/kopetechatsession.moc:285
#16 0x00007f7618562056 in Kopete::ChatSession::sendMessage (this=0x285a280, message=...) at /usr/src/debug/kopete-4.12.0/libkopete/kopetechatsession.cpp:287
#17 0x00007f7618563831 in Kopete::ChatSession::qt_static_metacall (_o=<optimized out>, _id=<optimized out>, _a=<optimized out>, _c=<optimized out>) at /usr/src/debug/kopete-4.12.0/build/libkopete/kopetechatsession.moc:202
#18 0x00007f7616908d68 in QMetaObject::activate (sender=0x2ae5e80, m=m@entry=0x7f75f8e9a160 <ChatView::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fff9c272270) at kernel/qobject.cpp:3556
#19 0x00007f75f8c8a3b5 in messageSent (_t1=..., this=<optimized out>) at /usr/src/debug/kopete-4.12.0/build/kopete/chatwindow/chatview.moc:228
#20 ChatView::qt_static_metacall (_o=<optimized out>, _id=<optimized out>, _a=<optimized out>, _c=<optimized out>) at /usr/src/debug/kopete-4.12.0/build/kopete/chatwindow/chatview.moc:131
#21 0x00007f7616908d68 in QMetaObject::activate (sender=sender@entry=0x274e4d0, m=m@entry=0x7f75f9db1680 <ChatTextEditPart::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fff9c272390) at kernel/qobject.cpp:3556
#22 0x00007f75f9b9a242 in ChatTextEditPart::messageSent (this=this@entry=0x274e4d0, _t1=...) at /usr/src/debug/kopete-4.12.0/build/kopete/chatwindow/chattexteditpart.moc:155
#23 0x00007f75f9b9a902 in ChatTextEditPart::sendMessage (this=0x274e4d0) at /usr/src/debug/kopete-4.12.0/kopete/chatwindow/chattexteditpart.cpp:296
#24 0x00007f75f8c91c75 in KopeteChatWindow::qt_static_metacall (_o=0x2775510, _id=418148752, _a=0x1da2e60, _c=<optimized out>) at /usr/src/debug/kopete-4.12.0/build/kopete/chatwindow/kopetechatwindow.moc:147
#25 0x00007f7616908d68 in QMetaObject::activate (sender=sender@entry=0x26288f0, m=m@entry=0x7f76164b72a0 <QAction::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7fff9c272570) at kernel/qobject.cpp:3556
#26 0x00007f7615a0f752 in QAction::triggered (this=this@entry=0x26288f0, _t1=false) at .moc/release-shared/moc_qaction.cpp:276
#27 0x00007f7615a11123 in QAction::activate (this=0x26288f0, event=event@entry=QAction::Trigger) at kernel/qaction.cpp:1257
#28 0x00007f7615a1127c in QAction::event (this=<optimized out>, e=e@entry=0x7fff9c272910) at kernel/qaction.cpp:1183
#29 0x00007f761728733f in KAction::event (this=<optimized out>, event=0x7fff9c272910) at /usr/src/debug/kdelibs-4.12.0/kdeui/actions/kaction.cpp:131
#30 0x00007f7615a158ac in QApplicationPrivate::notify_helper (this=this@entry=0x1d92330, receiver=receiver@entry=0x26288f0, e=e@entry=0x7fff9c272910) at kernel/qapplication.cpp:4562
#31 0x00007f7615a1be70 in QApplication::notify (this=this@entry=0x7fff9c2736b0, receiver=receiver@entry=0x26288f0, e=e@entry=0x7fff9c272910) at kernel/qapplication.cpp:4348
#32 0x00007f761735d38a in KApplication::notify (this=0x7fff9c2736b0, receiver=0x26288f0, event=0x7fff9c272910) at /usr/src/debug/kdelibs-4.12.0/kdeui/kernel/kapplication.cpp:311
#33 0x00007f76168f50ad in QCoreApplication::notifyInternal (this=0x7fff9c2736b0, receiver=0x26288f0, event=event@entry=0x7fff9c272910) at kernel/qcoreapplication.cpp:949
#34 0x00007f7615a46b86 in sendEvent (event=0x7fff9c272910, receiver=<optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:231
#35 QShortcutMap::dispatchEvent (this=this@entry=0x1d92450, e=e@entry=0x7fff9c272c50) at kernel/qshortcutmap.cpp:884
#36 0x00007f7615a46cb4 in QShortcutMap::tryShortcutEvent (this=0x1d92450, o=o@entry=0x21743b0, e=e@entry=0x7fff9c272c50) at kernel/qshortcutmap.cpp:364
#37 0x00007f7615a1d143 in QApplication::notify (this=this@entry=0x7fff9c2736b0, receiver=receiver@entry=0x21743b0, e=e@entry=0x7fff9c272c50) at kernel/qapplication.cpp:3986
#38 0x00007f761735d38a in KApplication::notify (this=0x7fff9c2736b0, receiver=0x21743b0, event=0x7fff9c272c50) at /usr/src/debug/kdelibs-4.12.0/kdeui/kernel/kapplication.cpp:311
#39 0x00007f76168f50ad in QCoreApplication::notifyInternal (this=0x7fff9c2736b0, receiver=receiver@entry=0x21743b0, event=event@entry=0x7fff9c272c50) at kernel/qcoreapplication.cpp:949
#40 0x00007f7615a14246 in sendSpontaneousEvent (event=event@entry=0x7fff9c272c50, receiver=receiver@entry=0x21743b0) at ../../src/corelib/kernel/qcoreapplication.h:234
#41 qt_sendSpontaneousEvent (receiver=receiver@entry=0x21743b0, event=event@entry=0x7fff9c272c50) at kernel/qapplication.cpp:5560
#42 0x00007f7615aafd79 in QKeyMapper::sendKeyEvent (keyWidget=keyWidget@entry=0x21743b0, grab=grab@entry=false, type=QEvent::KeyPress, code=16777220, modifiers=..., text=..., autorepeat=autorepeat@entry=false, count=1, nativeScanCode=36, nativeVirtualKey=65293, nativeModifiers=4) at kernel/qkeymapper_x11.cpp:1866
#43 0x00007f7615ab0119 in QKeyMapperPrivate::translateKeyEvent (this=0x1de7f50, keyWidget=keyWidget@entry=0x21743b0, event=event@entry=0x7fff9c2731d0, grab=grab@entry=false) at kernel/qkeymapper_x11.cpp:1836
#44 0x00007f7615a8bd3f in QApplication::x11ProcessEvent (this=0x7fff9c2736b0, event=event@entry=0x7fff9c2731d0) at kernel/qapplication_x11.cpp:3544
#45 0x00007f7615ab2882 in x11EventSourceDispatch (s=0x1d93800, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#46 0x00007f760fbad316 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#47 0x00007f760fbad668 in ?? () from /usr/lib64/libglib-2.0.so.0
#48 0x00007f760fbad70c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#49 0x00007f7616921d55 in QEventDispatcherGlib::processEvents (this=0x1d10a70, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#50 0x00007f7615ab2936 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#51 0x00007f76168f3d0f in QEventLoop::processEvents (this=this@entry=0x7fff9c2735b0, flags=...) at kernel/qeventloop.cpp:149
#52 0x00007f76168f4005 in QEventLoop::exec (this=this@entry=0x7fff9c2735b0, flags=...) at kernel/qeventloop.cpp:204
#53 0x00007f76168f913b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1221
#54 0x00007f7615a1406c in QApplication::exec () at kernel/qapplication.cpp:3823
#55 0x000000000041560e in main (argc=3, argv=0x7fff9c273808) at /usr/src/debug/kopete-4.12.0/kopete/main.cpp:105

Reported using DrKonqi
Comment 1 Nico Kruber 2013-12-19 13:49:57 UTC
actually it does not matter whether the contact is offline or online - the crash happens anyway (but was not present with the previous version on KDE 4.11)
Comment 2 Ian Schwarz 2013-12-19 15:02:49 UTC
*** Bug 329002 has been marked as a duplicate of this bug. ***
Comment 3 Ian Schwarz 2013-12-19 15:03:34 UTC
Have you tried disabling the OTR plugin? I doesn't crash anymore for me when I do.
Comment 4 Tristan Miller 2013-12-20 11:11:22 UTC
I am experiencing the same issue when sending to Jabber contacts.  I can confirm that the workaround is to disable the OTR plugin.
Comment 5 Markus Zimmermann 2013-12-20 16:47:09 UTC
Created attachment 84200 [details]
New crash information added by DrKonqi

kopete (1.6.0) on KDE Platform 4.12.0 using Qt 4.8.5

The crash happens for me regardless of the protocol (jabber, icq, skype in my case) and I can confirm that after disabling the OTR plugin everything is working again.

I'm using opensuse 13.1 with the kde412 repository. The kde411 kopete was not crashing.

-- Backtrace (Reduced):
#6  Kopete::ChatSession::protocol (this=this@entry=0x0) at /usr/src/debug/kopete-4.12.0/libkopete/kopetechatsession.cpp:222
#7  0x00007f63ffd24e5a in OtrlChatInterface::max_message_size (opdata=0x0, context=<optimized out>) at /usr/src/debug/kopete-4.12.0/plugins/otr/otrlchatinterface.cpp:245
#8  0x00007f63ffb08980 in fragment_and_send (opdata=opdata@entry=0x0, context=context@entry=0x147aa70, message=0x14b7c80 "kannst numal die zwei PDFs schicken bitte \t  \t\t\t\t \t \t \t    \t\t  \t   \t\t  \t\t", fragPolicy=fragPolicy@entry=OTRL_FRAGMENT_SEND_ALL_BUT_LAST, returnFragment=returnFragment@entry=0x7fffcafbc838, ops=<optimized out>, ops=<optimized out>) at message.c:81
#9  0x00007f63ffb09377 in otrl_message_sending (us=<optimized out>, ops=<optimized out>, opdata=<optimized out>, accountname=<optimized out>, protocol=<optimized out>, recipient=<optimized out>, their_instag=0, original_msg=0x17a8d28 "kannst numal die zwei PDFs schicken bitte", tlvs=0x0, messagep=0x7fffcafbc838, fragPolicy=OTRL_FRAGMENT_SEND_ALL_BUT_LAST, contextp=0x0, add_appdata=0x0, data=0x0) at message.c:444
#10 0x00007f63ffd263a7 in OtrlChatInterface::encryptMessage (this=<optimized out>, message=...) at /usr/src/debug/kopete-4.12.0/plugins/otr/otrlchatinterface.cpp:643
Comment 6 Jekyll Wu 2013-12-22 07:44:25 UTC
*** Bug 329109 has been marked as a duplicate of this bug. ***
Comment 7 Matthias Mailänder 2013-12-22 20:25:55 UTC
Created attachment 84233 [details]
New crash information added by DrKonqi

kopete (1.6.0) on KDE Platform 4.12.0 using Qt 4.8.5

- What I was doing when the application crashed:
Sending an OTR encrypted message.

- Custom settings of the application:
ICQ protocol used.

-- Backtrace (Reduced):
#7  0xb753ac74 in Kopete::ChatSession::protocol (this=0x0) at /usr/src/debug/kopete-4.12.0/libkopete/kopetechatsession.cpp:222
#8  0xb04b76b1 in OtrlChatInterface::max_message_size (opdata=0x0, context=0x9394f88) at /usr/src/debug/kopete-4.12.0/plugins/otr/otrlchatinterface.cpp:245
[...]
#10 0xb049cc61 in otrl_message_sending () from /usr/lib/libotr.so.5
#11 0xb04b8e4f in OtrlChatInterface::encryptMessage (this=0x933b300, message=...) at /usr/src/debug/kopete-4.12.0/plugins/otr/otrlchatinterface.cpp:643
#12 0xb0d0a890 in OTRPlugin::slotOutgoingMessage (this=0x93413c8, msg=...) at /usr/src/debug/kopete-4.12.0/plugins/otr/otrplugin.cpp:164
Comment 8 Jörg Schuck 2013-12-23 01:06:35 UTC
I had the same Problem. I tested it in the following cases.

Kopete 1.6.0; KDE 4.12.0; Qt 4.8.5

- What i was doing when the application crashed:
Sending a message over ICQ or Skype respectively. Both time pressing the "Send" button or using "Enter" to send the message crashed it.

- Workaround found:
I disabled the OTR Plugin, which resulted in allowing me to send messages again.

-- Backtrace
Application: Kopete (kopete), signal: Segmentation fault
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[KCrash Handler]
#5  0x00007f368143df60 in Kopete::ChatSession::protocol() const () from /usr/lib/libkopete.so.4
#6  0x00007f3667f7eb53 in OtrlChatInterface::max_message_size(void*, context*) () from /usr/lib/libkopete_otr_shared.so.1
#7  0x00007f3667d5ca23 in ?? () from /usr/lib/libotr.so.5
#8  0x00007f3667d5d657 in otrl_message_sending () from /usr/lib/libotr.so.5
#9  0x00007f3667f7fde7 in OtrlChatInterface::encryptMessage(Kopete::Message&) () from /usr/lib/libkopete_otr_shared.so.1
#10 0x00007f3668198656 in ?? () from /usr/lib/kde4/kopete_otr.so
#11 0x00007f367f7b6b48 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#12 0x00007f3681442e25 in Kopete::ChatSessionManager::aboutToSend(Kopete::Message&) () from /usr/lib/libkopete.so.4
#13 0x00007f367f7b6b48 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#14 0x00007f368143ec37 in Kopete::ChatSession::messageSent(Kopete::Message&, Kopete::ChatSession*) () from /usr/lib/libkopete.so.4
#15 0x00007f3681440956 in Kopete::ChatSession::sendMessage(Kopete::Message&) () from /usr/lib/libkopete.so.4
#16 0x00007f3681442131 in ?? () from /usr/lib/libkopete.so.4
#17 0x00007f367f7b6b48 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#18 0x00007f36676b7235 in ?? () from /usr/lib/kde4/kopete_chatwindow.so
#19 0x00007f367f7b6b48 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#20 0x00007f36693bace2 in ChatTextEditPart::messageSent(Kopete::Message&) () from /usr/lib/libkopetechatwindow_shared.so.1
#21 0x00007f36693bb3a2 in ChatTextEditPart::sendMessage() () from /usr/lib/libkopetechatwindow_shared.so.1
#22 0x00007f36676beaf5 in ?? () from /usr/lib/kde4/kopete_chatwindow.so
#23 0x00007f367f7b6b48 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#24 0x00007f367ef09a82 in QAbstractButton::clicked(bool) () from /usr/lib/libQtGui.so.4
#25 0x00007f367ec6e243 in ?? () from /usr/lib/libQtGui.so.4
#26 0x00007f367ec6f3b3 in ?? () from /usr/lib/libQtGui.so.4
#27 0x00007f367ec6f49c in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQtGui.so.4
#28 0x00007f367e91062e in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#29 0x00007f367e8c10dc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#30 0x00007f367e8c77dd in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#31 0x00007f368021e92a in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#32 0x00007f367f7a2ebd in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#33 0x00007f367e8c6f93 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/libQtGui.so.4
#34 0x00007f367e938bab in ?? () from /usr/lib/libQtGui.so.4
#35 0x00007f367e93761c in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#36 0x00007f367e95e162 in ?? () from /usr/lib/libQtGui.so.4
#37 0x00007f3678e08296 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#38 0x00007f3678e085e8 in ?? () from /usr/lib/libglib-2.0.so.0
#39 0x00007f3678e0868c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#40 0x00007f367f7cfb25 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#41 0x00007f367e95e216 in ?? () from /usr/lib/libQtGui.so.4
#42 0x00007f367f7a1b1f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#43 0x00007f367f7a1e15 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#44 0x00007f367f7a6f4b in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#45 0x000000000041453e in ?? ()
#46 0x00007f367e061b05 in __libc_start_main () from /usr/lib/libc.so.6
#47 0x00000000004145a1 in _start ()
Comment 9 Craig 2013-12-23 07:28:51 UTC
Created attachment 84238 [details]
New crash information added by DrKonqi

kopete (1.6.0) on KDE Platform 4.12.0 using Qt 4.8.5

- What I was doing when the application crashed:
Sent a message, reproducable every time - sending a message whether in an OTR convo or not causes segfault crash unless OTR is disabled.

- Custom settings of the application:
Just AIM, OTR

OTR is the culprit, when disabled does not crash. Running arch linux, only a problem after upgrade to 4.12.0

-- Backtrace (Reduced):
#5  0x00007fcda9835f60 in Kopete::ChatSession::protocol() const () from /usr/lib/libkopete.so.4
#6  0x00007fcd90c4b8ba in OtrlChatInterface::max_message_size(void*, context*) () from /usr/lib/libkopete_otr_shared.so.1
[...]
#8  0x00007fcd90a30657 in otrl_message_sending () from /usr/lib/libotr.so.5
#9  0x00007fcd90c4cde7 in OtrlChatInterface::encryptMessage(Kopete::Message&) () from /usr/lib/libkopete_otr_shared.so.1
[...]
#12 0x00007fcda983ae25 in Kopete::ChatSessionManager::aboutToSend(Kopete::Message&) () from /usr/lib/libkopete.so.4
Comment 10 Florian Hoelters 2013-12-23 12:27:13 UTC
Created attachment 84245 [details]
New crash information added by DrKonqi

kopete (1.6.0) on KDE Platform 4.12.0 using Qt 4.8.5

- What I was doing when the application crashed:

Sending an OTR encrypted message. Disabling OTR-Plugin solves the problem.

- Custom settings of the application:

XMPP, ICQ

-- Backtrace (Reduced):
#5  0x00007f94683bdf60 in Kopete::ChatSession::protocol() const () from /usr/lib/libkopete.so.4
#6  0x00007f944f2ca8ba in OtrlChatInterface::max_message_size(void*, context*) () from /usr/lib/libkopete_otr_shared.so.1
[...]
#8  0x00007f944f0af657 in otrl_message_sending () from /usr/lib/libotr.so.5
#9  0x00007f944f2cbde7 in OtrlChatInterface::encryptMessage(Kopete::Message&) () from /usr/lib/libkopete_otr_shared.so.1
[...]
#12 0x00007f94683c2e25 in Kopete::ChatSessionManager::aboutToSend(Kopete::Message&) () from /usr/lib/libkopete.so.4
Comment 11 meyerm 2013-12-25 12:02:14 UTC
*** This bug has been confirmed by popular vote. ***
Comment 12 Diego Viola 2013-12-26 08:56:36 UTC
Hello,

I'm also having this same issue, I think the other party is using (Pidgin), but I'm not sure.

The crash happens as soon as I send a message to the other party, when the OTR session has been established or when it's in the process of being established.

Kopete will crash just right there when I send the message.

I don't use Facebook, I use Google (gmail) or DDG (DuckDuckGo) as my XMPP server.

My system info:

Arch Linux x86_64
Qt: 4.8.5
KDE Development Platform: 4.12.0
Kopete: 1.6.0

Thanks.
Comment 13 Jekyll Wu 2013-12-28 03:35:15 UTC
*** Bug 329296 has been marked as a duplicate of this bug. ***
Comment 14 Diego Viola 2013-12-29 09:29:18 UTC
I also wanted to say that I can reproduce this problem at will, it only happens when OTR is enabled (or after a OTR connection has been established or is being established).

Thanks.
Comment 15 Clemens John 2013-12-29 19:57:45 UTC
Hi,

I can also reproduce this error when sending otr encrypted XMPP message. Using Archlinux with KDE 4.12 and Kopete 4.12 (1.6.0). Disabling the OTR Plugin solves the problem.

Application: Kopete (kopete), signal: Segmentation fault
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fbe3fdf1780 (LWP 15990))]

Thread 3 (Thread 0x7fbe1ffff700 (LWP 15995)):
#0  0x00007fbe36f42fba in ?? () from /usr/lib/libglib-2.0.so.0
#1  0x00007fbe36f43299 in g_mutex_unlock () from /usr/lib/libglib-2.0.so.0
#2  0x00007fbe36f03496 in ?? () from /usr/lib/libglib-2.0.so.0
#3  0x00007fbe36f0368c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#4  0x00007fbe3d83bb46 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007fbe3d80db1f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007fbe3d80de15 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#7  0x00007fbe2581d253 in QCA::SyncThread::run() () from /usr/lib/libqca.so.2
#8  0x00007fbe3d70ed8f in ?? () from /usr/lib/libQtCore.so.4
#9  0x00007fbe3bc3b0a2 in start_thread () from /usr/lib/libpthread.so.0
#10 0x00007fbe3c1a63dd in clone () from /usr/lib/libc.so.6

Thread 2 (Thread 0x7fbe1f7fe700 (LWP 15996)):
#0  0x00007fbe3bc3d379 in pthread_mutex_lock () from /usr/lib/libpthread.so.0
#1  0x00007fbe36f43271 in g_mutex_lock () from /usr/lib/libglib-2.0.so.0
#2  0x00007fbe36f02e1b in g_main_context_query () from /usr/lib/libglib-2.0.so.0
#3  0x00007fbe36f034f2 in ?? () from /usr/lib/libglib-2.0.so.0
#4  0x00007fbe36f0368c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#5  0x00007fbe3d83bb46 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007fbe3d80db1f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#7  0x00007fbe3d80de15 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#8  0x00007fbe3d70c6ef in QThread::exec() () from /usr/lib/libQtCore.so.4
#9  0x00007fbe25c74e55 in ?? () from /usr/lib/kde4/kopete_jabber.so
#10 0x00007fbe3d70ed8f in ?? () from /usr/lib/libQtCore.so.4
#11 0x00007fbe3bc3b0a2 in start_thread () from /usr/lib/libpthread.so.0
#12 0x00007fbe3c1a63dd in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7fbe3fdf1780 (LWP 15990)):
[KCrash Handler]
#5  0x00007fbe3f490f60 in Kopete::ChatSession::protocol() const () from /usr/lib/libkopete.so.4
#6  0x00007fbe267fb8ba in OtrlChatInterface::max_message_size(void*, context*) () from /usr/lib/libkopete_otr_shared.so.1
#7  0x00007fbe265dfa23 in ?? () from /usr/lib/libotr.so.5
#8  0x00007fbe265e0657 in otrl_message_sending () from /usr/lib/libotr.so.5
#9  0x00007fbe267fcde7 in OtrlChatInterface::encryptMessage(Kopete::Message&) () from /usr/lib/libkopete_otr_shared.so.1
#10 0x00007fbe26a10656 in ?? () from /usr/lib/kde4/kopete_otr.so
#11 0x00007fbe3d822b48 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#12 0x00007fbe3f495e25 in Kopete::ChatSessionManager::aboutToSend(Kopete::Message&) () from /usr/lib/libkopete.so.4
#13 0x00007fbe3d822b48 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#14 0x00007fbe3f491c37 in Kopete::ChatSession::messageSent(Kopete::Message&, Kopete::ChatSession*) () from /usr/lib/libkopete.so.4
#15 0x00007fbe3f493956 in Kopete::ChatSession::sendMessage(Kopete::Message&) () from /usr/lib/libkopete.so.4
#16 0x00007fbe3f495131 in ?? () from /usr/lib/libkopete.so.4
#17 0x00007fbe3d822b48 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#18 0x00007fbe25f3e235 in ?? () from /usr/lib/kde4/kopete_chatwindow.so
#19 0x00007fbe3d822b48 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#20 0x00007fbe275aace2 in ChatTextEditPart::messageSent(Kopete::Message&) () from /usr/lib/libkopetechatwindow_shared.so.1
#21 0x00007fbe275ab3a2 in ChatTextEditPart::sendMessage() () from /usr/lib/libkopetechatwindow_shared.so.1
#22 0x00007fbe25f45af5 in ?? () from /usr/lib/kde4/kopete_chatwindow.so
#23 0x00007fbe3d822b48 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#24 0x00007fbe3c931f82 in QAction::triggered(bool) () from /usr/lib/libQtGui.so.4
#25 0x00007fbe3c933953 in QAction::activate(QAction::ActionEvent) () from /usr/lib/libQtGui.so.4
#26 0x00007fbe3c933aac in QAction::event(QEvent*) () from /usr/lib/libQtGui.so.4
#27 0x00007fbe3e1ada7f in KAction::event(QEvent*) () from /usr/lib/libkdeui.so.5
#28 0x00007fbe3c9380dc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#29 0x00007fbe3c93e6a0 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#30 0x00007fbe3e28392a in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#31 0x00007fbe3d80eebd in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#32 0x00007fbe3c9693b6 in ?? () from /usr/lib/libQtGui.so.4
#33 0x00007fbe3c9694e4 in ?? () from /usr/lib/libQtGui.so.4
#34 0x00007fbe3c93f973 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#35 0x00007fbe3e28392a in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#36 0x00007fbe3d80eebd in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#37 0x00007fbe3c9d2659 in ?? () from /usr/lib/libQtGui.so.4
#38 0x00007fbe3c9d29f9 in ?? () from /usr/lib/libQtGui.so.4
#39 0x00007fbe3c9ae96f in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#40 0x00007fbe3c9d5162 in ?? () from /usr/lib/libQtGui.so.4
#41 0x00007fbe36f03296 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#42 0x00007fbe36f035e8 in ?? () from /usr/lib/libglib-2.0.so.0
#43 0x00007fbe36f0368c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#44 0x00007fbe3d83bb25 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#45 0x00007fbe3c9d5216 in ?? () from /usr/lib/libQtGui.so.4
#46 0x00007fbe3d80db1f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#47 0x00007fbe3d80de15 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#48 0x00007fbe3d812f4b in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#49 0x000000000041453e in ?? ()
#50 0x00007fbe3c0e2b05 in __libc_start_main () from /usr/lib/libc.so.6
#51 0x00000000004145a1 in _start ()
Comment 16 Jekyll Wu 2013-12-30 01:10:53 UTC
*** Bug 329379 has been marked as a duplicate of this bug. ***
Comment 17 Martin Walch 2013-12-31 12:46:40 UTC
Created attachment 84366 [details]
New crash information added by DrKonqi

kopete (1.6.0) on KDE Platform 4.12.0 using Qt 4.8.5

- What I was doing when the application crashed:
1. Started kopete with --sync switch from command line.
2. Opened chat window for communication over XMPP
3. Started OTR conversation with existing keys (generated long ago somewhere around KDE 4.3?)
4. wrote a message
5. sending the message with enter immediately yielded the crash

-- Backtrace (Reduced):
#6  Kopete::ChatSession::protocol (this=0x0) at /var/tmp/portage/kde-base/kopete-4.12.0/work/kopete-4.12.0/libkopete/kopetechatsession.cpp:222
#7  0x00007fe933ec53d3 in OtrlChatInterface::max_message_size (opdata=0x0, context=<optimized out>) at /var/tmp/portage/kde-base/kopete-4.12.0/work/kopete-4.12.0/plugins/otr/otrlchatinterface.cpp:245
#8  0x00007fe933ca8393 in fragment_and_send (opdata=opdata@entry=0x0, context=context@entry=0xd1e2d0, message=0x141d3d0 "?OTR:AAIDAAAAAAEAAAABAAAAwEhIFUjeO3zx+fXSal+7T9AqMuQLQbYM3m7RlJ8CRu5VGaxxRSXioZKwBjTAOANYfYA7Uk7Ygbzi3rS8U+TAj09jG2IASh4ZsERIn/HEt57rP96xiMXRNqgxgYrt58kxDVglvEjGYY+nGCRyDbTR9WmM7C3wb92QFNOnDH+Lzy26sdZ"..., fragPolicy=fragPolicy@entry=OTRL_FRAGMENT_SEND_ALL_BUT_LAST, returnFragment=returnFragment@entry=0x7fff1d2eccc8, ops=0x7fe9340cf800 <OtrlChatInterface::ui_ops>, ops=0x7fe9340cf800 <OtrlChatInterface::ui_ops>) at message.c:81
#9  0x00007fe933ca8dea in otrl_message_sending (us=<optimized out>, ops=0x7fe9340cf800 <OtrlChatInterface::ui_ops>, opdata=0x1243f30, accountname=<optimized out>, protocol=<optimized out>, recipient=<optimized out>, their_instag=0, original_msg=0x150a4d8 "moin", tlvs=0x0, messagep=0x7fff1d2eccc8, fragPolicy=OTRL_FRAGMENT_SEND_ALL_BUT_LAST, contextp=0x0, add_appdata=0x0, data=0x0) at message.c:444
#10 0x00007fe933ec42cd in OtrlChatInterface::encryptMessage (this=<optimized out>, message=...) at /var/tmp/portage/kde-base/kopete-4.12.0/work/kopete-4.12.0/plugins/otr/otrlchatinterface.cpp:643
Comment 18 Pali Rohár 2013-12-31 13:04:55 UTC
@Michael Zanetti: can you look at this OTR bug? I think that your big otr patch which is in 4.12 introduced it.
Comment 19 Pali Rohár 2013-12-31 13:08:43 UTC
Created attachment 84367 [details]
fix NULL pointer dereference

Can somebody test if this patch will fix otr crashing? From backtrace I see that there is NULL pointer dereference.
Comment 20 zazaamm 2014-01-01 15:17:07 UTC
Created attachment 84394 [details]
New crash information added by DrKonqi

kopete (1.6.0) on KDE Platform 4.12.0 using Qt 4.8.5

- What I was doing when the application crashed:
I tried to send a message to my friend who also has OTR enabled. Kopete crashed immediately.

- Custom settings of the application:
OTR plugin was enabled. OTR key was already created.

-- Backtrace (Reduced):
#5  0x00007f5be9edff60 in Kopete::ChatSession::protocol() const () from /usr/lib/libkopete.so.4
#6  0x00007f5bd10c28ba in OtrlChatInterface::max_message_size(void*, context*) () from /usr/lib/libkopete_otr_shared.so.1
[...]
#8  0x00007f5bd0ea7657 in otrl_message_sending () from /usr/lib/libotr.so.5
#9  0x00007f5bd10c3de7 in OtrlChatInterface::encryptMessage(Kopete::Message&) () from /usr/lib/libkopete_otr_shared.so.1
[...]
#12 0x00007f5be9ee4e25 in Kopete::ChatSessionManager::aboutToSend(Kopete::Message&) () from /usr/lib/libkopete.so.4
Comment 21 Jörg Schuck 2014-01-01 18:00:00 UTC
(In reply to comment #19)
> Created attachment 84367 [details]
> fix NULL pointer dereference
> 
> Can somebody test if this patch will fix otr crashing? From backtrace I see
> that there is NULL pointer dereference.

Applied the patch to the 4.12.0 sources used by Arch, compiled it and reenabled the OTR Plugin.

It doesn't crash Kopete anymore.
Comment 22 Christoph Feck 2014-01-01 19:19:46 UTC
Thanks for the confirmation, Jörg.

Pali, tagging for the 4.12.1 release is on 9th, so please decide soon if the patch should be committed.
Comment 23 Craig 2014-01-02 01:02:35 UTC
(In reply to comment #21)
> (In reply to comment #19)
> > Created attachment 84367 [details]
> > fix NULL pointer dereference
> > 
> > Can somebody test if this patch will fix otr crashing? From backtrace I see
> > that there is NULL pointer dereference.
> 
> Applied the patch to the 4.12.0 sources used by Arch, compiled it and
> reenabled the OTR Plugin.
> 
> It doesn't crash Kopete anymore.

I can confirm the same, using Arch linux compiled the patch into the kopete sources and rebuilt, works perfect no crashing.
Comment 24 Till Schäfer 2014-01-03 16:33:38 UTC
Created attachment 84434 [details]
New crash information added by DrKonqi

kopete (1.6.0) on KDE Platform 4.12.0 using Qt 4.8.5

- What I was doing when the application crashed:

same here, sending a message with otr plugin enabled leads to crashes.

-- Backtrace (Reduced):
#6  Kopete::ChatSession::protocol (this=0x0) at /var/tmp/portage/kde-base/kopete-4.12.0/work/kopete-4.12.0/libkopete/kopetechatsession.cpp:222
#7  0x00007ff5f4a51907 in OtrlChatInterface::max_message_size (opdata=0x0, context=<optimized out>) at /var/tmp/portage/kde-base/kopete-4.12.0/work/kopete-4.12.0/plugins/otr/otrlchatinterface.cpp:243
#8  0x00007ff5f48342ca in fragment_and_send (opdata=opdata@entry=0x0, context=context@entry=0x23f7520, message=0x4d27980 "so .. nun wieder laptop \t  \t\t\t\t \t \t \t    \t\t  \t   \t\t  \t\t", fragPolicy=fragPolicy@entry=OTRL_FRAGMENT_SEND_ALL_BUT_LAST, returnFragment=returnFragment@entry=0x7fff2172d588, ops=0x7ff5f4c5b800 <OtrlChatInterface::ui_ops>, ops=0x7ff5f4c5b800 <OtrlChatInterface::ui_ops>) at message.c:81
#9  0x00007ff5f4834dac in otrl_message_sending (us=<optimized out>, ops=0x7ff5f4c5b800 <OtrlChatInterface::ui_ops>, opdata=<optimized out>, accountname=<optimized out>, protocol=<optimized out>, recipient=<optimized out>, their_instag=0, original_msg=0x4d6b908 "so .. nun wieder laptop", tlvs=0x0, messagep=0x7fff2172d588, fragPolicy=OTRL_FRAGMENT_SEND_ALL_BUT_LAST, contextp=0x0, add_appdata=0x0, data=0x0) at message.c:444
#10 0x00007ff5f4a50421 in OtrlChatInterface::encryptMessage (this=<optimized out>, message=...) at /var/tmp/portage/kde-base/kopete-4.12.0/work/kopete-4.12.0/plugins/otr/otrlchatinterface.cpp:643
Comment 25 Jekyll Wu 2014-01-04 13:23:30 UTC
*** Bug 329594 has been marked as a duplicate of this bug. ***
Comment 26 Michael Zanetti 2014-01-06 08:55:51 UTC
(In reply to comment #19)
> Created attachment 84367 [details]
> fix NULL pointer dereference
> 
> Can somebody test if this patch will fix otr crashing? From backtrace I see
> that there is NULL pointer dereference.

Hey guys, seems your distribution uses an outdated/buggy version of libotr. Please file bugs against your distribution to ship a libotr including this patch: 

http://sourceforge.net/p/otr/libotr/ci/master/tree/src/message.c?diff=939e74d3d6b2913beeb2d2718bebaab3f033577b

This was a bug released with libotr 4.0.0 and has been fixed soon after the release. Some distributions are not shipping the fix yet (Works fine in Ubuntu for example).

Applying the above patch will prevent it from crashing, but introduce the issue that max message size, and thus message fragmentation will break.

If you are affected, please let me know which distribution you use. If its too many of them, I might consider pushing a temporary workaround to kopete. Reading through the comments I can see OpenSuSE and ArchLinux affected so far.
Comment 27 Till Schäfer 2014-01-06 08:59:58 UTC
gentoo is affected too. i will open a bug later this day.
Comment 28 Pali Rohár 2014-01-06 09:49:24 UTC
@Michael Zanetti: Do you know which version of libotr has fixed that bug? I think that Kopete should depends on new fixed version (e.g at compile time in cmake version check). This can prevent using otr plugin on platforms/system where is not fix already applied.
Comment 29 Till Schäfer 2014-01-06 10:02:34 UTC
Gentoo Bug: https://bugs.gentoo.org/show_bug.cgi?id=497226
Comment 30 Till Schäfer 2014-01-06 10:04:55 UTC
(In reply to comment #28)
> @Michael Zanetti: Do you know which version of libotr has fixed that bug? I
> think that Kopete should depends on new fixed version (e.g at compile time
> in cmake version check). This can prevent using otr plugin on
> platforms/system where is not fix already applied.

there is no release > 4.0.0
Comment 31 Markus Zimmermann 2014-01-06 10:06:53 UTC
I added a bugreport to the opensuse tracker https://bugzilla.novell.com/show_bug.cgi?id=857501
libotr comes with the package "libotr5-4.0.0-5.1.2.x86_64" which is part of the distribution's repository.

But why is this the fault of libotr? kde4.11 was working for me 4.12 is not.
Comment 32 Till Schäfer 2014-01-06 10:10:14 UTC
afaik kopete 4.11 is using the 3.x release of libotr
Comment 33 Jörg Schuck 2014-01-06 11:19:41 UTC
Arch Bug: https://bugs.archlinux.org/task/38326
Comment 34 Michael Zanetti 2014-01-06 12:15:05 UTC
(In reply to comment #28)
> @Michael Zanetti: Do you know which version of libotr has fixed that bug? I
> think that Kopete should depends on new fixed version (e.g at compile time
> in cmake version check). This can prevent using otr plugin on
> platforms/system where is not fix already applied.

Hmm... Seems the libotr guys didn't make a release with that fix yet even though the issue is known and fixed for a year now :/
Comment 35 Michael Zanetti 2014-01-06 12:22:49 UTC
Git commit 9cc149f410c8edc06f399ff8add074589a489b38 by Michael Zanetti.
Committed on 06/01/2014 at 12:20.
Pushed by mzanetti into branch 'master'.

Workaround issue in libotr 4.0.0.

This still has an issue with fragmentation as long as libotr 4.0.1 is
not released, but at least it doesn't crash.

M  +7    -2    plugins/otr/otrlchatinterface.cpp

http://commits.kde.org/kopete/9cc149f410c8edc06f399ff8add074589a489b38
Comment 36 Hrvoje Senjan 2014-01-06 19:29:49 UTC
(In reply to comment #26)
> Hey guys, seems your distribution uses an outdated/buggy version of libotr.
> Please file bugs against your distribution to ship a libotr including this
> patch: 
> 
> http://sourceforge.net/p/otr/libotr/ci/master/tree/src/message.
> c?diff=939e74d3d6b2913beeb2d2718bebaab3f033577b

Thanks for the pointer!
This should soon go to openSUSE repositories, and meanwhile i've added the workaround patch to the kopete package.
Comment 37 Markus Zimmermann 2014-01-07 10:32:26 UTC
I'm using the new opensuse kopete package and I can confirm that the crash is gone.  Currently chatting in an OTR session.
Comment 38 Pali Rohár 2014-01-08 18:36:31 UTC
(In reply to comment #35)
> Git commit 9cc149f410c8edc06f399ff8add074589a489b38 by Michael Zanetti.
> Committed on 06/01/2014 at 12:20.
> Pushed by mzanetti into branch 'master'.
> 
> Workaround issue in libotr 4.0.0.
> 
> This still has an issue with fragmentation as long as libotr 4.0.1 is
> not released, but at least it doesn't crash.
> 
> M  +7    -2    plugins/otr/otrlchatinterface.cpp
> 
> http://commits.kde.org/kopete/9cc149f410c8edc06f399ff8add074589a489b38

Can you backport this patch to KDE/4.12 branch?
Comment 39 Michael Zanetti 2014-01-09 08:11:24 UTC
Git commit 5e25a663ca77c22533e7f77277ca84f2af838e9d by Michael Zanetti.
Committed on 06/01/2014 at 12:20.
Pushed by mzanetti into branch 'KDE/4.12'.

Workaround issue in libotr 4.0.0.

This still has an issue with fragmentation as long as libotr 4.0.1 is
not released, but at least it doesn't crash.

M  +7    -2    plugins/otr/otrlchatinterface.cpp

http://commits.kde.org/kopete/5e25a663ca77c22533e7f77277ca84f2af838e9d
Comment 40 Jekyll Wu 2014-01-20 02:07:15 UTC
*** Bug 330177 has been marked as a duplicate of this bug. ***