GNOME Bugzilla – Bug 682020
Crash when fetching GAL list in account properties
Last modified: 2013-01-07 12:00:04 UTC
When trying to fetch the GAL so that it can be used offline causes a segfault. System is openSUSE 12.2 x86_64 with evolution-3.4.3 evolution-data-server-3.4.3 evolution-ews-3.4.2. Trace is below: Program received signal SIGSEGV, Segmentation fault. e_ews_get_msg_for_url (url=<optimized out>, buf=buf@entry=0x0) at e-ews-connection.c:1487 1487 e-ews-connection.c: No such file or directory.
+ Trace 230684
Thread 1 (Thread 0x7ffff7fb9980 (LWP 14005))
Not a plugin => EWS
Thanks for a bug report. Can you still reproduce this, please? The best if tested with 3.4.4, but not necessary. I'm wondering what the 'url' being used in the function which crashed is, though the compiler optimized it out, unfortunately. I see the code for 3.6.0 is not the same as the one in 3.4.3, thus maybe it is already fixed for the next release. By the way, did you get this crash the first time you was adding the account into evolution, or when you edited account which was already working?
Yes, I can reproduce the issue both on openSUSE running 3.4.3 and Ubuntu which is running the older 3.2.3. I'm trying to see if 3.4.4 is going to get pushed out for openSUSE or if we're waiting for 3.6.0. I got this issue both on a new setup and also when editing. This is the only issue I have with -ews, everything else works fine.
Thanks for the update. I may note what I did here: a) start evolution with ews account enabled b) wait until the initial message fetching is done (basically the status bar is empty) c) Edit -> Preferences -> Mail Accounts -> select <EWS account> -> Edit -> select "Receiving Options" tab -> check "Cache offline address book", and then finally click "Fetch List" - then the function is called. This doesn't crash here, because I have filled OAB URL from "Receiving Email" tab. What do you have filled there, please? Either the OAB URL is empty, or it is invalid, I would say. Please change any private information within the URL with 'x' letter, but only characters between a-zA-Z0-9, thus any special letters will be kept there.
We had a chat on IRC and it turned out that this crash happens when the OAB URL is filled with an invalid URL, like if I type there "a a" (quotes for clarity only), and then go to Receiving Email tab and click "Fetch List", then evolution crashes. Thus I'm confirming the bug.
Created attachment 222941 [details] [review] ews patch for evolution-ews; This fixes the crash when user clicks "Fetch List" on "Receiving Options" tab with non-URL being filled in OAB URL on "Receiving Email" tab.
Created commit 2d98e86 in ews master (3.5.91+)
Downstream bug report about the same from 3.4.4: https://bugzilla.redhat.com/show_bug.cgi?id=890670