[pkg-gnupg-maint] Bug#841143: Bug#841143: Suspected race in gpg1 to gpg2 conversion or agent startup
Ian Jackson
ijackson at chiark.greenend.org.uk
Sat Oct 22 15:15:25 UTC 2016
Ian Jackson writes ("Re: [pkg-gnupg-maint] Bug#841143: Suspected race in gpg1 to gpg2 conversion or agent startup"):
> I haven't tried to narrow the test case. I'm not 100% sure that
> concurrent execution of different gnupg instances is necessary.
> My replication is with the dgit test suite, which does run dgit but
> only in a self-contained way.
I straced a migration run in the hope that I might spot something
obvious. I see an awful lot of very complicated activity which seems
to be creating lockfiles with link(). It is quite difficult to make a
reliable locking scheme with link(). I would have recommended flock
or fcntl.
I'm afraid I don't have time now to investigate the gnupg2 source
code. For now I will arrange for my test suite to cause the migration
to happen once for the whole test suite.
Thanks,
Ian.
--
Ian Jackson <ijackson at chiark.greenend.org.uk> These opinions are my own.
If I emailed you from an address @fyvzl.net or @evade.org.uk, that is
a private address which bypasses my fierce spamfilter.
More information about the pkg-gnupg-maint
mailing list