Bug 244432 - Kopete crashes when trying to generate the OTR key
Summary: Kopete crashes when trying to generate the OTR key
Status: RESOLVED DUPLICATE of bug 218570
Alias: None
Product: kopete
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-12 21:42 UTC by Carl G.
Modified: 2010-07-13 12:42 UTC (History)
1 user (show)

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 Carl G. 2010-07-12 21:42:07 UTC
Application: kopete (1.0.80)
KDE Platform Version: 4.4.92 (KDE 4.4.92 (KDE 4.5 RC2))
Qt Version: 4.7.0
Operating System: Linux 2.6.35-0.31.rc4.git4.fc14.x86_64 x86_64
Distribution: "Fedora release 14 (Rawhide)"

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

A saw a popup in the conversation and soon after Kopete SEGV, generating it from the settings > configure > plugin worked thought.

Reproductive as long as the key is not generate directly from the plugin area.

- Custom settings of the application:

OTR enabled in opportunistic mode.

The crash can be reproduced every time.

-- Backtrace:
Application: Kopete (kopete), signal: Aborted
82	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7fb3d1e56820 (LWP 3209))]

Thread 5 (Thread 0x7fb3c2a26710 (LWP 3212)):
#0  0xffffffffff600136 in ?? ()
#1  0x00007fb3c2a258e0 in ?? ()
#2  0x00007fff4fde57c2 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 4 (Thread 0x7fb3c2225710 (LWP 3213)):
#0  0xffffffffff600136 in ?? ()
#1  0x00007fb3c2224a50 in ?? ()
#2  0x00007fff4fde57c2 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 3 (Thread 0x7fb3c101d710 (LWP 3215)):
#0  0x0000003ca86dd753 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007fb3c3641c93 in posix_timer_do () at posixtimer.c:70
#2  0x00007fb3c36429de in rtp_scheduler_schedule (psched=0x25265b0) at scheduler.c:130
#3  0x0000003ca9207a21 in start_thread (arg=0x7fb3c101d710) at pthread_create.c:301
#4  0x0000003ca86e4c2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7fb3b170d710 (LWP 3222)):
#0  0x0000003ca86d788d in write () at ../sysdeps/unix/syscall-template.S:82
#1  0x0000003ca8672b33 in _IO_new_file_write (f=0x3ca8992860, data=<value optimized out>, n=36) at fileops.c:1268
#2  0x0000003ca86729fa in new_do_write (f=0x3ca8992860, data=<value optimized out>, n=36) at fileops.c:522
#3  _IO_new_file_xsputn (f=0x3ca8992860, data=<value optimized out>, n=36) at fileops.c:1362
#4  0x0000003ca864a8f1 in buffered_vfprintf (s=0x3ca8992860, format=<value optimized out>, args=<value optimized out>) at vfprintf.c:2252
#5  0x0000003ca864553e in _IO_vfprintf_internal (s=0x3ca8992860, format=0x7fb3c4154af9 "select() error: %s\n", ap=0x7fb3b170c250) at vfprintf.c:1287
#6  0x0000003ca86fc847 in ___vfprintf_chk (fp=0x3ca8992860, flag=1, format=<value optimized out>, ap=<value optimized out>) at vfprintf_chk.c:35
#7  0x00007fb3c40f6824 in vfprintf (level=30, fmt=0x7fb3c4154af9 "select() error: %s\n", arg_ptr=0x7fb3b170c250) at /usr/include/bits/stdio2.h:128
#8  _gcry_logv (level=30, fmt=0x7fb3c4154af9 "select() error: %s\n", arg_ptr=0x7fb3b170c250) at misc.c:132
#9  0x00007fb3c40f6cd5 in _gcry_log_error (fmt=0x7fb3b1709a10 "select() error: Bad file descriptor\n") at misc.c:216
#10 0x00007fb3c4135885 in _gcry_rndlinux_gather_random (add=<value optimized out>, origin=<value optimized out>, length=227, level=<value optimized out>) at rndlinux.c:144
#11 0x00007fb3c4132be0 in read_random_source (orgin=2976946704, length=36, level=-1) at random-csprng.c:1272
#12 0x00007fb3c41340ce in read_pool (buffer=<value optimized out>, length=<value optimized out>, level=GCRY_VERY_STRONG_RANDOM) at random-csprng.c:977
#13 _gcry_rngcsprng_randomize (buffer=<value optimized out>, length=<value optimized out>, level=GCRY_VERY_STRONG_RANDOM) at random-csprng.c:551
#14 0x00007fb3c413294f in _gcry_random_bytes_secure (nbytes=20, level=GCRY_VERY_STRONG_RANDOM) at random.c:203
#15 0x00007fb3c4126c18 in generate (sk=0x7fb3b170c8b0, nbits=<value optimized out>, qbits=<value optimized out>, transient_key=<value optimized out>, domain=<value optimized out>, 
    ret_factors=<value optimized out>) at dsa.c:338
