Key import segfault in libgcrypt

Hanno Böck hanno at
Wed Apr 2 10:41:05 CEST 2014


On my system if I try to import this key
with gnupg it segfaults.

Backtrace (see below) indicates that the crash happens somewhere in
libgcrypt, so I'm posting it here.

My libgcrypt version is 1.6.1, gnupg is 2.0.22.

I can reproduce it on another system with libgcrypt 1.5.3. Both are

Can anyone else reproduce? Any more info needed?

cu, Hanno Böck

0x00007ffff731c130 in _gcry_mpi_get_flag ()
from /usr/lib64/ (gdb) bt
#0  0x00007ffff731c130 in _gcry_mpi_get_flag ()
from /usr/lib64/ #1  0x00007ffff7286509 in
do_vsexp_sscan () from /usr/lib64/ #2
0x00007ffff7287aac in _gcry_sexp_vbuild ()
from /usr/lib64/ #3  0x00007ffff7281382 in
gcry_sexp_build () from /usr/lib64/ #4
0x0000000000432fba in pk_verify () #5  0x000000000042e1d8 in do_check
() #6  0x000000000042efc2 in check_key_signature2 () #7
0x000000000042f1bb in check_key_signature () #8  0x000000000044b526 in
import_one.isra () #9  0x000000000044d22d in import ()
#10 0x000000000044dd15 in import_keys_internal ()
#11 0x000000000044de7c in import_keys ()
#12 0x000000000040b77c in main ()

Hanno Böck

mail/jabber: hanno at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: </pipermail/attachments/20140402/2ffcffaf/attachment.sig>

More information about the Gcrypt-devel mailing list