After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 315012 - crash when reopening an encrypted sent email
crash when reopening an encrypted sent email
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
2.8.x (obsolete)
Other Linux
: High critical
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
: 322862 342279 346623 378776 382554 423392 438415 440836 442672 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-09-01 11:10 UTC by C Shilpa
Modified: 2013-09-10 13:49 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
give the full medium to the decrypt function (3.53 KB, patch)
2007-04-01 00:49 UTC, Pascal Terjan
committed Details | Review

Description C Shilpa 2005-09-01 11:10:10 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:

Thread 1 (Thread 1097744000 (LWP 17947))

  • #0 ??
  • #1 ??
  • #2 ??
  • #3 ??
  • #4 __waitpid_nocancel
    from /lib/tls/libpthread.so.0
  • #5 gnome_init_with_popt_table
    from /opt/gnome/lib/libgnomeui-2.so.0
  • #6 segv_redirect
    at main.c line 424
  • #7 <signal handler called>
  • #8 camel_mime_part_get_content_type
    at camel-mime-part.c line 683
  • #9 gpg_decrypt
    at camel-gpg-context.c line 1632
  • #10 camel_cipher_decrypt
    at camel-cipher-context.c line 258
  • #11 handle_multipart_encrypted
    at e-msg-composer.c line 3973
  • #12 e_msg_composer_new_with_message
    at e-msg-composer.c line 4390
  • #13 edit_message
    at em-composer-utils.c line 726
  • #14 edit_messages
    at em-composer-utils.c line 762
  • #15 get_messages_got
    at mail-ops.c line 1881
  • #16 mail_msgport_replied
    at mail-mt.c line 447
  • #17 g_io_channel_unix_get_fd
    from /opt/gnome/lib/libglib-2.0.so.0
  • #18 g_main_context_dispatch
    from /opt/gnome/lib/libglib-2.0.so.0
  • #19 g_main_context_acquire
    from /opt/gnome/lib/libglib-2.0.so.0
  • #20 g_main_loop_run
    from /opt/gnome/lib/libglib-2.0.so.0
  • #21 bonobo_main
    from /opt/gnome/lib/libbonobo-2.so.0
  • #22 main
    at main.c line 602
  • #0 ??

Comment 1 André Klapper 2006-07-05 10:17:48 UTC
happens with all emails, not only groupwise.
Comment 2 André Klapper 2006-07-05 10:18:05 UTC
*** Bug 342279 has been marked as a duplicate of this bug. ***
Comment 3 André Klapper 2006-07-05 10:18:09 UTC
*** Bug 346623 has been marked as a duplicate of this bug. ***
Comment 4 Sebastien Bacher 2006-07-06 09:31:52 UTC
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
Comment 5 Harish Krishnaswamy 2006-08-10 12:59:45 UTC
Set target milestone to 2.8
Comment 6 parthasarathi susarla 2006-11-14 20:46:01 UTC
*** Bug 322862 has been marked as a duplicate of this bug. ***
Comment 7 André Klapper 2006-12-06 01:14:55 UTC
*** Bug 378776 has been marked as a duplicate of this bug. ***
Comment 8 André Klapper 2006-12-06 01:15:04 UTC
*** Bug 382554 has been marked as a duplicate of this bug. ***
Comment 9 Pascal Terjan 2007-03-27 16:41:19 UTC
*** Bug 423392 has been marked as a duplicate of this bug. ***
Comment 10 Pascal Terjan 2007-03-31 22:48:39 UTC
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...
Comment 11 Pascal Terjan 2007-04-01 00:49:42 UTC
Created attachment 85634 [details] [review]
give the full medium to the decrypt function

Here is a patch on evolution fixing the crash for me
Comment 12 André Klapper 2007-04-03 16:57:27 UTC
*** Bug 425846 has been marked as a duplicate of this bug. ***
Comment 13 Srinivasa Ragavan 2007-05-12 09:33:45 UTC
Ping :)
Comment 14 Stefano Maffulli 2007-05-23 10:47:42 UTC
The bug is still present in evo 2.10. This is very annoying :(
Comment 15 palfrey 2007-05-28 16:38:02 UTC
*** Bug 440836 has been marked as a duplicate of this bug. ***
Comment 16 Srinivasa Ragavan 2007-06-01 18:23:25 UTC
I have pushed this to stable and head. 2.11.3 and 2.10.3 should feature this.

Comment 17 palfrey 2007-06-03 21:15:28 UTC
*** Bug 438415 has been marked as a duplicate of this bug. ***
Comment 18 Karsten Bräckelmann 2007-06-30 23:36:36 UTC
*** Bug 442672 has been marked as a duplicate of this bug. ***