#16 0x00007fb3c41279a1 in dsa_generate_ext (algo=<value optimized out>, nbits=<value optimized out>, evalue=<value optimized out>, genparms=<value optimized out>, skey=0x7fb3b170cb10, retfactors=
    0x7fb3b170cb80, r_extrainfo=0x7fb3b170cb78) at dsa.c:825
#17 0x00007fb3c4102b44 in pubkey_generate (r_key=0x7fb3b170cc28, s_parms=<value optimized out>) at pubkey.c:562
#18 _gcry_pk_genkey (r_key=0x7fb3b170cc28, s_parms=<value optimized out>) at pubkey.c:2183
#19 0x0000003ca820554f in otrl_privkey_generate_FILEp (us=0x22070a0, privf=0x7fb3ac002350, accountname=0x7fb3ac002118 "carl.gaudreault@gmail.com", protocol=0x7fb3ac0020d8 "Jabber") at privkey.c:440
#20 0x0000003ca82056ad in otrl_privkey_generate (us=0x22070a0, filename=<value optimized out>, accountname=0x7fb3ac002118 "carl.gaudreault@gmail.com", protocol=0x7fb3ac0020d8 "Jabber")
    at privkey.c:412
#21 0x00007fb3c436ed0e in KeyGenThread::run (this=<value optimized out>) at /usr/src/debug/kdenetwork-4.4.92/kopete/plugins/otr/otrlchatinterface.cpp:802
#22 0x000000305467250e in QThreadPrivate::start (arg=0x2569150) at thread/qthread_unix.cpp:266
#23 0x0000003ca9207a21 in start_thread (arg=0x7fb3b170d710) at pthread_create.c:301
#24 0x0000003ca86e4c2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7fb3d1e56820 (LWP 3209)):
[KCrash Handler]
#6  0x0000003ca8633935 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x0000003ca8635115 in abort () at abort.c:92
#8  0x0000003ca862c8c5 in __assert_fail (assertion=0x7fb3c413f561 "*lock == ((ath_mutex_t) 0)", file=<value optimized out>, line=193, function=<value optimized out>) at assert.c:81
#9  0x00007fb3c40fe27a in _gcry_ath_mutex_lock (lock=0x7fb3c43624f0) at ath.c:193
#10 0x00007fb3c4132b90 in lock_pool () at random-csprng.c:298
#11 0x00007fb3c4132cde in initialize () at random-csprng.c:327
#12 0x00007fb3c4133d7e in _gcry_rngcsprng_randomize (buffer=0x37fdac8, length=<value optimized out>, level=GCRY_STRONG_RANDOM) at random-csprng.c:514
#13 0x00007fb3c413294f in _gcry_random_bytes_secure (nbytes=40, level=GCRY_STRONG_RANDOM) at random.c:203
#14 0x0000003ca8208868 in otrl_dh_gen_keypair (groupid=<value optimized out>, kp=0x3819658) at dh.c:105
#15 0x0000003ca820e8af in otrl_auth_start_v2 (auth=0x3819650) at auth.c:115
#16 0x0000003ca820a1c0 in otrl_message_receiving (us=0x22070a0, ops=0x7fb3c457b960, opdata=0x23194b0, accountname=0x3819bf8 "carl.gaudreault@gmail.com", protocol=0x255b2c8 "Jabber", sender=
    0x3809668 "tinmachin3@gmail.com", message=0x3816238 "weird :S \t  \t\t\t\t \t \t \t   \t \t  \t   \t\t  \t ", newmessagep=0x7fff4fcdc488, tlvsp=0x7fff4fcdc480, add_appdata=0, data=0x0)
    at message.c:1248
