Re: libgcrypt 1.12.0: g_mime_multipart_encrypted_decrypt failing on i386

NIIBE Yutaka via Gcrypt-devel <[email protected]> Tue, 10 Feb 2026 15:50:57 +0900
Newsgroups gmane.comp.encryption.gpg.libgcrypt.devel
Message-ID <[email protected]>
Hello,

Thank you for your report.

Stuart Henderson wrote:
> The script below replicates the test setup used by notmuch (requires
> gmime and gnupg to be installed).

I build gnupg from master for i386 on a Debian machine (also build npth,
libgpg-error, libgcrypt, libassuan, libksba, and ntbtls).

With this newly built gpg, I can't replicate the failure by running the
_check_session_keys program many times.  (I make sure using the newly
built gnupg i386 version with libgcrypt 1.12.)

Manually decrypting the message (basic-encrypted.eml), by the newly
built gnupg, also gets success.  I can't replicate any failure.

Could you please narrow down the failure?  IIUC, when the
_check_session_keys program fails, invoking gpg must fail too.
If so, debug output of gpg (and/or gpg-agent) helps.
--