One more segfault with gpg-1.0.1

Jan-Benedict Glaw jbglaw at
Fri Apr 28 15:13:58 CEST 2000


I hit one more bug these days;) Currently I'm working on putting together
a key management tool (read: frontend) because I can't find anything really
*good*. gpgp and seahorse are nice, but they aim a user's interface for
encryption/decryption/verification. But okay, here is what I tested:

(0xKKKK is a test key on a non-networking machine;)

gpg --with-colons --with-key-data --list-secret-keys 0xKKKKK

GnuPG writes the first line (sec:u:1024.....) and then dies...

gdb then shows the buggy line:

0x807c2cf in print_key_data (pk=0x0, keyid=0xKKKKK) at keylist.c:148
148         int n = pubkey_get_npkey( pk->pubkey_algo );

(gdb) bt
#0  0x807c2cf in print_key_data (pk=0x0, keyid=0xbffffb00) at keylist.c:148
                                    ^^^--- A nice NULL pointer;)
#1  0x807c795 in list_keyblock (keyblock=0x80c7658, secret=1) at keylist.c:272
#2  0x807c20b in list_one (names=0x80c4f60, secret=1) at keylist.c:125
#3  0x807c03b in secret_key_list (list=0x80c4f60) at keylist.c:63
#4  0x8052da8 in main (argc=0, argv=0xbffffd58) at g10.c:1200

Please don't flame me for using more-or-less insecure ways of retreiving
key data -- the program shall run off a self-booting CDROM;)


Fehler eingestehen, Größe zeigen: Nehmt die Rechtschreibreform zurück!!!
/* Jan-Benedict Glaw <jbglaw at> -- +49-177-5601720 */
keyID=0x8399E1BB fingerprint=250D 3BCF 7127 0D8C A444 A961 1DBD 5E75 8399 E1BB
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 248 bytes
Desc: not available
Url : /pipermail/attachments/20000428/462c0d94/attachment.bin

More information about the Gnupg-devel mailing list