Bug#844117: [pkg-gnupg-maint] Bug#844117: gnupg locks up until straced
Over on https://bugs.debian.org/844117, Daniel Kahn Gillmor wrote: > This looks like #840680 to me, which was resolved in 2.1.15-6. > > Please test a more recent version of dirmngr, and if it resolves your > problems, please merge this bug report into 840680. I haven't heard back from you about this, Ian. Can you let me know whether this lockup is resolved for you? --dkg signature.asc Description: PGP signature
Bug#844117: [pkg-gnupg-maint] Bug#844117: gnupg locks up until straced
On Sun 2016-11-13 01:45:45 +0900, Ian Jackson wrote: > Package: gnupg > Version: 2.1.15-4 > > I just tried to use caff. I found that it seemed to hang, every > time. I tried debugging it with strace. > > I discovered that caff had run a gpg-connect-agent process. It was > calling connect() to connect to /run/user/1000/gnupg/S.dirmngr. The > corresponding listening socket in question was owned by a dirmngr > process. > > I straced the dirnmgr process and got: > > root(ian)@zealot:~> strace -fp14006 > strace: Process 14006 attached with 3 threads > [pid 17554] futex(0x7f459d683200, > FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL, ) = -1 > EAGAIN (Resource temporarily unavailable) > [pid 17554] getsockopt(1, SOL_SOCKET, SO_PEERCRED, {pid=17553, uid=1000, > gid=1000}, [12]) = 0 > [pid 17554] futex(0x7f459d683200, FUTEX_WAKE_PRIVATE, 1) = 0 > ... > > And then caff unwedged. > > This all happened to me twice. I may be able to repro it. > > I suspect thread mishandling by dirmngr. This looks like #840680 to me, which was resolved in 2.1.15-6. Please test a more recent version of dirmngr, and if it resolves your problems, please merge this bug report into 840680. Regards, --dkg signature.asc Description: PGP signature
Bug#844117: [pkg-gnupg-maint] Bug#844117: gnupg locks up until straced
On Sat, 12 Nov 2016 17:45, ijack...@chiark.greenend.org.uk said: > I just tried to use caff. I found that it seemed to hang, every > time. I tried debugging it with strace. Put --8<---cut here---start->8--- log-file /wherever/dirmngr.log verbose debug ipc --8<---cut here---end--->8--- into dirmngr.conf. kill dirmngr and run caff again. This gives you a nice log. You may also want to start dirmngr yourself to see how it works: gpg-conncet-agent --dirmngr then enter "help" to get a list of commands. You may the check which DNS resolver is used: getinfo dnsinfo Add a keyserver (if you don't have one in the config) keyserver hkp://keys.gnupg.net and view the table of keyservers: keyserver --resolve --hosttable Looking up keys can be done using ks_get 1234567812345678 Shalom-Salam, Werner -- Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz. pgpjoCKnKLpe8.pgp Description: PGP signature