Page MenuHome GnuPG

--list-keys output truncated and loops repeatedly
Closed, ResolvedPublic

Description

I'm using gpg in Windows 7 Enterprise and when I run --list-keys the output to the console is the same 4 keys in a loop for exactly 10 seconds. If I redirect the output to a file gpg --list-keys > keys.txt it writes out all the keys without duplication and terminates immediately.

I do not know how you could reproduce this without my keys. The console output is this same text repeated over and over again:

pub   C:\Users\[removed]\AppData\Roaming\gnupg\pubring.gpg
---------------------------------------------------
pub   [removed]
      [removed]
uid           [ unknown] [removed]
uid           [ unknown] [removed]
uid           [ unknown] [removed]
sub   [removed]

pub   [removed]
      [removed]
uid           [removed]

pub   [removed]
      [removed]
uid           [removed]
uid           [removed]
sub   [removed]

pub   dsa1024 2009-01-18 [SC] [expired: 2010-01-13]
      4B2D52B0771FA33A1896B699DA5131795788087D
uid           [ expired] VideoLAN Release Signing Key (2009)

Of course I will remove that VLC key... but for now I've left it in and unmasked it here case it is relevant.

Details

Version
gpg (GnuPG) 2.3.8, libgcrypt 1.10.1

Event Timeline

Are you using the keyboxd ? ("use-keyboxd" in common.conf) or is this using the default pubring.kbx.

This is apublic key and thus no need to remove it because you published its existance. It is also expired.

I don't have common.conf but I do have pubring.kbx. I meant I plan to remove that key from my keyring because it's like a decade old and expired, but I figured maybe it was somehow related to this bug since it's the last key shown, so I've left it in.

There is a utility named kbxutil which can be sued to dump the pubring.kbx file without any post-processing by gpg. I would check whether there are any other keys after the VideoLAN key. iirc, kbxutil ist not commonly installed; you may need to build the software yourself or copy the pubring.kbx to Linux and check it here.

werner claimed this task.

@raysatiro: Please re-open if you are able to give us a reproducer