#1074464 apt-key list (and also apt update) hangs with a gpgconf causing CPU at 100% when /proc is not mounted

Package:
apt
Source:
apt
Description:
commandline package manager
Submitter:
Christoph Anton Mitterer
Date:
2024-10-08 15:36:01 UTC
Severity:
normal
#1074464#5
Date:
2024-06-28 23:26:16 UTC
From:
To:
Hey.

I noticed the following in chroot, which never happened before (though I haven't
used/updated it in quite a while).

When /proc is not (bind)mounted in the chroot, anything that
updates (like apt update or via aptitude) causes an
apt-key process, which in turn has two gpgconf child processes that go to
100% CPU usage (and seem to stay at that forever).
Ctrl-C doesn't work then.

Can be easily reproduced in a small chroot, by executing apt-key list

Cheers,
Chris.

#1074464#10
Date:
2024-10-08 15:32:37 UTC
From:
To:
Hi Chris,

I've also met this problem, though it seems to lie in gpgconf, which has a
similar bug report: https://bugs.debian.org/1079696.