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

Attachment: signature.asc
Description: PGP signature

Reply via email to