GnuPG race causes misordered uids?

Marcus Brinkmann Marcus.Brinkmann at ruhr-uni-bochum.de
Mon May 5 01:19:03 CEST 2003


Hi,

in the GPGME test suite, one out of a couple dozen runs I see a wrong result
in the keylist tests.

This is because now I check the user ids and other key attributes, and not
always gpg puts the primary user ID first.  I have seen one of the other two
ids being listed first as well.

This doesn't happen very often, and I could not reproduce this outside of
the gpg test suite.  However, I run the test suite with GPGME_DEBUG=3, and
thus I could see that gpg returns the data in that way, and it is not a bug
in GPGME.  This is an excerpt from a normal run:

posix-io.c:59: fd 5: got 1024 bytes
fd 5: got ./pubring.gpg
-------------
pub:-:1024:17:2D727CC768697734:920882846:::-:::scESC:
fpr:::::::::A0FF4590BB6122EDEF6E3C542D727CC768697734:
uid:-::::::::Alpha Test (demo key) <alpha at example.net>:
uid:-::::::::Alice (demo key):
uid:-::::::::Alfa Test (demo key) <alfa at example.net>:
sub:-:1024:16:6AE6D7EE46A871F8:920882959::::::e:
fpr:::::::::3B3FBC948FE59301ED629EFB6AE6D7EE46A871F8:
pub:-:1024:17:413F4AF31AFDAB6C:920883303:::-:::scESC:
fpr:::::::::61EE841A2A27EB983B3B3C26413F4AF31AFDAB6C:

This is an excerpt from a failing run:

posix-io.c:59: fd 5: got 1024 bytes
fd 5: got ./pubring.gpg
-------------
pub:-:1024:17:2D727CC768697734:920882846:::-:::scESC:
fpr:::::::::A0FF4590BB6122EDEF6E3C542D727CC768697734:
uid:-::::::::Alfa Test (demo key) <alfa at example.net>:
uid:-::::::::Alpha Test (demo key) <alpha at example.net>:
uid:-::::::::Alice (demo key):
sub:-:1024:16:6AE6D7EE46A871F8:920882959::::::e:
fpr:::::::::3B3FBC948FE59301ED629EFB6AE6D7EE46A871F8:
pub:-:1024:17:413F4AF31AFDAB6C:920883303:::-:::scESC:
fpr:::::::::61EE841A2A27EB983B3B3C26413F4AF31AFDAB6C:

I have also seen Alice being listed first.

I have not the slightest idea what is causing this.

Thanks,
Marcus

-- 
`Rhubarb is no Egyptian god.' GNU      http://www.gnu.org    marcus at gnu.org
Marcus Brinkmann              The Hurd http://www.gnu.org/software/hurd/
Marcus.Brinkmann at ruhr-uni-bochum.de
http://www.marcus-brinkmann.de/




More information about the Gnupg-devel mailing list