Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1069577 > unrolled thread

Bug#993578: 90gpg-agent generator: `gpgconf --check-programs` can hang

Started byAnsgar <ansgar@debian.org>
First post2021-09-03 13:20 +0200
Last post2021-09-23 23:20 +0200
Articles 3 — 3 participants

Back to article view | Back to linux.debian.bugs.dist


Contents

  Bug#993578: 90gpg-agent generator: `gpgconf --check-programs` can hang Ansgar <ansgar@debian.org> - 2021-09-03 13:20 +0200
    Bug#993578: 90gpg-agent generator: `gpgconf --check-programs` can hang Kévin Seroux <kevin.seroux@gmail.com> - 2021-09-22 19:50 +0200
    Bug#993578: 90gpg-agent generator: `gpgconf --check-programs` can hang Raphael Hertzog <hertzog@debian.org> - 2021-09-23 23:20 +0200

#1069577 — Bug#993578: 90gpg-agent generator: `gpgconf --check-programs` can hang

FromAnsgar <ansgar@debian.org>
Date2021-09-03 13:20 +0200
SubjectBug#993578: 90gpg-agent generator: `gpgconf --check-programs` can hang
Message-ID<CTfoJ-4AS-3@gated-at.bofh.it>
Package: gpg-agent
Version: 2.2.27-2
Severity: normal
File: /usr/lib/systemd/user-environment-generators/90gpg-agent

The 90gpg-agent generator calls `gpgconf --check-programs` which calls
`dirmngr` which tries to connect to localhost:9050 (Tor) for some
reason.  This can hang, causing the generator to timeout (and thus the
systemd --user instance as well) and causing 90s delay for logins.

This issue was reported once a few days ago in #-devel (user
configured firewall to drop packets, even on the lo interface) and
today on #-systemd (not sure why connection to localhost:9050 did not
succeed, Tor should even be available).

The generator should avoid relying on network operations that
potentially hang/time out.

Ansgar

[toc] | [next] | [standalone]


#1072426

FromKévin Seroux <kevin.seroux@gmail.com>
Date2021-09-22 19:50 +0200
Message-ID<D0exz-Ce-1@gated-at.bofh.it>
In reply to#1069577
Hello,

This bug happened to my server, it prevented SSH connections.

One workaround is to initiate another SSH connection before the session 
drop timeout (systemd seems to not trigger several times 90gpg-agent).
Since I removed the gpg-agent package, SSH now works.

Regards,

Kevin

[toc] | [prev] | [next] | [standalone]


#1072618

FromRaphael Hertzog <hertzog@debian.org>
Date2021-09-23 23:20 +0200
Message-ID<D0Eil-8ce-3@gated-at.bofh.it>
In reply to#1069577
Control: severity -1 serious
Control: tags -1 + patch

Hello,

I have been bitten by this bug for multiple months without having a clue
of what was going on... when I resumed my laptop without wifi, the GNOME
session would be blocked for a minute or so.

With the patch in https://salsa.debian.org/debian/gnupg2/-/merge_requests/9
I no longer have this issue.

But I'm not sure if the patch is fully correct, the manual page is not
clear whether --check-options foo is a subset of --check-programs. However
the output format of both command is exactly the same.

BTW I believe this issue needs to be fixed in bullseye too.

Cheers,
-- 
Raphaël Hertzog

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.bugs.dist


csiph-web