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 311440 - Crashes on particular e-mail
Crashes on particular e-mail
Status: VERIFIED FIXED
Product: evolution
Classification: Applications
Component: Mailer
2.4.x (obsolete)
Other All
: High major
: ---
Assigned To: Not Zed
Evolution QA team
: 309453 314395 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-07-25 00:40 UTC by Nathan Owens
Modified: 2013-09-13 00:48 UTC
See Also:
GNOME target: ---
GNOME version: 2.7/2.8


Attachments
e-mail source that caused Evolution to crash (11.46 KB, text/plain)
2005-07-25 00:45 UTC, Nathan Owens
  Details
fix (1.13 KB, patch)
2005-07-28 02:22 UTC, Not Zed
none Details | Review

Description Nathan Owens 2005-07-25 00:40:45 UTC
Steps to reproduce:
1. Load the e-mail in the attachment (see below)
2. View the e-mail (either by opening it or through the preview pane)
3. Watch it crash.


Stack trace:
stack trace:
  • #0 camel_internet_address_get
    at camel-internet-address.c line 331
  • #1 em_utils_in_addressbook
    at em-utils.c line 1811
  • #2 emfh_gethttp
    at em-format-html.c line 459
  • #3 efh_format_do
    at em-format-html.c line 1329
  • #4 mail_msg_received
    at mail-mt.c line 556
  • #5 thread_dispatch
    at e-msgport.c line 826
  • #6 start_thread
    from /lib/tls/libpthread.so.0
  • #7 clone
    from /lib/tls/libc.so.6

Output in the console window:
(evolution-2.4:24797): camel-CRITICAL **: camel_object_is: assertion `o != NULL'
failed

camel-ERROR **: file camel-internet-address.c: line 331
(camel_internet_address_get): assertion failed: (CAMEL_IS_INTERNET_ADDRESS(addr))
aborting...

Program received signal SIGABRT, Aborted.


The e-mail source will be attached after posting the bug.

Other information:
This was popped off gmail.

What's crashing is that the 'from' address in the message structure becomes NULL
somewhere along the way, and this eventually gets passed to
camel_internet_address_get. camel_internet_address_get tries to asser that addr
is a valid camel internet address, and fails due to addr=0x0. This addr is
supposed to be the 'from' address at this point.

In this message, there are 2 'From:' headers. One has an e-mail address with
valid syntax, the other (which comes later) has nothing after it.
Comment 1 Nathan Owens 2005-07-25 00:45:19 UTC
Created attachment 49694 [details]
e-mail source that caused Evolution to crash

If you load this into an existing folder (either a newly created one with only
this message or append it to one with messages already in it), it will show up.
Then, after viewing it, Evolution will crash. It seems the whole message (or at
least most of it) is necessary to crash Evolution.
Comment 2 Nathan Owens 2005-07-25 00:47:33 UTC
Oh, one other thing. This crash has been happening since May 2005. I'm using
some of the latest stuff from CVS (at least from July 18, 2005) and it's still
crashing. I don't know enough about the mailer component (or e-mail formatting),
or I'd try to create a patch for it myself.
Comment 3 Not Zed 2005-07-28 02:16:22 UTC
workaround: turn off the setting "load images if sender in addressbook"
Comment 4 Not Zed 2005-07-28 02:22:30 UTC
Created attachment 49859 [details] [review]
fix

this bug almost certainly has duplicates too
Comment 5 Not Zed 2005-07-29 01:45:20 UTC
patch applied
Comment 6 Not Zed 2005-08-02 06:29:53 UTC
*** Bug 309453 has been marked as a duplicate of this bug. ***
Comment 7 Not Zed 2005-08-25 05:17:59 UTC
*** Bug 314395 has been marked as a duplicate of this bug. ***