Upon "save" after setting the expiry date of an old ElGamma2048 Subkey in "gpg --edit-key" an assertion is violated an the application terminated. The output is
gpg> save gpg: Ohhhh jeeee: Assertion "! sig->hashed" in do_signature failed (../../g10/build-packet.c:1508) Aborted
The key in question was created with gpg on a Linux PC in March 2001, DSA1024/ElGamal2048. The error is reliably reproducible on that same key. I can not reproduce the error on a newly created key of the same kind.
Steps to reproduce the error:
(1) Take an old DSA/ElGamal unexpired key secret/public pair in your keyring
(2) gpg --edit-key <key-id>
(3) key 1
(4) expire ...
Expected behaviour: the key is saved and gpg terminates successfully
Observed behaviour: assertion error thrown as above, gpg aborted, leaving lock behind.
If this is an interesting case and you need more data to reproduce the problem, please direct me to resources explaining how to collect the data.