[pkg-gnupg-maint] Bug#1079696: gpgconf: "gpgconf --kill all" infinite loop when /proc/fd is not available

Russell Coker russell at coker.com.au
Mon Aug 26 13:48:02 BST 2024


Package: gpgconf
Version: 2.4.5-2
Severity: normal

When "gpgconf --kill all" is launched from "apt update" and /proc isn't mounted a gpgconf child process will go into an infinite loop, see the following strace output for details.

I think that it should either abort with an error or run normally.

I first saw this bug in version 2.2.43-8.  Running apt in a bare chroot isn't that uncommon for me and for some earlier versions it worked OK.


openat(AT_FDCWD, "/proc/self/fd", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
prlimit64(0, RLIMIT_NOFILE, NULL, {rlim_cur=1024, rlim_max=1073741816}) = 0
close(3)                                = 0
close(4)                                = 0
close(5)                                = 0
close(6)                                = 0
close(7)                                = -1 EBADF (Bad file descriptor)
close(8)                                = -1 EBADF (Bad file descriptor)
close(9)                                = -1 EBADF (Bad file descriptor)
close(10)                               = -1 EBADF (Bad file descriptor)
close(11)                               = -1 EBADF (Bad file descriptor)
close(12)                               = -1 EBADF (Bad file descriptor)
close(13)                               = -1 EBADF (Bad file descriptor)
close(14)                               = -1 EBADF (Bad file descriptor)
close(15)                               = -1 EBADF (Bad file descriptor)
close(16)                               = -1 EBADF (Bad file descriptor)
close(17)                               = -1 EBADF (Bad file descriptor)
close(18)                               = -1 EBADF (Bad file descriptor)
close(19)                               = -1 EBADF (Bad file descriptor)
close(20)                               = -1 EBADF (Bad file descriptor)
close(21)                               = -1 EBADF (Bad file descriptor)
close(22)                               = -1 EBADF (Bad file descriptor)
close(23)                               = -1 EBADF (Bad file descriptor)
close(24)                               = -1 EBADF (Bad file descriptor)
close(25)                               = -1 EBADF (Bad file descriptor)
close(26)                               = -1 EBADF (Bad file descriptor)
close(27)                               = -1 EBADF (Bad file descriptor)
close(28)                               = -1 EBADF (Bad file descriptor)
close(29)                               = -1 EBADF (Bad file descriptor)
close(30)                               = -1 EBADF (Bad file descriptor)
[...]
close(21599889)                         = -1 EBADF (Bad file descriptor)
close(21599890)                         = -1 EBADF (Bad file descriptor)
close(21599891)                         = -1 EBADF (Bad file descriptor)
close(21599892)                         = -1 EBADF (Bad file descriptor)
close(21599893)                         = -1 EBADF (Bad file descriptor)
close(21599894)                         = -1 EBADF (Bad file descriptor)
close(21599895)                         = -1 EBADF (Bad file descriptor)
close(21599896)                         = -1 EBADF (Bad file descriptor)
close(21599897)                         = -1 EBADF (Bad file descriptor)


-- System Information:
Debian Release: trixie/sid
Architecture: amd64 (x86_64)

Kernel: Linux 6.10.4-amd64 (SMP w/18 CPU threads; PREEMPT)
Kernel taint flags: TAINT_CPU_OUT_OF_SPEC
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages gpgconf depends on:
ii  libassuan0       2.5.6-1+b1
ii  libc6            2.40-2
ii  libgcrypt20      1.11.0-6
ii  libgpg-error0    1.50-3
ii  libreadline8t64  8.2-5

gpgconf recommends no packages.

gpgconf suggests no packages.

-- debconf-show failed



More information about the pkg-gnupg-maint mailing list