Bug#1074464: apt-key list (and also apt update) hangs with a gpgconf causing CPU at 100% when /proc is not mounted
Package: apt
Version: 2.9.5
Severity: normal
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.
-- Package-specific info:
-- (no /etc/apt/preferences present) --
-- (no /etc/apt/preferences.d/* present) --
-- (/etc/apt/sources.list present, but not submitted) --
-- (/etc/apt/sources.list.d/10_local_unstable.sources present, but not submitted) --
-- (/etc/apt/sources.list.d/50_debian_unstable.sources present, but not submitted) --
-- (no /etc/apt/sources.list.d/disabled present) --
-- System Information:
Debian Release: trixie/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.9.7-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=en_DE.UTF-8, LC_CTYPE=en_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages apt depends on:
ii adduser 3.137
ii base-passwd 3.6.3
ii debian-archive-keyring 2023.4
ii gpgv 2.2.43-7
ii libapt-pkg6.0t64 2.9.5
ii libc6 2.38-13
ii libgcc-s1 14.1.0-2
ii libgnutls30t64 3.8.5-4
ii libseccomp2 2.5.5-1
ii libstdc++6 14.1.0-2
ii libsystemd0 256.1-2
Versions of packages apt recommends:
ii ca-certificates 20240203
Versions of packages apt suggests:
ii apt-doc 2.9.5
ii aptitude 0.8.13-6
ii dpkg-dev 1.22.6
ii gnupg 2.2.43-7
ii powermgmt-base 1.37
-- Configuration Files:
/etc/logrotate.d/apt changed [not included]
-- no debconf information
Reply to: