[pkg-gnupg-maint] Bug#831510: Bug#831510: gnupg2: Deletes pub keyring

Kurt Roeckx kurt at roeckx.be
Sun Jul 31 17:24:17 UTC 2016


On Sat, Jul 30, 2016 at 12:58:52PM -0400, Daniel Kahn Gillmor wrote:
> Control: tags 831510 + unreproducible help
> 
> Hi Kurt--
> 
> On Sat 2016-07-16 14:07:44 -0400, Kurt Roeckx wrote:
> > I was running --refresh-keys, I pressed ^C, I tried to start it
> > again, and I get:
> > gpg: signal Interrupt caught ... exiting
> >
> > kurt at intrepid:~$ gpg2 --refresh-keys
> > gpg: keybox '/home/kurt/.gnupg/pubring.kbx' created
> >
> > And of course my pubring.gpg didn't exist anymore.
> >
> > I've had this happen to me several times (with gnupg 1.x too) over
> > the years, and it's of course not reproducable.  In this case I
> > still had a .tmp file I could restore from.
> 
> I'm sorry to hear about this, it's certainly a bad misbehavior -- if
> there was a way to reproduce the problem i'd be happy to hear about it.
> as it stands, i'm not sure what to do about it.  Any suggestions would
> be welcome!

My guess is that there is a race condition.  I would guess that
there are times the file doesn't exist and pressing ^C at that
time does the wrong thing.  For instance it could move the file to
the .bak file and then create a new (or tmp) file, and you would
end up with having no file for some time.


Kurt



More information about the pkg-gnupg-maint mailing list