#17 0x00007fb3c436f93c in OtrlChatInterface::decryptMessage (this=0x22ab380, msg=0x7fff4fcdc6b0, accountId=..., protocol=..., contactId=..., chatSession=0x23194b0)
    at /usr/src/debug/kdenetwork-4.4.92/kopete/plugins/otr/otrlchatinterface.cpp:388
#18 0x00007fb3c458479f in OtrMessageHandler::handleMessage (this=0x3802110, event=0x2f6d870) at /usr/src/debug/kdenetwork-4.4.92/kopete/plugins/otr/otrplugin.cpp:304
#19 0x000000305f2c0fe2 in Kopete::ProcessMessageTask::qt_metacall (this=0x3100f90, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=<value optimized out>)
    at /usr/src/debug/kdenetwork-4.4.92/x86_64-redhat-linux-gnu/kopete/libkopete/kopetemessagehandlerchain.moc:124
#20 0x000000305476f0ca in QObject::event (this=0x3100f90, e=<value optimized out>) at kernel/qobject.cpp:1211
#21 0x0000003055fb32a4 in QApplicationPrivate::notify_helper (this=0x1eb87d0, receiver=0x3100f90, e=0x3819b20) at kernel/qapplication.cpp:4389
#22 0x0000003055fb7d1a in QApplication::notify (this=<value optimized out>, receiver=0x3100f90, e=0x3819b20) at kernel/qapplication.cpp:4270
#23 0x0000003057622276 in KApplication::notify (this=0x7fff4fcde510, receiver=0x3100f90, event=0x3819b20) at /usr/src/debug/kdelibs-4.4.92/kdeui/kernel/kapplication.cpp:309
#24 0x000000305475ad0c in QCoreApplication::notifyInternal (this=0x7fff4fcde510, receiver=0x3100f90, event=0x3819b20) at kernel/qcoreapplication.cpp:732
#25 0x000000305475e4b5 in sendEvent (receiver=0x0, event_type=0, data=0x1e7e7f0) at kernel/qcoreapplication.h:215
#26 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x1e7e7f0) at kernel/qcoreapplication.cpp:1373
#27 0x0000003054785923 in sendPostedEvents (s=<value optimized out>) at kernel/qcoreapplication.h:220
#28 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:276
#29 0x0000003cab63c762 in g_main_dispatch (context=0x1ebb120) at gmain.c:2044
#30 g_main_context_dispatch (context=0x1ebb120) at gmain.c:2597
#31 0x0000003cab640618 in g_main_context_iterate (context=0x1ebb120, block=0, dispatch=1, self=<value optimized out>) at gmain.c:2675
#32 0x0000003cab6407cc in g_main_context_iteration (context=0x1ebb120, may_block=0) at gmain.c:2738
#33 0x0000003054785e5f in QEventDispatcherGlib::processEvents (this=0x1e7e300, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#34 0x000000305605672e in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#35 0x000000305475e867 in QCoreApplication::processEvents (flags=..., maxtime=100) at kernel/qcoreapplication.cpp:952
#36 0x00007fb3c4371a75 in create_privkey (opdata=<value optimized out>, accountname=0x37e8fb0 "carl.gaudreault@gmail.com", protocol=<value optimized out>)
    at /usr/src/debug/kdenetwork-4.4.92/kopete/plugins/otr/otrlchatinterface.cpp:108
