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 532844 - crash in get_message at mail-stub-exchange.c:2448
crash in get_message at mail-stub-exchange.c:2448
Status: RESOLVED FIXED
Product: Evolution Exchange
Classification: Deprecated
Component: Connector
2.22.x
Other All
: High critical
: ---
Assigned To: Connector Maintainer
Ximian Connector QA
: 470001 520677 522961 528564 531749 533902 537417 542261 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-05-12 21:15 UTC by Damien Grassart
Modified: 2008-09-23 15:34 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
Potential fix for core dump (957 bytes, patch)
2008-06-02 14:17 UTC, Paul Smith
committed Details | Review

Description Damien Grassart 2008-05-12 21:15:48 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

Thread 1 (Thread 0x7fa6380e07a0 (LWP 4177))

  • #0 waitpid
    from /lib/libpthread.so.0
  • #1 IA__g_spawn_sync
    at /tmp/buildd/glib2.0-2.16.3/glib/gspawn.c line 374
  • #2 IA__g_spawn_command_line_sync
    at /tmp/buildd/glib2.0-2.16.3/glib/gspawn.c line 682
  • #3 ??
    from /usr/lib/gtk-2.0/modules/libgnomebreakpad.so
  • #4 <signal handler called>
  • #5 raise
    from /lib/libc.so.6
  • #6 abort
    from /lib/libc.so.6
  • #7 IA__g_logv
    at /tmp/buildd/glib2.0-2.16.3/glib/gmessages.c line 497
  • #8 IA__g_log
    at /tmp/buildd/glib2.0-2.16.3/glib/gmessages.c line 517
  • #9 IA__g_malloc
    at /tmp/buildd/glib2.0-2.16.3/glib/gmem.c line 135
  • #10 IA__g_strndup
    at /tmp/buildd/glib2.0-2.16.3/glib/gstrfuncs.c line 145
  • #11 get_message
    at mail-stub-exchange.c line 2448
  • #12 connection_handler
    at mail-stub.c line 271
  • #13 IA__g_main_context_dispatch
    at /tmp/buildd/glib2.0-2.16.3/glib/gmain.c line 2009
  • #14 g_main_context_iterate
    at /tmp/buildd/glib2.0-2.16.3/glib/gmain.c line 2642
  • #15 IA__g_main_loop_run
    at /tmp/buildd/glib2.0-2.16.3/glib/gmain.c line 2850
  • #16 bonobo_main
    from /usr/lib/libbonobo-2.so.0
  • #17 main
    at main.c line 238
  • #0 waitpid
    from /lib/libpthread.so.0


----------- .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''
--------------------------------------------------
Comment 1 Paul Smith 2008-06-02 13:10:31 UTC
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.
Comment 2 Paul Smith 2008-06-02 13:59:00 UTC
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.
Comment 3 Paul Smith 2008-06-02 14:17:02 UTC
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).
Comment 4 Srinivasa Ragavan 2008-06-03 06:47:32 UTC
Bharath, you need to test/review this asap. Thanks
Comment 5 Bharath Acharya 2008-06-03 14:06:47 UTC
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.
Comment 6 Paul Smith 2008-06-03 15:21:54 UTC
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.
Comment 7 Bharath Acharya 2008-06-07 14:21:41 UTC
Committed to Trunk  as r1679
Committed to Stable as r1680
Comment 8 Johnny Jacob 2008-06-09 17:26:02 UTC
*** Bug 537417 has been marked as a duplicate of this bug. ***
Comment 9 Paul Smith 2008-07-09 19:40:30 UTC
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.
Comment 10 Akhil Laddha 2008-07-10 03:31:07 UTC
*** Bug 528564 has been marked as a duplicate of this bug. ***
Comment 11 Akhil Laddha 2008-07-10 04:27:06 UTC
*** Bug 542261 has been marked as a duplicate of this bug. ***
Comment 12 Milan Crha 2008-09-23 15:31:12 UTC
*** Bug 470001 has been marked as a duplicate of this bug. ***
Comment 13 Milan Crha 2008-09-23 15:31:44 UTC
*** Bug 520677 has been marked as a duplicate of this bug. ***
Comment 14 Milan Crha 2008-09-23 15:32:31 UTC
*** Bug 522961 has been marked as a duplicate of this bug. ***
Comment 15 Milan Crha 2008-09-23 15:33:03 UTC
*** Bug 533902 has been marked as a duplicate of this bug. ***
Comment 16 Milan Crha 2008-09-23 15:34:15 UTC
*** Bug 531749 has been marked as a duplicate of this bug. ***