[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-ports
Subject:    Fwd: keysearch fails
From:       Matthias Apitz <guru () unixarea ! de>
Date:       2015-12-23 10:30:25
Message-ID: 20151223103025.GA9202 () c720-r285885-amd64
[Download RAW message or body]

Hello kuriyama@FreeBSD.org,

There seems to be a bug in GnuPG 2.1.x dirmngr which let it crash; the
attached diff at least solves the crash, even if there are other errors
while searching for pub keys :-(

	matthias

----- Forwarded message from Matthias Apitz <guru@unixarea.de> -----

Date: Wed, 23 Dec 2015 09:23:12 +0100
From: Matthias Apitz <guru@unixarea.de>
To: gnupg-users@gnupg.org
Subject: keysearch fails


Hello,

I can not manage to get a keysearch via dirmngr to work; when I use:

$ gpg2 --keyserver pool.sks-keyservers.net --debug 1024 --search xxxx@FreeBSD.org
gpg: reading options from '/home/guru/.gnupg/gpg.conf'
gpg: enabled debug flags: ipc
gpg: DBG: chan_3 <- # Home: /home/guru/.gnupg
gpg: DBG: chan_3 <- # Config: /home/guru/.gnupg/dirmngr.conf
gpg: DBG: chan_3 <- OK Dirmngr 2.1.6 at your service
gpg: DBG: connection to the dirmngr established
gpg: DBG: chan_3 -> KEYSERVER --clear hkp://pool.sks-keyservers.net
gpg: DBG: chan_3 <- OK
gpg: DBG: chan_3 -> KS_SEARCH -- xxxx@FreeBSD.org
gpg: DBG: chan_3 <- [eof]
gpg: error searching keyserver: End of file
gpg: bรบsqueda del servidor de claves fallida: End of file
gpg: DBG: chan_3 -> BYE
gpg: secmem usage: 0/32768 bytes in 0 blocks

In /var/log/message I see:

Dec 23 09:15:09 c720-r285885-amd64 kernel: pid 2809 (dirmngr), uid 1001: exited on \
signal 6

which perhaps is normal (soemhow the spawned proc must be killed); but a
TCPDUMP only shows a lot of PTR requests, see below. No real traffic is
to be seen to no server.

What I do miss here?

	matthias


09:15:57.465887 IP 10.42.0.152.26961 > 10.42.0.1.53: 57200+ A? \
pool.sks-keyservers.net. (41) 09:15:57.698231 IP 10.42.0.1.53 > 10.42.0.152.26961: \
57200 10/0/0 A 176.9.51.79, A 193.224.163.43, A 207.237.164.231, A 193.17.17.6, A \
85.93.13.183, A 104.236.44.212, A 46.229.47.139, A 223.252.21.101, A 192.71.151.126, \
A 144.76.120.109 (201) 09:15:57.698443 IP 10.42.0.152.15292 > 10.42.0.1.53: 44337+ \
AAAA? pool.sks-keyservers.net. (41) 09:15:58.136982 IP 10.42.0.1.53 > \
10.42.0.152.15292: 44337 10/0/0 AAAA 2604:a880:800:10::60d:b001, AAAA \
2a03:4000:6:202e::1, AAAA 2a01:7a0:1::6, AAAA 2001:470:1f09:1d75::80, AAAA \
2a01:4f8:a0:4024::2:0, AAAA 2a01:4f8:150:7142::2, AAAA 2001:41d0:2:a8b4::10, AAAA \
2a02:168:4a01::37, AAAA 2604:a880:800:10::688:e001, AAAA 2001:6f8:124e::1 (321) \
09:15:58.138270 IP 10.42.0.152.57903 > 10.42.0.1.53: 3651+ PTR? \
212.44.236.104.in-addr.arpa. (45) 09:15:58.139749 IP 10.42.0.1.53 > \
10.42.0.152.57903: 3651 1/0/0 PTR openpgp.us. (69) 09:15:58.140405 IP \
10.42.0.152.49791 > 10.42.0.1.53: 29976+ PTR? 126.151.71.192.in-addr.arpa. (45) \
09:15:58.142479 IP 10.42.0.1.53 > 10.42.0.152.49791: 29976 1/0/0 PTR \
mimir.alderwick.co.uk. (80) 09:15:58.142854 IP 10.42.0.152.20861 > 10.42.0.1.53: \
61059+ PTR? 101.21.252.223.in-addr.arpa. (45) 09:15:58.144671 IP 10.42.0.1.53 > \
10.42.0.152.20861: 61059 1/0/0 PTR svcs4.riverwillow.net.au. (83) 09:15:58.145031 IP \
10.42.0.152.51574 > 10.42.0.1.53: 21456+ PTR? 139.47.229.46.in-addr.arpa. (44) \
09:15:58.146670 IP 10.42.0.1.53 > 10.42.0.152.51574: 21456 1/0/0 PTR \
jarvis.alpha-labs.net. (79) 09:15:58.147016 IP 10.42.0.152.24483 > 10.42.0.1.53: \
11392+ PTR? 79.51.9.176.in-addr.arpa. (42) 09:15:58.149302 IP 10.42.0.1.53 > \
10.42.0.152.24483: 11392 1/0/0 PTR alita.karotte.org. (73) 09:15:58.149639 IP \
10.42.0.152.45716 > 10.42.0.1.53: 51515+ PTR? 183.13.93.85.in-addr.arpa. (43) \
09:15:58.150581 IP 10.42.0.1.53 > 10.42.0.152.45716: 51515 1/0/0 PTR \
host10.slyinvestment.com. (81) 09:15:58.151058 IP 10.42.0.152.31608 > 10.42.0.1.53: \
34134+ PTR? 6.17.17.193.in-addr.arpa. (42) 09:15:58.153963 IP 10.42.0.1.53 > \
10.42.0.152.31608: 34134 1/0/0 PTR key.ip6.li. (66) 09:15:58.154314 IP \
10.42.0.152.37867 > 10.42.0.1.53: 56496+ PTR? 231.164.237.207.in-addr.arpa. (46) \
09:15:58.156621 IP 10.42.0.1.53 > 10.42.0.152.37867: 56496 1/0/0 PTR keys.sflc.info. \
(74) 09:15:58.156959 IP 10.42.0.152.20412 > 10.42.0.1.53: 34648+ PTR? \
43.163.224.193.in-addr.arpa. (45) 09:15:58.158943 IP 10.42.0.1.53 > \
10.42.0.152.20412: 34648 1/0/0 PTR hufu.ki.iif.hu. (73) 09:15:58.159277 IP \
10.42.0.152.46457 > 10.42.0.1.53: 32569+ PTR? 109.120.76.144.in-addr.arpa. (45) \
09:15:58.161678 IP 10.42.0.1.53 > 10.42.0.152.46457: 32569 1/0/0 PTR encrypt.to. (69) \
09:15:58.162290 IP 10.42.0.152.58716 > 10.42.0.1.53: 61479+ PTR? \
0.0.0.0.2.0.0.0.0.0.0.0.0.0.0.0.4.2.0.4.0.a.0.0.8.f.4.0.1.0.a.2.ip6.arpa. (90) \
09:15:58.163688 IP 10.42.0.1.53 > 10.42.0.152.58716: 61479 1/0/0 PTR \
a.keyserver.pki.scientia.net. (132) 09:15:58.164128 IP 10.42.0.152.32231 > \
10.42.0.1.53: 26254+ PTR? \
1.0.0.e.8.8.6.0.0.0.0.0.0.0.0.0.0.1.0.0.0.0.8.0.0.8.8.a.4.0.6.2.ip6.arpa. (90) \
09:15:58.166679 IP 10.42.0.1.53 > 10.42.0.152.32231: 26254 0/0/0 (90) 09:15:58.167037 \
IP 10.42.0.152.15342 > 10.42.0.1.53: 14504+ PTR? \
7.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.a.4.8.6.1.0.2.0.a.2.ip6.arpa. (90) \
09:15:58.168514 IP 10.42.0.1.53 > 10.42.0.152.15342: 14504 1/0/0 PTR \
pgpkeys.urown.net. (121) 09:15:58.168872 IP 10.42.0.152.49875 > 10.42.0.1.53: 39926+ \
PTR? 0.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.4.b.8.a.2.0.0.0.0.d.1.4.1.0.0.2.ip6.arpa. (90) \
09:15:58.170820 IP 10.42.0.1.53 > 10.42.0.152.49875: 39926 NXDomain 0/0/0 (90) \
09:15:58.171163 IP 10.42.0.152.32030 > 10.42.0.1.53: 45608+ PTR? \
2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.4.1.7.0.5.1.0.8.f.4.0.1.0.a.2.ip6.arpa. (90) \
09:15:58.173415 IP 10.42.0.1.53 > 10.42.0.152.32030: 45608 1/0/0 PTR \
alita.karotte.org. (121) 09:15:58.173779 IP 10.42.0.152.48813 > 10.42.0.1.53: 38867+ \
PTR? 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.e.4.2.1.8.f.6.0.1.0.0.2.ip6.arpa. (90) \
09:15:59.037424 IP 10.42.0.1.53 > 10.42.0.152.48813: 38867 FormErr 0/0/0 (90) \
09:15:59.037986 IP 10.42.0.152.57139 > 10.42.0.1.53: 19220+ PTR? \
0.8.0.0.0.0.0.0.0.0.0.0.0.0.0.0.5.7.d.1.9.0.f.1.0.7.4.0.1.0.0.2.ip6.arpa. (90) \
09:15:59.043902 IP 10.42.0.1.53 > 10.42.0.152.57139: 19220 NXDomain 0/0/0 (90) \
09:15:59.044301 IP 10.42.0.152.52403 > 10.42.0.1.53: 1040+ PTR? \
6.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.0.0.0.a.7.0.1.0.a.2.ip6.arpa. (90) \
09:15:59.053424 IP 10.42.0.1.53 > 10.42.0.152.52403: 1040 1/0/0 PTR key.ip6.li. (114) \
09:15:59.053950 IP 10.42.0.152.25246 > 10.42.0.1.53: 33858+ PTR? \
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.e.2.0.2.6.0.0.0.0.0.0.4.3.0.a.2.ip6.arpa. (90) \
09:15:59.056508 IP 10.42.0.1.53 > 10.42.0.152.25246: 33858 1/0/0 PTR metalgamer.eu. \
(117) 09:15:59.057051 IP 10.42.0.152.28425 > 10.42.0.1.53: 31847+ PTR? \
1.0.0.b.d.0.6.0.0.0.0.0.0.0.0.0.0.1.0.0.0.0.8.0.0.8.8.a.4.0.6.2.ip6.arpa. (90) \
09:15:59.058008 IP 10.42.0.1.53 > 10.42.0.152.28425: 31847 1/0/0 PTR openpgp.us. \
(114)

-- 
Matthias Apitz, โœ‰ guru@unixarea.de, ๐ŸŒ http://www.unixarea.de/  โ˜Ž \
+49-176-38902045

_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users

----- End forwarded message -----

-- 
Matthias Apitz, โœ‰ guru@unixarea.de, ๐ŸŒ http://www.unixarea.de/  โ˜Ž \
+49-176-38902045


["dirmngr.diff" (text/x-diff)]

*** gnupg-2.1.6/dirmngr/ks-engine-hkp.c	2015-12-23 11:15:28.244806000 +0100
--- gnupg-2.1.6/dirmngr/ks-engine-hkp.c.orig	2015-12-23 11:14:49.125447000 +0100
***************
*** 512,519 ****
                xfree (reftbl);
                return err;
              }
!           /* qsort (reftbl, refidx, sizeof *reftbl, sort_hostpool); */
!           qsort (hi->pool, refidx, sizeof *reftbl, sort_hostpool);
          }
        else
          xfree (reftbl);
--- 512,518 ----
                xfree (reftbl);
                return err;
              }
!           qsort (reftbl, refidx, sizeof *reftbl, sort_hostpool);
          }
        else
          xfree (reftbl);


_______________________________________________
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic