Page MenuHome GnuPG

Intermittent Failure During GnuPG Test
Closed, ResolvedPublic

Description

Release: 1.9.10

Environment

P4, 3Ghz, 1G RAM, Gentoo Linux, kernel version 2.6.8

gnupg-1.9.10
gpgme-0.4.7
libassuan-0.6.6
libgcrypt-1.1.94
libgpg-error-1.0
libksba-0.9.8
pth-1.4.0

Description

I issue the following command:

echo "test" | gpg -ase -r 0x50B8387F | gpg

About 80% of the time, I receive the following message:

gpg: NOTE: THIS IS A DEVELOPMENT VERSION!
gpg: It is only intended for test purposes and should NOT be
gpg: used in a production environment or with production keys!

You need a passphrase to unlock the secret key for
user: "Tim Redman (David & Goliath) <tim@davidandgoliathtees.com>"
1024-bit DSA key, ID 50B8387F, created 2004-03-29

gpg: NOTE: THIS IS A DEVELOPMENT VERSION!
gpg: It is only intended for test purposes and should NOT be
gpg: used in a production environment or with production keys!
gpg: ath.c:201: _gcry_ath_mutex_unlock: Assertion `*lock == ((ath_mutex_t) 1)' failed.
gpg: processing message failed: Unknown system error

It prompts me for my password only once, presumably during the encryption/signing.

The other 20% of the time, I get:

gpg: NOTE: THIS IS A DEVELOPMENT VERSION!
gpg: It is only intended for test purposes and should NOT be
gpg: used in a production environment or with production keys!

You need a passphrase to unlock the secret key for
user: "Tim Redman (David & Goliath) <tim@davidandgoliathtees.com>"
1024-bit DSA key, ID 50B8387F, created 2004-03-29

gpg: NOTE: THIS IS A DEVELOPMENT VERSION!
gpg: It is only intended for test purposes and should NOT be
gpg: used in a production environment or with production keys!

You need a passphrase to unlock the secret key for
user: "Tim Redman (David & Goliath) <tim@davidandgoliathtees.com>"
1024-bit ? key, ID D0FE3E8C, created 2004-03-29 (main key ID 50B8387F)

gpg: encrypted with 1024-bit [?] key, ID D0FE3E8C, created 2004-03-29

"Tim Redman (David & Goliath) <tim@davidandgoliathtees.com>"

test
gpg: Signature made Thu Sep 16 09:23:07 2004 EDT using DSA key ID 50B8387F
gpg: Good signature from "Tim Redman (David & Goliath) <tim@davidandgoliathtees.com>"

That comes with up to two prompts from pinentry-qt, depending on whether or not the password is cached.

How To Repeat

See description.

Fix

Don't use the gpg part of gnupg 1.9. There is a reason why it gets installed under the name gpg2; this allows to install 1.2 or 1.3 versions along with the 1.9 version. he gpg part is not as matured as gpgsm in theat branch.

Event Timeline

werner added a subscriber: werner.

Using gpg from gnupg 1.9 is not suggested.