Bug 177416 - Crash while trying to authenticate OTR contact
Summary: Crash while trying to authenticate OTR contact
Status: RESOLVED FIXED
Alias: None
Product: kopete
Classification: Applications
Component: OTR Plugin (show other bugs)
Version: 0.60.81
Platform: Compiled Sources Unspecified
: NOR crash
Target Milestone: ---
Assignee: Michael Zanetti
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-10 20:10 UTC by Martin Flöser
Modified: 2009-02-03 20:53 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
same crash with 4.1.85+svn899360-0r1 (5.94 KB, application/octet-stream)
2008-12-23 01:38 UTC, Karl Ferdinand Ebert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Flöser 2008-12-10 20:10:33 UTC
Version:            (using Devel)
Installed from:    Compiled sources

while trying to authenticate an OTR contact kopete crashes. The crash appears as soon as I click on "authenticate contact" in the OTR toolbar icon menu.

I am using KDE 4.2 beta 1 (Ubuntu packages)

Here the backtrace:
Anwendung: Kopete (kopete), Signal SIGSEGV
0x00007f3e66f93621 in nanosleep () from /lib/libc.so.6
[Current thread is 0 (LWP 11334)]

Thread 3 (Thread 0x419fd950 (LWP 11337)):
#0  0x00007f3e66fc8206 in poll () from /lib/libc.so.6
#1  0x00007f3e634023a8 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f3e634026cb in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f3e68c2617e in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#4  0x00007f3e68bfc682 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#5  0x00007f3e68bfc80d in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#6  0x00007f3e580812cb in QCA::SyncThread::run () from /usr/lib/libqca.so.2
#7  0x00007f3e68b15362 in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007f3e6554e3ea in start_thread () from /lib/libpthread.so.0
#9  0x00007f3e66fd1c6d in clone () from /lib/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x421fe950 (LWP 11338)):
#0  0x00007f3e655522d9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f3e68b16349 in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#2  0x00007f3e6881929c in ?? () from /usr/lib/libQtNetwork.so.4
#3  0x00007f3e68b15362 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f3e6554e3ea in start_thread () from /lib/libpthread.so.0
#5  0x00007f3e66fd1c6d in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f3e6e2bf6f0 (LWP 11334)):
[KCrash Handler]
#5  0x00007f3e58ed2b2f in OtrlChatInterface::findActiveFingerprint (this=<value optimized out>, session=0x25e1e90) at /build/buildd/kdenetwork-4.1.80/kopete/plugins/otr/otrlchatinterface.cpp:678
#6  0x00007f3e58edae78 in AuthenticationWizard::createMVPage (this=0x315a110) at /build/buildd/kdenetwork-4.1.80/kopete/plugins/otr/authenticationwizard.cpp:175
#7  0x00007f3e58edc8ae in AuthenticationWizard (this=0x315a110, parent=<value optimized out>, context=0x27a6710, session=0x25e1e90, initiate=true, question=@0x7fff762fe8b0)
    at /build/buildd/kdenetwork-4.1.80/kopete/plugins/otr/authenticationwizard.cpp:48
#8  0x00007f3e58ed2dc2 in OtrlChatInterface::verifyFingerprint (this=<value optimized out>, session=0x25e1e90) at /build/buildd/kdenetwork-4.1.80/kopete/plugins/otr/otrlchatinterface.cpp:658
#9  0x00007f3e590ecdb1 in OTRPlugin::qt_metacall (this=0x279d170, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff762fea80)
    at /build/buildd/kdenetwork-4.1.80/kopete/plugins/otr/otrplugin.cpp:205
#10 0x00007f3e68c12134 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#11 0x00007f3e590e9332 in OtrGUIClient::signalVerifyFingerprint (this=0x7fff762fe530, _t1=0x25e1e90) at /build/buildd/kdenetwork-4.1.80/obj-x86_64-linux-gnu/kopete/plugins/otr/otrguiclient.moc:102
#12 0x00007f3e590e99a0 in OtrGUIClient::qt_metacall (this=0x2d5ab10, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff762febb0)
    at /build/buildd/kdenetwork-4.1.80/obj-x86_64-linux-gnu/kopete/plugins/otr/otrguiclient.moc:84