#37 0x0000003ca820a707 in otrl_message_receiving (us=0x22070a0, ops=0x7fb3c457b960, opdata=0x23194b0, accountname=0x313d588 "carl.gaudreault@gmail.com", protocol=0x22b0e28 "Jabber", sender=
    0x37ef0b8 "tinmachin3@gmail.com", message=
    0x37ffee8 "?OTR:AAIRAAAAEMovalVg84cXxZH3ZVSbBI4AAAHSAPtD+lsyk1a6T2GHL2iv0uCCrdtLtGLRZjpYi2BFgUuvGgLvIZ3xQKVkKF86bQ6XDax4NkkiqmkO+RRE/t6GCUrZcS0jTuD/BCecOFfvW17fjIvKoO/x1RUYQ0Uq3+Jo+hvHGF3q7VlAWqw398qa/NTZbmEVvKC"..., newmessagep=0x7fff4fcdd808, tlvsp=0x7fff4fcdd800, add_appdata=0, data=0x0) at message.c:845
#38 0x00007fb3c436f93c in OtrlChatInterface::decryptMessage (this=0x22ab380, msg=0x7fff4fcdda30, accountId=..., protocol=..., contactId=..., chatSession=0x23194b0)
    at /usr/src/debug/kdenetwork-4.4.92/kopete/plugins/otr/otrlchatinterface.cpp:388
#39 0x00007fb3c458479f in OtrMessageHandler::handleMessage (this=0x3802110, event=0x378d870) at /usr/src/debug/kdenetwork-4.4.92/kopete/plugins/otr/otrplugin.cpp:304
#40 0x000000305f2c0fe2 in Kopete::ProcessMessageTask::qt_metacall (this=0x2fc01d0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=<value optimized out>)
    at /usr/src/debug/kdenetwork-4.4.92/x86_64-redhat-linux-gnu/kopete/libkopete/kopetemessagehandlerchain.moc:124
#41 0x000000305476f0ca in QObject::event (this=0x2fc01d0, e=<value optimized out>) at kernel/qobject.cpp:1211
#42 0x0000003055fb32a4 in QApplicationPrivate::notify_helper (this=0x1eb87d0, receiver=0x2fc01d0, e=0x3801a50) at kernel/qapplication.cpp:4389
#43 0x0000003055fb7d1a in QApplication::notify (this=<value optimized out>, receiver=0x2fc01d0, e=0x3801a50) at kernel/qapplication.cpp:4270
#44 0x0000003057622276 in KApplication::notify (this=0x7fff4fcde510, receiver=0x2fc01d0, event=0x3801a50) at /usr/src/debug/kdelibs-4.4.92/kdeui/kernel/kapplication.cpp:309
#45 0x000000305475ad0c in QCoreApplication::notifyInternal (this=0x7fff4fcde510, receiver=0x2fc01d0, event=0x3801a50) at kernel/qcoreapplication.cpp:732
#46 0x000000305475e4b5 in sendEvent (receiver=0x0, event_type=0, data=0x1e7e7f0) at kernel/qcoreapplication.h:215
#47 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x1e7e7f0) at kernel/qcoreapplication.cpp:1373
#48 0x0000003054785923 in sendPostedEvents (s=<value optimized out>) at kernel/qcoreapplication.h:220
#49 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:276
#50 0x0000003cab63c762 in g_main_dispatch (context=0x1ebb120) at gmain.c:2044
#51 g_main_context_dispatch (context=0x1ebb120) at gmain.c:2597
#52 0x0000003cab640618 in g_main_context_iterate (context=0x1ebb120, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2675
#53 0x0000003cab6407cc in g_main_context_iteration (context=0x1ebb120, may_block=1) at gmain.c:2738
#54 0x0000003054785e5f in QEventDispatcherGlib::processEvents (this=0x1e7e300, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#55 0x000000305605672e in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#56 0x000000305475a0a2 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#57 0x000000305475a2ec in QEventLoop::exec (this=0x7fff4fcde460, flags=...) at kernel/qeventloop.cpp:201
#58 0x000000305475e76b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#59 0x0000000000414522 in main (argc=1, argv=0x7fff4fcdf398) at /usr/src/debug/kdenetwork-4.4.92/kopete/kopete/main.cpp:105

Possible duplicates by query: bug 238868, bug 220973, bug 218570.

Reported using DrKonqi
Comment 1 Nicolas L. 2010-07-13 12:42:49 UTC

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