[pkg-gnupg-maint] Bug#898930: gnupg: uses 100% CPU until killed

Johannes Rohr jorohr at gmail.com
Thu May 17 15:07:16 BST 2018


Package: gnupg
Version: 2.2.5-1
Severity: important

Lately, when I leave my computer running, when I return I occasionally find that CPU usage is at 100%, CPU temperature is close to 100 centigrades, and that's because a gpg process seems to run wild.

This is what I get when I run strace on the process:

fcntl(7, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = -1 EACCES (Permission denied)
fcntl(7, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = -1 EACCES (Permission denied)
fcntl(7, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = -1 EACCES (Permission denied)
fcntl(7, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = -1 EACCES (Permission denied)
fcntl(7, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = -1 EACCES (Permission denied)
fcntl(7, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = -1 EACCES (Permission denied)


Or with strace -y

fcntl(7</home/jr/.gnupg/tofu.db>, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = -1 EACCES (Permission denied)
fcntl(7</home/jr/.gnupg/tofu.db>, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = -1 EACCES (Permission denied)
fcntl(7</home/jr/.gnupg/tofu.db>, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = -1 EACCES (Permission denied)
fcntl(7</home/jr/.gnupg/tofu.db>, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = -1 EACCES (Permission denied)
fcntl(7</home/jr/.gnupg/tofu.db>, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = -1 EACCES (Permission denied)
fcntl(7</home/jr/.gnupg/tofu.db>, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = -1 EACCES (Permission denied)
fcntl(7</home/jr/.gnupg/tofu.db>, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = -1 EACCES (Permission denied)
fcntl(7</home/jr/.gnupg/tofu.db>, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}^Cstrace: Process 28176 detached

I have no idea why permission is denied. I can't find that tofu.db is opened by any other process, with lsof, also I can't find anything with lslocks.


-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.16.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages gnupg depends on:
ii  dirmngr         2.2.5-1
ii  gnupg-l10n      2.2.5-1
ii  gnupg-utils     2.2.5-1
ii  gpg             2.2.5-1
ii  gpg-agent       2.2.5-1
ii  gpg-wks-client  2.2.5-1
ii  gpg-wks-server  2.2.5-1
ii  gpgsm           2.2.5-1
ii  gpgv            2.2.5-1

gnupg recommends no packages.

Versions of packages gnupg suggests:
pn  parcimonie  <none>
pn  xloadimage  <none>

-- no debconf information



More information about the pkg-gnupg-maint mailing list