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

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Jun 21 17:32:45 BST 2018


On Thu 2018-05-17 16:07:16 +0200, Johannes Rohr wrote:
> 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.

what process specifically is doing this to the tofu database?  can you
identify the name of the process, what its arguments are, and how it was
invoked?

also, can you share any relevant parts of your ~/.gnupg/gpg.conf ?

      --dkg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-gnupg-maint/attachments/20180621/4bff61bc/attachment-0001.sig>


More information about the pkg-gnupg-maint mailing list