Red Hat Bugzilla – Bug 102439
segmentation fault when importing GPG key
Last modified: 2007-04-18 12:56:53 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686) Gecko/20030610 Galeon/1.3.7
Description of problem:
"rpm --import" consistently fails with a segmentation fault when trying to
import my public key. The failure happens before import; no new
"gpg-pubkey-*-*" package appears in RPM's list.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Export my public key in ASCII form using:
gpg --export -a 42692271 >key.asc
2. Become root.
3. Import this key using "rpm --import key.asc".
Actual Results: rpm command failed with a segmentation fault. Key has not been
Expected Results: rpm should have completed without segmentation faulting. Key
should have been imported.
The URL cited above will give you my ASCII-armored public key as exported by
PGP. I'll attach the same thing, exported by GnuPG, to this bug report.
Note that my key is an RSA key, not a DSA key. The RPM documentation claims
that both are supported. If RSA is not supported, then the documentation should
be updated and RPM should present a diagnostic error message instead of simply
Created attachment 93651 [details]
public key which causes "rpm --import" failure
rpm-4.3.1 fails as follows:
# rpm --import /tmp/pubkey.asc
error: /tmp/pubkey.asc: import failed.
Assuming fixed. AFAIK RSA/MD5 is understood by rpm.
Note that rpm supports only a subset of OpenPGP.