pkgsrc-Users archive

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

Re: Signature key id b5952cabdd765a20 not found



On Sun 02 Oct 2022 at 15:24:15 +0200, Roland Illig wrote:
> Am 02.10.2022 um 14:36 schrieb Rhialto:
> > On Sat 01 Oct 2022 at 23:38:16 +0200, Roland Illig wrote:
> > > Before I fixed a few long-standing bugs in netpgp, I didn't even know
> > > that that tool exists, and neither pkg_info(1) nor pkg_install.conf(5)
> > > mentions it, so I still don't know how an average pkgsrc user would be
> > > supposed to solve this problem.
> > 
> > This isn't helpful either:
> > 
> > $ netpgp --list-keys rhialto
> > netpgp: unknown option -- list-keys
> > Segmentation fault
> 
> That's surprising to me, what's the stacktrace?

This is what I get (starting in some random directory):

murthe.6:.../pkgsrc/wip/golly$ gdb --args netpgp --list-keys rhialto
GNU gdb (GDB) 8.3
...
Reading symbols from netpgp...
Reading symbols from /mnt/vol1/usr/libdata/debug//usr/bin/netpgp.debug...
(gdb) r
Starting program: /usr/bin/netpgp --list-keys rhialto
netpgp: unknown option -- list-keys

Program received signal SIGSEGV, Segmentation fault.
0x00007dfb68428128 in cb_keyring_read (pkt=0x7f7fff99ce80, 
    cbinfo=<optimized out>)
    at /usr/src/crypto/external/bsd/netpgp/lib/netpgp/../../dist/src/lib/keyring.c:623
623                     EXPAND_ARRAY(key, subsig);
(gdb) bt
#0  0x00007dfb68428128 in cb_keyring_read (pkt=0x7f7fff99ce80, 
    cbinfo=<optimized out>)
    at /usr/src/crypto/external/bsd/netpgp/lib/netpgp/../../dist/src/lib/keyring.c:623
#1  0x00007dfb68422765 in parse_trust (stream=0x7dfb68710000, 
    region=0x7f7fff998a40)
    at /usr/src/crypto/external/bsd/netpgp/lib/netpgp/../../dist/src/lib/packet-parse.c:2214
#2  parse_packet (stream=stream@entry=0x7dfb68710000, 
    pktlen=pktlen@entry=0x7f7fff99eedc)
    at /usr/src/crypto/external/bsd/netpgp/lib/netpgp/../../dist/src/lib/packet-parse.c:3161
#3  0x00007dfb68424232 in pgp_parse (stream=stream@entry=0x7dfb68710000, 
    perrors=perrors@entry=0)
    at /usr/src/crypto/external/bsd/netpgp/lib/netpgp/../../dist/src/lib/packet-parse.c:3286
#4  0x00007dfb68426472 in pgp_parse_and_accumulate (
    keyring=keyring@entry=0x7dfb68718040, parse=parse@entry=0x7dfb68710000)
    at /usr/src/crypto/external/bsd/netpgp/lib/netpgp/../../dist/src/lib/misc.c:203
#5  0x00007dfb68428b6c in pgp_keyring_fileread (
    keyring=keyring@entry=0x7dfb68718040, armour=armour@entry=0, 
    filename=filename@entry=0x7dfb68715000 "/home/rhialto/.gnupg/pubring.gpg")
    at /usr/src/crypto/external/bsd/netpgp/lib/netpgp/../../dist/src/lib/keyring.c:743
#6  0x00007dfb6840d130 in readkeyring (netpgp=0x7f7fff99f580, 
    name=0x7dfb6842cf96 "pubring")
    at /usr/src/crypto/external/bsd/netpgp/lib/netpgp/../../dist/src/lib/netpgp.c:299
#7  0x00007dfb6840d823 in netpgp_init (netpgp=0x7f7fff99f580)
    at /usr/src/crypto/external/bsd/netpgp/lib/netpgp/../../dist/src/lib/netpgp.c:873
#8  0x000000016a0028ba in main (argc=<optimized out>, argv=0x7f7fff99fc08)
    at /usr/src/crypto/external/bsd/netpgp/bin/netpgp/../../dist/src/netpgp/netpgp.c:597

> I reported this one as https://gnats.netbsd.org/57042, as I don't know
> netpgp well enough to fix it myself.

Yes it looks like it wants to do something with the keyring here too.
I have collected a lot of public keys (gpg --list-keys |wc -l gives 2136),
and I suppose netpgp could stumble over any of them.

> Roland
-Olaf.
-- 
___ "Buying carbon credits is a bit like a serial killer paying someone else to
\X/  have kids to make his activity cost neutral." -The BOFH    falu.nl@rhialto

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index