Bug 265171 - Kopete crashes when generating OTR key
Summary: Kopete crashes when generating OTR key
Status: RESOLVED DUPLICATE of bug 218570
Alias: None
Product: kopete
Classification: Applications
Component: OTR Plugin (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-02 10:29 UTC by Thomas Damgaard
Modified: 2012-10-05 14:37 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Damgaard 2011-02-02 10:29:50 UTC
Application: kopete (1.0.80)
KDE Platform Version: 4.6.00 (4.6.0)
Qt Version: 4.7.0
Operating System: Linux 2.6.35-25-generic x86_64
Distribution: Ubuntu 10.10

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

I was sending a message to a friend via Jabber. My friend also uses OTR and Kopete.

Steps to reproduce:
Install Kubuntu 10.10.
Enable PPA sources for KDE 4.6.
Upgrade KDE.
Start Kopete.
Create a new account for Jabber/Google Talk.
Enable OTR plugin.
Restart Kopete.
Start a chat with a friend.
Send a message.
Kopete will start generating key. Wait. It will crash.


- Custom settings of the application:

I have enabled the OTR plugin.

The crash can be reproduced some of the time.

-- Backtrace:
Application: Kopete (kopete), signal: Aborted
[Current thread is 1 (Thread 0x7f30fac3f760 (LWP 3651))]

Thread 5 (Thread 0x7f30e2824700 (LWP 3652)):
#0  0x00007f30f86181df in QEventDispatcherGlib::processEvents (this=0xb2f150, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:417
#1  0x00007f30f85eaa02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#2  0x00007f30f85eadec in QEventLoop::exec (this=0x7f30e2823db0, flags=) at kernel/qeventloop.cpp:201
#3  0x00007f30f84f52fd in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#4  0x00007f30f85ca5f8 in QInotifyFileSystemWatcherEngine::run (this=0xf64fc0) at io/qfilesystemwatcher_inotify.cpp:248
#5  0x00007f30f84f827e in QThreadPrivate::start (arg=0xf64fc0) at thread/qthread_unix.cpp:266
#6  0x00007f30f288b971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#7  0x00007f30f6f7d92d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f30dcc0b700 (LWP 3656)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007f30dcc0a9a0 in ?? ()
#2  0x00007fff5f954852 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 3 (Thread 0x7f30dc40a700 (LWP 3657)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007f30dc409b30 in ?? ()
#2  0x00007fff5f954852 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 2 (Thread 0x7f30d88a2700 (LWP 3675)):
#0  0x00007f30f6f762c3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f30decbf044 in _gcry_rndlinux_gather_random (add=<value optimized out>, origin=<value optimized out>, length=260, level=<value optimized out>) at rndlinux.c:133
#2  0x00007f30decbc490 in read_random_source (orgin=<value optimized out>, length=<value optimized out>, level=<value optimized out>) at random-csprng.c:1272
#3  0x00007f30decbd98e in read_pool (buffer=<value optimized out>, length=<value optimized out>, level=GCRY_VERY_STRONG_RANDOM) at random-csprng.c:977
#4  _gcry_rngcsprng_randomize (buffer=<value optimized out>, length=<value optimized out>, level=GCRY_VERY_STRONG_RANDOM) at random-csprng.c:551
#5  0x00007f30decbc1ff in _gcry_random_bytes_secure (nbytes=20, level=GCRY_VERY_STRONG_RANDOM) at random.c:203
#6  0x00007f30decae4c0 in generate (sk=0x7f30d88a1970, nbits=<value optimized out>, qbits=160, transient_key=<value optimized out>, domain=<value optimized out>, ret_factors=<value optimized out>) at dsa.c:338
#7  0x00007f30decaf231 in dsa_generate_ext (algo=<value optimized out>, nbits=1024, evalue=<value optimized out>, genparms=0x0, skey=0x7f30d88a1bd0, retfactors=0x7f30d88a1c40, r_extrainfo=0x7f30d88a1c38) at dsa.c:825
#8  0x00007f30dec8a334 in pubkey_generate (r_key=0x7f30d88a1ce8, s_parms=<value optimized out>) at pubkey.c:562
#9  _gcry_pk_genkey (r_key=0x7f30d88a1ce8, s_parms=<value optimized out>) at pubkey.c:2183
#10 0x00007f30deef1ebf in otrl_privkey_generate_FILEp () from /usr/lib/libotr.so.2
#11 0x00007f30deef201d in otrl_privkey_generate () from /usr/lib/libotr.so.2
#12 0x00007f30df10de2e in KeyGenThread::run (this=<value optimized out>) at ../../../../kopete/plugins/otr/otrlchatinterface.cpp:802
#13 0x00007f30f84f827e in QThreadPrivate::start (arg=0x1dad900) at thread/qthread_unix.cpp:266
#14 0x00007f30f288b971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#15 0x00007f30f6f7d92d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#16 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f30fac3f760 (LWP 3651)):
[KCrash Handler]
#6  0x00007f30f6ecaba5 in raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007f30f6ece6b0 in abort () at abort.c:92
#8  0x00007f30f6ec3a71 in __assert_fail (assertion=0x7f30decc8de1 "*lock == ((ath_mutex_t) 0)", file=<value optimized out>, line=193, function=0x7f30decc8e20 "_gcry_ath_mutex_lock") at assert.c:81
#9  0x00007f30dec85a7a in _gcry_ath_mutex_lock (lock=0x7f30deeec970) at ath.c:193
#10 0x00007f30decbc440 in lock_pool () at random-csprng.c:298
#11 0x00007f30decbc58e in initialize () at random-csprng.c:327
#12 0x00007f30decbd63e in _gcry_rngcsprng_randomize (buffer=0xe43, length=3651, level=6) at random-csprng.c:514
#13 0x00007f30decbc1ff in _gcry_random_bytes_secure (nbytes=40, level=GCRY_STRONG_RANDOM) at random.c:203
#14 0x00007f30deef51e8 in otrl_dh_gen_keypair () from /usr/lib/libotr.so.2
#15 0x00007f30deefb26f in otrl_auth_start_v2 () from /usr/lib/libotr.so.2
#16 0x00007f30deef6b98 in otrl_message_receiving () from /usr/lib/libotr.so.2
#17 0x00007f30df10ec7c in OtrlChatInterface::decryptMessage (this=<value optimized out>, msg=<value optimized out>, accountId=..., protocol=..., contactId=<value optimized out>, chatSession=0x1401ef0) at ../../../../kopete/plugins/otr/otrlchatinterface.cpp:388
#18 0x00007f30df324646 in OtrMessageHandler::handleMessage (this=0x164fd70, event=0x162d770) at ../../../../kopete/plugins/otr/otrplugin.cpp:304
#19 0x00007f30fa2e0572 in Kopete::ProcessMessageTask::qt_metacall (this=0x1e56330, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=<value optimized out>) at ./kopetemessagehandlerchain.moc:124
#20 0x00007f30f85fdbde in QObject::event (this=0x1e56330, e=0xe43) at kernel/qobject.cpp:1219
#21 0x00007f30f76d7fdc in QApplicationPrivate::notify_helper (this=0xb30800, receiver=0x1e56330, e=0xf32d60) at kernel/qapplication.cpp:4396
#22 0x00007f30f76ddaed in QApplication::notify (this=0x7fff5f89ecf0, receiver=0x1e56330, e=0xf32d60) at kernel/qapplication.cpp:4277
#23 0x00007f30f9075a36 in KApplication::notify (this=0x7fff5f89ecf0, receiver=0x1e56330, event=0xf32d60) at ../../kdeui/kernel/kapplication.cpp:311
#24 0x00007f30f85ebcdc in QCoreApplication::notifyInternal (this=0x7fff5f89ecf0, receiver=0x1e56330, event=0xf32d60) at kernel/qcoreapplication.cpp:732
#25 0x00007f30f85eec22 in sendEvent (receiver=0x0, event_type=<value optimized out>, data=0xaf2c90) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#26 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0xaf2c90) at kernel/qcoreapplication.cpp:1373
#27 0x00007f30f8618653 in sendPostedEvents (s=0xb33ec0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#28 postEventSourceDispatch (s=0xb33ec0) at kernel/qeventdispatcher_glib.cpp:277
#29 0x00007f30f1fd1342 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#30 0x00007f30f1fd52a8 in ?? () from /lib/libglib-2.0.so.0
#31 0x00007f30f1fd545c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#32 0x00007f30f8618193 in QEventDispatcherGlib::processEvents (this=0xaf23e0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
#33 0x00007f30f778aa4e in QGuiEventDispatcherGlib::processEvents (this=0xe43, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#34 0x00007f30f85eefb7 in QCoreApplication::processEvents (flags=) at kernel/qcoreapplication.cpp:952
#35 0x00007f30df10bc55 in create_privkey (opdata=<value optimized out>, accountname=0x1dda020 "thomasdn@gmail.com", protocol=<value optimized out>) at ../../../../kopete/plugins/otr/otrlchatinterface.cpp:108
#36 0x00007f30deef7140 in otrl_message_receiving () from /usr/lib/libotr.so.2
#37 0x00007f30df10ec7c in OtrlChatInterface::decryptMessage (this=<value optimized out>, msg=<value optimized out>, accountId=..., protocol=..., contactId=<value optimized out>, chatSession=0x1401ef0) at ../../../../kopete/plugins/otr/otrlchatinterface.cpp:388
#38 0x00007f30df324646 in OtrMessageHandler::handleMessage (this=0x164fd70, event=0x1dbca60) at ../../../../kopete/plugins/otr/otrplugin.cpp:304
#39 0x00007f30fa2e0572 in Kopete::ProcessMessageTask::qt_metacall (this=0x1defca0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=<value optimized out>) at ./kopetemessagehandlerchain.moc:124
#40 0x00007f30f85fdbde in QObject::event (this=0x1defca0, e=0xe43) at kernel/qobject.cpp:1219
#41 0x00007f30f76d7fdc in QApplicationPrivate::notify_helper (this=0xb30800, receiver=0x1defca0, e=0x1de70a0) at kernel/qapplication.cpp:4396
#42 0x00007f30f76ddaed in QApplication::notify (this=0x7fff5f89ecf0, receiver=0x1defca0, e=0x1de70a0) at kernel/qapplication.cpp:4277
#43 0x00007f30f9075a36 in KApplication::notify (this=0x7fff5f89ecf0, receiver=0x1defca0, event=0x1de70a0) at ../../kdeui/kernel/kapplication.cpp:311
#44 0x00007f30f85ebcdc in QCoreApplication::notifyInternal (this=0x7fff5f89ecf0, receiver=0x1defca0, event=0x1de70a0) at kernel/qcoreapplication.cpp:732
#45 0x00007f30f85eec22 in sendEvent (receiver=0x0, event_type=<value optimized out>, data=0xaf2c90) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#46 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0xaf2c90) at kernel/qcoreapplication.cpp:1373
#47 0x00007f30f8618653 in sendPostedEvents (s=0xb33ec0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#48 postEventSourceDispatch (s=0xb33ec0) at kernel/qeventdispatcher_glib.cpp:277
#49 0x00007f30f1fd1342 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#50 0x00007f30f1fd52a8 in ?? () from /lib/libglib-2.0.so.0
#51 0x00007f30f1fd545c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#52 0x00007f30f8618193 in QEventDispatcherGlib::processEvents (this=0xaf23e0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
#53 0x00007f30f778aa4e in QGuiEventDispatcherGlib::processEvents (this=0xe43, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#54 0x00007f30f85eaa02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#55 0x00007f30f85eadec in QEventLoop::exec (this=0x7fff5f89ec40, flags=) at kernel/qeventloop.cpp:201
#56 0x00007f30f85eeebb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#57 0x0000000000414432 in main (argc=<value optimized out>, argv=<value optimized out>) at ../../../kopete/kopete/main.cpp:105

Possible duplicates by query: bug 254591, bug 244432, bug 238868.

Reported using DrKonqi
Comment 1 Jekyll Wu 2012-10-05 14:37:11 UTC

*** This bug has been marked as a duplicate of bug 218570 ***