Under some circumstances, gpgsm 2.0.3 inserts debug output into the
stream with the encrypted data. This results in emails that cannot be
decrypted because the format of the data is wrong. The attached file
allow-coredump-sample-mail.txt contains a such a mail. If you base64
decode the body you'll see that some debug output precedes the binary
encrypted data.
The following conditions are necessary AFAICT for the bug to occur:
- ~/.gnupg/gpgsm.conf contains among other things:
debug-allow-core-dump debug-level guru
Without debug-allow-core-dump it doesn't happen at all. The debug level needs to be sufficiently high, so that the debug output that ends up in the encrypted stream is actually generated in the first place. - I've only been able to reproduce it when gpgsm is used from Kontact (using version proko2.1.6 from proko2 branch). I've not been able to reproduce it with gpgsm on the command line.
- During the experiments I temporarily had set GPGME_DEBUG, bug while that was set, the problem didn't occur anymore. So *not* setting GPGME_DEBUG seems to be required too.