FS#49280 - [gnupg] segfault after importing key
Attached to Project:
Arch Linux
Opened by David (da) - Monday, 09 May 2016, 20:20 GMT
Last edited by Gaetan Bisson (vesath) - Wednesday, 11 May 2016, 19:58 GMT
Opened by David (da) - Monday, 09 May 2016, 20:20 GMT
Last edited by Gaetan Bisson (vesath) - Wednesday, 11 May 2016, 19:58 GMT
|
Details
Description: gpg -k segfaults after importing key
Additional info: gnupg 2.1.12-1 Steps to reproduce: # gpg --import <( curl -s "http://pgp.mit.edu/pks/lookup?op=get&search=0x79BE3E4300411886" ) gpg: key 00411886: public key "Linus Torvalds <torvalds@linux-foundation.org>" imported gpg: Total number processed: 1 gpg: imported: 1 gpg: signal Segmentation fault caught ... exiting Segmentation fault (core dumped) |
This task depends upon
Closed by Gaetan Bisson (vesath)
Wednesday, 11 May 2016, 19:58 GMT
Reason for closing: Fixed
Additional comments about closing: gnupg-2.1.12-2 in [testing]
Wednesday, 11 May 2016, 19:58 GMT
Reason for closing: Fixed
Additional comments about closing: gnupg-2.1.12-2 in [testing]
With my own keyring, it is segfaulting on every call on a up-to-date system (no testing):
'''
% gpg --update-trustdb
gpg: removing stale lockfile (created by 19453)
gpg: public key 0x7B8FA05E550FDA19 is 25 seconds newer than the signature
gpg: public key 0x70929A9C6DC31821 is 6699 seconds newer than the signature
gpg: public key 0x70929A9C6DC31821 is 6681 seconds newer than the signature
gpg: public key 0x34F0AD94868FADC1 is 1158 seconds newer than the signature
gpg: public key 0xBB2331BFC5D30BFB is 2076 seconds newer than the signature
gpg: signal Segmentation fault caught ... exiting
zsh: segmentation fault (core dumped) gpg --update-trustdb
'''
After downgrading to gnupg-2.1.11-1, works as expected:
'''
% gpg --update-trustdb
gpg: removing stale lockfile (created by 19717)
gpg: public key 0x7B8FA05E550FDA19 is 25 seconds newer than the signature
gpg: public key 0x34F0AD94868FADC1 is 1158 seconds newer than the signature
gpg: public key 0xBB2331BFC5D30BFB is 2076 seconds newer than the signature
gpg: marginals needed: 3 completes needed: 1 trust model: PGP
gpg: depth: 0 valid: 3 signed: 12 trust: 0-, 0q, 0n, 0m, 0f, 3u
gpg: depth: 1 valid: 12 signed: 18 trust: 0-, 0q, 1n, 10m, 1f, 0u
gpg: next trustdb check due at 2016-11-27
'''
Attached the full stack trace obtained after recompiling the packages in -O0, debug and !strip.
GDB segfault details::
'''
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7453fcb in _gcry_mpi_normalize (a=0x0) at mpi-bit.c:61
61 for( ; a->nlimbs && !a->d[a->nlimbs-1]; a->nlimbs-- )
'''