GNOME Bugzilla – Bug 315012
crash when reopening an encrypted sent email
Last modified: 2013-09-10 13:49:47 UTC
Version details: 2.4 Distribution/Version: SuSE 9.3 Open the compose mail window. Select PGP encrypt from the Security menu. Enter an email id whose public key is present in your database. Enter the subject and body of the mail and click on send. It goes to the outbox. Before the mail is sent goto the outbox and select the mail. It prompts for the passphrase. Click on cancel in the passphrase prompt dialog and try to open the mail by double-clicking on it. Evolution crashes. When the mail is selected from the outbox, evolution fails to send the message and pops-up an error dialog saying 'Unknown error while performing operation' Here is the stack trace:
+ Trace 62698
Thread 1 (Thread 1097744000 (LWP 17947))
happens with all emails, not only groupwise.
*** Bug 342279 has been marked as a duplicate of this bug. ***
*** Bug 346623 has been marked as a duplicate of this bug. ***
Ubuntu bug about that: https://launchpad.net/distros/ubuntu/+source/evolution/+bug/45113 That happens for different users with 2.7, updating the version according to that
Set target milestone to 2.8
*** Bug 322862 has been marked as a duplicate of this bug. ***
*** Bug 378776 has been marked as a duplicate of this bug. ***
*** Bug 382554 has been marked as a duplicate of this bug. ***
*** Bug 423392 has been marked as a duplicate of this bug. ***
The reason of the crash is that gpg_decrypt receives as ipart a CamelMultipartEncrypted and not a CamelMedium. By replacing (CamelMedium *) with CAMEL_MEDIUM I got the following nice warning : (evolution-2.10:14161): camel-WARNING **: Object 0x8f86ec8 (class 'CamelMultipartEncrypted') doesn't have 'medium' in its hierarchy I did the following workaround to test : if(CAMEL_IS_MEDIUM(ipart)) { content = camel_medium_get_content_object(CAMEL_MEDIUM(ipart)); } else { content=ipart; } and it works fine. Now I'll try to find why the ipart is wrong, stay tuned...
Created attachment 85634 [details] [review] give the full medium to the decrypt function Here is a patch on evolution fixing the crash for me
*** Bug 425846 has been marked as a duplicate of this bug. ***
Ping :)
The bug is still present in evo 2.10. This is very annoying :(
*** Bug 440836 has been marked as a duplicate of this bug. ***
I have pushed this to stable and head. 2.11.3 and 2.10.3 should feature this.
*** Bug 438415 has been marked as a duplicate of this bug. ***
*** Bug 442672 has been marked as a duplicate of this bug. ***