Bug 309987 - Kopete crashed when starting OTR conversation without key
Summary: Kopete crashed when starting OTR conversation without key
Status: RESOLVED FIXED
Alias: None
Product: kopete
Classification: Applications
Component: general (show other bugs)
Version: 1.3.2
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-12 20:20 UTC by widhalmt@widhalm.or.at
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 widhalmt@widhalm.or.at 2012-11-12 20:20:36 UTC
Application: kopete (1.3.2)
KDE Platform Version: 4.9.2
Qt Version: 4.8.3
Operating System: Linux 3.6.6-1.fc17.x86_64 x86_64
Distribution (Platform): Fedora RPMs

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

I tried to start a OTR encrypted conversation but did not have a key generated for this account before.

-- Backtrace:
Application: Kopete (kopete), signal: Aborted
Using host libthread_db library "/lib64/libthread_db.so.1".
82	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7f6446a5c880 (LWP 2308))]

Thread 8 (Thread 0x7f6436fa0700 (LWP 2330)):
#0  0x0000003917cea9e3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x0000003ccc956b12 in QProcessManager::run (this=0x3cccccf500) at io/qprocess_unix.cpp:245
#2  0x0000003ccc87b7bc in QThreadPrivate::start (arg=0x3cccccf500) at thread/qthread_unix.cpp:338
#3  0x0000003918807d14 in start_thread (arg=0x7f6436fa0700) at pthread_create.c:309
#4  0x0000003917cf167d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 7 (Thread 0x7f6436347700 (LWP 2342)):
#0  g_mutex_get_impl (mutex=0x7f64280009a0) at gthread-posix.c:121
#1  0x00000039198839a9 in g_mutex_unlock (mutex=mutex@entry=0x7f64280009a0) at gthread-posix.c:227
#2  0x0000003919847325 in g_main_context_prepare (context=context@entry=0x7f64280009a0, priority=priority@entry=0x7f6436346a78) at gmain.c:2834
#3  0x0000003919847a1b in g_main_context_iterate (context=context@entry=0x7f64280009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3126
#4  0x0000003919847c14 in g_main_context_iteration (context=0x7f64280009a0, may_block=1) at gmain.c:3207
#5  0x0000003ccc9a5ff6 in QEventDispatcherGlib::processEvents (this=0x7f64280008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x0000003ccc976cbf in QEventLoop::processEvents (this=this@entry=0x7f64280013c0, flags=...) at kernel/qeventloop.cpp:149
#7  0x0000003ccc976f48 in QEventLoop::exec (this=0x7f64280013c0, flags=...) at kernel/qeventloop.cpp:204
#8  0x0000003cd026e803 in QCA::SyncThread::run (this=0x27c6540) at support/syncthread.cpp:195
#9  0x0000003ccc87b7bc in QThreadPrivate::start (arg=0x27c6540) at thread/qthread_unix.cpp:338
#10 0x0000003918807d14 in start_thread (arg=0x7f6436347700) at pthread_create.c:309
#11 0x0000003917cf167d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 6 (Thread 0x7f6435b46700 (LWP 2343)):
#0  0x000000391880aa7f in __pthread_mutex_unlock_usercnt (mutex=0x7f642c000a60, decr=decr@entry=1) at pthread_mutex_unlock.c:53
#1  0x000000391880aada in __pthread_mutex_unlock (mutex=<optimized out>) at pthread_mutex_unlock.c:298
#2  0x00000039198839b1 in g_mutex_unlock (mutex=<optimized out>) at gthread-posix.c:227
#3  0x0000003919846ea5 in g_main_context_release (context=<optimized out>, context@entry=0x7f642c0009a0) at gmain.c:2681
#4  0x0000003919847aa5 in g_main_context_iterate (context=context@entry=0x7f642c0009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3148
#5  0x0000003919847c14 in g_main_context_iteration (context=0x7f642c0009a0, may_block=1) at gmain.c:3207
#6  0x0000003ccc9a5ff6 in QEventDispatcherGlib::processEvents (this=0x7f642c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#7  0x0000003ccc976cbf in QEventLoop::processEvents (this=this@entry=0x7f642c0013c0, flags=...) at kernel/qeventloop.cpp:149
#8  0x0000003ccc976f48 in QEventLoop::exec (this=0x7f642c0013c0, flags=...) at kernel/qeventloop.cpp:204
#9  0x00007f6438cf580f in ?? () from /usr/lib64/kde4/kopete_jabber.so
#10 0x0000003ccc87b7bc in QThreadPrivate::start (arg=0x2cbd860) at thread/qthread_unix.cpp:338
#11 0x0000003918807d14 in start_thread (arg=0x7f6435b46700) at pthread_create.c:309
#12 0x0000003917cf167d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 5 (Thread 0x7f6435345700 (LWP 2344)):
#0  0x0000003917cea9e3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f6438933500 in posix_timer_do () from /lib64/libortp.so.8
#2  0x00007f6438933f85 in rtp_scheduler_schedule () from /lib64/libortp.so.8
#3  0x0000003918807d14 in start_thread (arg=0x7f6435345700) at pthread_create.c:309
#4  0x0000003917cf167d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 4 (Thread 0x7f6426ee2700 (LWP 3731)):
#0  0x0000003919883979 in g_mutex_lock (mutex=mutex@entry=0x7f64200009a0) at gthread-posix.c:208
#1  0x0000003919847339 in g_main_context_prepare (context=context@entry=0x7f64200009a0, priority=priority@entry=0x7f6426ee1b78) at gmain.c:2838
#2  0x0000003919847a1b in g_main_context_iterate (context=context@entry=0x7f64200009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3126
#3  0x0000003919847c14 in g_main_context_iteration (context=0x7f64200009a0, may_block=1) at gmain.c:3207
#4  0x0000003ccc9a5ff6 in QEventDispatcherGlib::processEvents (this=0x7f64200008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x0000003ccc976cbf in QEventLoop::processEvents (this=this@entry=0x7f6426ee1cd0, flags=...) at kernel/qeventloop.cpp:149
#6  0x0000003ccc976f48 in QEventLoop::exec (this=0x7f6426ee1cd0, flags=...) at kernel/qeventloop.cpp:204
#7  0x0000003ccc8787e0 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#8  0x0000003ccc9574df in QInotifyFileSystemWatcherEngine::run (this=0x317e5a0) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x0000003ccc87b7bc in QThreadPrivate::start (arg=0x317e5a0) at thread/qthread_unix.cpp:338
#10 0x0000003918807d14 in start_thread (arg=0x7f6426ee2700) at pthread_create.c:309
#11 0x0000003917cf167d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 3 (Thread 0x7f641ffff700 (LWP 4167)):
#0  0x0000003917cea9e3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x000000393204a5e1 in ?? () from /lib64/libgcrypt.so.11
#2  0x0000003932047a60 in ?? () from /lib64/libgcrypt.so.11
#3  0x0000003932048b09 in ?? () from /lib64/libgcrypt.so.11
#4  0x000000393204777f in ?? () from /lib64/libgcrypt.so.11
#5  0x000000393203c816 in ?? () from /lib64/libgcrypt.so.11
#6  0x00000039320166a7 in ?? () from /lib64/libgcrypt.so.11
#7  0x00007f64393f6297 in otrl_privkey_generate_FILEp () from /lib64/libotr.so.2
#8  0x00007f64393f63ed in otrl_privkey_generate () from /lib64/libotr.so.2
#9  0x00007f64396110c9 in ?? () from /lib64/libkopete_otr_shared.so.1
#10 0x0000003ccc87b7bc in QThreadPrivate::start (arg=0x3b60d90) at thread/qthread_unix.cpp:338
#11 0x0000003918807d14 in start_thread (arg=0x7f641ffff700) at pthread_create.c:309
#12 0x0000003917cf167d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7f641f7fe700 (LWP 4168)):
[KCrash Handler]
#6  0x0000003917c35925 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x0000003917c370d8 in __GI_abort () at abort.c:91
#8  0x0000003917c2e6a2 in __assert_fail_base (fmt=0x3917d78188 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x3932053f86 "*lock == ((ath_mutex_t) 0)", file=file@entry=0x3932053f80 "ath.c", line=line@entry=193, function=function@entry=0x3932053fe0 "_gcry_ath_mutex_lock") at assert.c:94
#9  0x0000003917c2e752 in __GI___assert_fail (assertion=0x3932053f86 "*lock == ((ath_mutex_t) 0)", file=0x3932053f80 "ath.c", line=193, function=0x3932053fe0 "_gcry_ath_mutex_lock") at assert.c:103
#10 0x00000039320106dd in ?? () from /lib64/libgcrypt.so.11
#11 0x0000003932016308 in ?? () from /lib64/libgcrypt.so.11
#12 0x00007f64393f6297 in otrl_privkey_generate_FILEp () from /lib64/libotr.so.2
#13 0x00007f64393f63ed in otrl_privkey_generate () from /lib64/libotr.so.2
#14 0x00007f64396110c9 in ?? () from /lib64/libkopete_otr_shared.so.1
#15 0x0000003ccc87b7bc in QThreadPrivate::start (arg=0x32f3e90) at thread/qthread_unix.cpp:338
#16 0x0000003918807d14 in start_thread (arg=0x7f641f7fe700) at pthread_create.c:309
#17 0x0000003917cf167d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7f6446a5c880 (LWP 2308)):
#0  0x000000391880e0ad in read () at ../sysdeps/unix/syscall-template.S:82
#1  0x0000003919882cdf in read (__nbytes=16, __buf=0x7fffd539ff70, __fd=<optimized out>) at /usr/include/bits/unistd.h:45
#2  g_wakeup_acknowledge (wakeup=0x2596d10) at gwakeup.c:212
#3  0x0000003919847679 in g_main_context_check (context=context@entry=0x2596e20, max_priority=0, fds=fds@entry=0x365e980, n_fds=n_fds@entry=23) at gmain.c:2980
#4  0x0000003919847a92 in g_main_context_iterate (context=context@entry=0x2596e20, block=block@entry=0, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3143
#5  0x0000003919847c14 in g_main_context_iteration (context=0x2596e20, may_block=0) at gmain.c:3207
#6  0x0000003ccc9a5fd6 in QEventDispatcherGlib::processEvents (this=0x25546e0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#7  0x0000003cce26a48e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#8  0x0000003ccc97be57 in QCoreApplication::processEvents (flags=..., maxtime=100) at kernel/qcoreapplication.cpp:1130
#9  0x00007f6439613e04 in ?? () from /lib64/libkopete_otr_shared.so.1
#10 0x00007f64393fbdd6 in otrl_message_receiving () from /lib64/libotr.so.2
#11 0x00007f6439611d20 in OtrlChatInterface::decryptMessage(QString*, QString const&, QString const&, QString const&, Kopete::ChatSession*) () from /lib64/libkopete_otr_shared.so.1
#12 0x00007f643982572f in ?? () from /usr/lib64/kde4/kopete_otr.so
#13 0x00007f643a08a23d in ?? () from /usr/lib64/kde4/kopete_cryptography.so
#14 0x0000003ccc98c86e in QObject::event (this=0x3025cf0, e=<optimized out>) at kernel/qobject.cpp:1195
#15 0x0000003cce1ca4ac in QApplicationPrivate::notify_helper (this=this@entry=0x2595c30, receiver=receiver@entry=0x3025cf0, e=e@entry=0x3b29500) at kernel/qapplication.cpp:4557
#16 0x0000003cce1ce92a in QApplication::notify (this=0x7fffd53a1c80, receiver=0x3025cf0, e=0x3b29500) at kernel/qapplication.cpp:4418
#17 0x0000003ccfc468a6 in KApplication::notify (this=0x7fffd53a1c80, receiver=0x3025cf0, event=0x3b29500) at /usr/src/debug/kdelibs-4.9.2/kdeui/kernel/kapplication.cpp:311
#18 0x0000003ccc977f6e in QCoreApplication::notifyInternal (this=0x7fffd53a1c80, receiver=receiver@entry=0x3025cf0, event=event@entry=0x3b29500) at kernel/qcoreapplication.cpp:915
#19 0x0000003ccc97ba21 in sendEvent (event=0x3b29500, receiver=0x3025cf0) at kernel/qcoreapplication.h:231
#20 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x2553220) at kernel/qcoreapplication.cpp:1539
#21 0x0000003ccc9a5e43 in sendPostedEvents () at kernel/qcoreapplication.h:236
#22 postEventSourceDispatch (s=s@entry=0x2594f70) at kernel/qeventdispatcher_glib.cpp:279
#23 0x0000003919847825 in g_main_dispatch (context=0x2596e20) at gmain.c:2539
#24 g_main_context_dispatch (context=context@entry=0x2596e20) at gmain.c:3075
#25 0x0000003919847b58 in g_main_context_iterate (context=context@entry=0x2596e20, block=block@entry=0, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3146
#26 0x0000003919847c14 in g_main_context_iteration (context=0x2596e20, may_block=0) at gmain.c:3207
#27 0x0000003ccc9a5fd6 in QEventDispatcherGlib::processEvents (this=0x25546e0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#28 0x0000003cce26a48e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#29 0x0000003ccc97be57 in QCoreApplication::processEvents (flags=..., maxtime=100) at kernel/qcoreapplication.cpp:1130
#30 0x00007f6439613e04 in ?? () from /lib64/libkopete_otr_shared.so.1
#31 0x00007f64393fbdd6 in otrl_message_receiving () from /lib64/libotr.so.2
#32 0x00007f6439611d20 in OtrlChatInterface::decryptMessage(QString*, QString const&, QString const&, QString const&, Kopete::ChatSession*) () from /lib64/libkopete_otr_shared.so.1
#33 0x00007f643982572f in ?? () from /usr/lib64/kde4/kopete_otr.so
#34 0x00007f643a08a23d in ?? () from /usr/lib64/kde4/kopete_cryptography.so
#35 0x0000003ccc98c86e in QObject::event (this=0x3bb5ea0, e=<optimized out>) at kernel/qobject.cpp:1195
#36 0x0000003cce1ca4ac in QApplicationPrivate::notify_helper (this=this@entry=0x2595c30, receiver=receiver@entry=0x3bb5ea0, e=e@entry=0x3bd8730) at kernel/qapplication.cpp:4557
#37 0x0000003cce1ce92a in QApplication::notify (this=0x7fffd53a1c80, receiver=0x3bb5ea0, e=0x3bd8730) at kernel/qapplication.cpp:4418
#38 0x0000003ccfc468a6 in KApplication::notify (this=0x7fffd53a1c80, receiver=0x3bb5ea0, event=0x3bd8730) at /usr/src/debug/kdelibs-4.9.2/kdeui/kernel/kapplication.cpp:311
#39 0x0000003ccc977f6e in QCoreApplication::notifyInternal (this=0x7fffd53a1c80, receiver=receiver@entry=0x3bb5ea0, event=event@entry=0x3bd8730) at kernel/qcoreapplication.cpp:915
#40 0x0000003ccc97ba21 in sendEvent (event=0x3bd8730, receiver=0x3bb5ea0) at kernel/qcoreapplication.h:231
#41 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x2553220) at kernel/qcoreapplication.cpp:1539
#42 0x0000003ccc9a5e43 in sendPostedEvents () at kernel/qcoreapplication.h:236
#43 postEventSourceDispatch (s=s@entry=0x2594f70) at kernel/qeventdispatcher_glib.cpp:279
#44 0x0000003919847825 in g_main_dispatch (context=0x2596e20) at gmain.c:2539
#45 g_main_context_dispatch (context=context@entry=0x2596e20) at gmain.c:3075
#46 0x0000003919847b58 in g_main_context_iterate (context=context@entry=0x2596e20, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3146
#47 0x0000003919847c14 in g_main_context_iteration (context=0x2596e20, may_block=1) at gmain.c:3207
#48 0x0000003ccc9a5fd6 in QEventDispatcherGlib::processEvents (this=0x25546e0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#49 0x0000003cce26a48e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#50 0x0000003ccc976cbf in QEventLoop::processEvents (this=this@entry=0x7fffd53a1b50, flags=...) at kernel/qeventloop.cpp:149
#51 0x0000003ccc976f48 in QEventLoop::exec (this=0x7fffd53a1b50, flags=...) at kernel/qeventloop.cpp:204
#52 0x0000003ccc97bd38 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#53 0x00000000004138bb in ?? ()
#54 0x0000003917c21735 in __libc_start_main (main=0x4120d0, argc=3, ubp_av=0x7fffd53a1dd8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffd53a1dc8) at libc-start.c:226
#55 0x0000000000413921 in _start ()

Possible duplicates by query: bug 303176, bug 301784, bug 301141, bug 289949.

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 304105, bug 306276, 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