NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/42435 (netpgpkeys(1) segfaults)



The following reply was made to PR bin/42435; it has been noted by GNATS.

From: Jukka Ruohonen <jruohonen%iki.fi@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/42435 (netpgpkeys(1) segfaults)
Date: Tue, 20 Apr 2010 08:32:30 +0300

 On Sun, Apr 18, 2010 at 01:31:08AM +0000, agc%NetBSD.org@localhost wrote:
 > [4:45:01] agc@osx-vm1 ...bsd/netpgp/dist [2283] > netpgpkeys --export-key
 > netpgp: bad homedir
 > Cannot find own key "(null)" in keyring
 > key '(null)' not found
 > 
 > and so I was wondering if this is what you've found too?
 
 Actually, no; I still get the memory fault:
 
 $ netpgpkeys --version --verbose
 NetPGP portable 3.99.1/[20100313]
 All bug reports, praise and chocolate, please, to:
 Alistair Crooks <agc%netbsd.org@localhost> c0596823
 
 $ netpgpkeys --export-key        
 Memory fault 
 
 Also:
 
 $ pwd
 /home/jruoho
 
 $ netpgpkeys --generate-key                             
 netpgp: bad homedir
 pub 2048/RSA (Encrypt or Sign) 31013f349cd14474 2010-04-20 
 Key fingerprint: 5f77 b000 423c c819 bdf9 3ad7 3101 3f34 9cd1 4474 
 uid              RSA 2048-bit key <jruoho@localhost>
 netpgp: generated keys in directory (null)/31013f349cd14474
 (null)/31013f349cd14474/pubring.gpg: No such file or directory
 can't open pubring '(null)/31013f349cd14474/pubring.gpg'
 
 This was with an empty $HOME/.gnupg. It created an empty $HOME/homedir. When
 I created .gnupg beforehand:
 
 $ netpgpkeys --generate-key 
 /home/jruoho/.gnupg/pubring.gpg: No such file or directory
 Can't read pubring /home/jruoho/.gnupg/pubring.gpg
 Can't read pub keyring
 pub 2048/RSA (Encrypt or Sign) 065b329b1348d105 2010-04-20 
 Key fingerprint: ccd7 f164 b8b3 7e2d f096 c90e 065b 329b 1348 d105 
 uid              RSA 2048-bit key <jruoho@localhost>
 netpgp: generated keys in directory /home/jruoho/.gnupg/065b329b1348d105
 Memory fault 
 
 Even though it again faults, I can then continue the example and list the
 key. But not if I omit the path:
 
 $ netpgpkeys --list-keys                                              <
 /home/jruoho/.gnupg/pubring.gpg: No such file or directory
 Can't read pubring /home/jruoho/.gnupg/pubring.gpg
 Can't read pub keyring
 Memory fault 
 
 The other options in netpgpkeys(1) seem to work fine though; I can list the
 keys and signatures, find keys from my original .gnupg, and so on.
 


Home | Main Index | Thread Index | Old Index