#13 0x00007f3e68c12134 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#14 0x00007f3e67bcbf57 in QAction::triggered () from /usr/lib/libQtGui.so.4
#15 0x00007f3e67bcc720 in QAction::activate () from /usr/lib/libQtGui.so.4
#16 0x00007f3e67f651ad in ?? () from /usr/lib/libQtGui.so.4
#17 0x00007f3e6d204fe1 in KMenu::mouseReleaseEvent () from /usr/lib/libkdeui.so.5
#18 0x00007f3e67c24329 in QWidget::event () from /usr/lib/libQtGui.so.4
#19 0x00007f3e67f6798b in QMenu::event () from /usr/lib/libQtGui.so.4
#20 0x00007f3e67bd1c3d in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#21 0x00007f3e67bda22a in QApplication::notify () from /usr/lib/libQtGui.so.4
#22 0x00007f3e6d12ec3b in KApplication::notify () from /usr/lib/libkdeui.so.5
#23 0x00007f3e68bfdd61 in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#24 0x00007f3e67bd95c8 in QApplicationPrivate::sendMouseEvent () from /usr/lib/libQtGui.so.4
#25 0x00007f3e67c3dda4 in ?? () from /usr/lib/libQtGui.so.4
#26 0x00007f3e67c3c607 in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
#27 0x00007f3e67c642c4 in ?? () from /usr/lib/libQtGui.so.4
#28 0x00007f3e633fed3b in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#29 0x00007f3e6340250d in ?? () from /usr/lib/libglib-2.0.so.0
#30 0x00007f3e634026cb in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#31 0x00007f3e68c2615f in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#32 0x00007f3e67c63a6f in ?? () from /usr/lib/libQtGui.so.4
#33 0x00007f3e68bfc682 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#34 0x00007f3e68bfc80d in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#35 0x00007f3e67f677e5 in QMenu::exec () from /usr/lib/libQtGui.so.4
#36 0x00007f3e67fa78c9 in ?? () from /usr/lib/libQtGui.so.4
#37 0x00007f3e67fa81b1 in QToolButton::qt_metacall () from /usr/lib/libQtGui.so.4
#38 0x00007f3e68c12134 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#39 0x00007f3e67edc4ae in ?? () from /usr/lib/libQtGui.so.4
#40 0x00007f3e67edc683 in QAbstractButton::mousePressEvent () from /usr/lib/libQtGui.so.4
#41 0x00007f3e67fa87e3 in QToolButton::mousePressEvent () from /usr/lib/libQtGui.so.4
#42 0x00007f3e67c2430f in QWidget::event () from /usr/lib/libQtGui.so.4
#43 0x00007f3e67bd1c3d in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#44 0x00007f3e67bda22a in QApplication::notify () from /usr/lib/libQtGui.so.4
#45 0x00007f3e6d12ec3b in KApplication::notify () from /usr/lib/libkdeui.so.5
#46 0x00007f3e68bfdd61 in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#47 0x00007f3e67bd95c8 in QApplicationPrivate::sendMouseEvent () from /usr/lib/libQtGui.so.4
#48 0x00007f3e67c3dbe9 in ?? () from /usr/lib/libQtGui.so.4
#49 0x00007f3e67c3c607 in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
#50 0x00007f3e67c642c4 in ?? () from /usr/lib/libQtGui.so.4
#51 0x00007f3e633fed3b in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#52 0x00007f3e6340250d in ?? () from /usr/lib/libglib-2.0.so.0
#53 0x00007f3e634026cb in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#54 0x00007f3e68c2615f in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#55 0x00007f3e67c63a6f in ?? () from /usr/lib/libQtGui.so.4
#56 0x00007f3e68bfc682 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#57 0x00007f3e68bfc80d in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#58 0x00007f3e68bfecbd in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#59 0x000000000044a19c in main (argc=3, argv=0x7fff76302b38) at /build/buildd/kdenetwork-4.1.80/kopete/kopete/main.cpp:102
Comment 1 Karl Ferdinand Ebert 2008-12-23 01:38:12 UTC
Created attachment 29563 [details]
same crash with 4.1.85+svn899360-0r1
Comment 2 Karl Ferdinand Ebert 2008-12-23 01:40:16 UTC
Comment on attachment 29563 [details]
same crash with 4.1.85+svn899360-0r1

this has happened under debian/experimental with kde4.2beta2 from 
http://kde42.debian.net/debian/
Comment 3 Michael Zanetti 2009-02-02 20:17:11 UTC
I have not been able to reproduce this yet. Please give me more information.
Interesting information could be:
- Does this happen with all protocols or just a specific one? (XMPP, LWM, ICQ/AOL)
- In what state is the connection? (encrypted, unencrpted)
- Does it happen with all contacts? If just with specific ones, is there anything special with their according entries in ~/.kde/share/apps/kopete_otr/fingerprints ?
Comment 4 Martin Flöser 2009-02-03 13:09:40 UTC
I think I have an idea why the crash happens.

First of all I only have XMPP friends who use OTR and you have to be in state encrypted to authenticate a user. The menu point is deactivated if there is no OTR session.

The crash seems to appear for one friend in my contact list. He uses two computers with Kopete as well on the on 4.1 on the other 4.2 (debian/kubuntu). I think my Kopete displayed unauthenticated session since he uses a second computer and I guess he created a new key on this one. The key used on the other machine has been authenticated.

When trying to authenticate a user not authenticated before I have no problems and no crashes.

I'll investigate further.
Comment 5 Martin Flöser 2009-02-03 13:16:48 UTC
First results: I deleted all known fingerprints of that friend and tried to authenticate him. My Kopete does not crash any more, but his does in the moment I ask the question ;-) Currently he is not available, but we will install debug packages and post the backtrace.
Comment 6 Michael Zanetti 2009-02-03 20:53:50 UTC
SVN commit 920794 by mzanetti:

get the correct remote fingerprint if stored locally for multiple accounts
BUG: 177416


 M  +8 -5      otrlchatinterface.cpp  
 M  +1 -1      otrlchatinterface.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=920794