GNOME Bugzilla – Bug 532844
crash in get_message at mail-stub-exchange.c:2448
Last modified: 2008-09-23 15:34:15 UTC
What were you doing when the application crashed? Wasn't doing much, just received an email and was going read it when Evolution crashed. Distribution: Debian lenny/sid Gnome Release: 2.22.1 2008-04-08 (Debian) BugBuddy Version: 2.22.0 System: Linux 2.6.25-1-amd64 #1 SMP Fri Apr 25 14:38:55 UTC 2008 x86_64 X Vendor: The X.Org Foundation X Vendor Release: 10400090 Selinux: No Accessibility: Disabled GTK+ Theme: Clearlooks Icon Theme: gnome Memory status: size: 492978176 vsize: 492978176 resident: 74461184 share: 11444224 rss: 74461184 rss_rlim: 18446744073709551615 CPU usage: start_time: 1210606225 rtime: 729 utime: 646 stime: 83 cutime:0 cstime: 0 timeout: 0 it_real_value: 0 frequency: 100 Backtrace was generated from '/usr/lib/bug-buddy/evolution-exchange-storage' [Thread debugging using libthread_db enabled] [New Thread 0x7fa6380e07a0 (LWP 4177)] [New Thread 0x41b59950 (LWP 4180)] 0x00007fa630973edf in waitpid () from /lib/libpthread.so.0
+ Trace 197572
Thread 1 (Thread 0x7fa6380e07a0 (LWP 4177))
----------- .xsession-errors (599 sec old) --------------------- SWFDEC: ERROR: swfdec_button.c(202): tag_func_define_button_2: graphic for id 404 not found SWFDEC: ERROR: swfdec_button.c(202): tag_func_define_button_2: graphic for id 405 not found Unsupported movie property quality with value "high" Unsupported movie property name with value "lock" Unsupported movie property allowscriptaccess with value "sameDomain" Unsupported movie property pluginspage with value "http://www.macromedia.com/go/getflashplayer" Unsupported movie property align with value "middle" unhandled event 19 Loading stream: https://dev/login/lock.swf Header value = 'Content-Type' Header value = 'Content-Type' (evolution:4166): gtkhtml-WARNING **: Cannot create spell dictionary instance (iid:OAFIID:GNOME_Spell_Dictionary:0.3) (evolution:4166): Bonobo-WARNING **: Activation exception 'Failed to activate 'OAFIID:GNOME_Spell_Control:0.3'' --------------------------------------------------
Ran into this today as well; I think it's the same bug. See my report on Launchpad: https://bugs.launchpad.net/ubuntu/+source/evolution-exchange/+bug/236781 I think the problem is that e2k_context_get() is returning an error code, that is not being checked for. Instead the code simply tries to access the response pointer which, because of the error, is not filled in. I don't know anything about this code so I can't say WHY e2k_context_get() failed in the first place: what that might mean or what the code should do when it happens.
Hm, it turns out the return code is the HTTP result code. In my case I'm getting 403: Forbidden. I don't know why, but in any event it's quite wrong for Evo Exchange to simply core dump here! The URI I'm trying to get to is this (anonymized): (gdb) p *mse $4 = {parent = {parent = {g_type_instance = {g_class = 0x80f21c8}, ref_count = 3, qdata = 0x0}, channel = 0x80f5270, cmd = 0x80ef848, status = 0x80f2ec0}, account = 0x80eb550, ctx = 0x80f2d90, folders_by_name = 0x80e2568, mail_submission_uri = 0x811e2e8 "https://webmail.mycorp.com/exchange/psmith/%23%23DavMailSubmissionURI%23%23/", inbox = 0x80efd18, deleted_items = 0x80efd30, new_folder_id = 284, removed_folder_id = 285, ignore_new_folder = 0x0, ignore_removed_folder = 0x0} So, https://webmail.mycorp.com/exchange/psmith/%23%23DavMailSubmissionURI%23%23/ If I try to browse to that URI with my browser (after logging in to webmail), I get: The page cannot be found The page you are looking for might have been removed, had its name changed, or is temporarily unavailable. which is 404, not 403. I don't know what any of this means but hopefully someone else does.
Created attachment 111959 [details] [review] Potential fix for core dump OK, further examination of the code leads me to this patch, which seems to fix the problem for me (anyway I don't get core dumps anymore).
Bharath, you need to test/review this asap. Thanks
Perfect fix. Once we know that, it's a bad case we can just goto the error handling code instead of trying to process the response. But why e2k_get_context() would return the error I'll try to find out. Haven't been hit by this bug but definitely a bug. The attached patch would nail this. Thanks for all the debugging Paul.
The only thing I can assume is that there was some kind of glitch on the Exchange HTTP server such that it returned these error codes. That's about the sum total extent of my knowledge of Exchange servers :-) Thanks.
Committed to Trunk as r1679 Committed to Stable as r1680
*** Bug 537417 has been marked as a duplicate of this bug. ***
FYI, I found a way to reproduce this, but it requires two different accounts both configured with the same Exchange account. On the first account, start up Evolution and read your mail. On the second account, start up Evo and delete some message in your inbox. Go back to the first account and try to select the message that you deleted. When I try this, the HTTP return code is 404 and Evo crashes as above. The fix I posted does resolve it though.
*** Bug 528564 has been marked as a duplicate of this bug. ***
*** Bug 542261 has been marked as a duplicate of this bug. ***
*** Bug 470001 has been marked as a duplicate of this bug. ***
*** Bug 520677 has been marked as a duplicate of this bug. ***
*** Bug 522961 has been marked as a duplicate of this bug. ***
*** Bug 533902 has been marked as a duplicate of this bug. ***
*** Bug 531749 has been marked as a duplicate of this bug. ***