GNOME Bugzilla – Bug 359236
Evolution 2.8.1 crashes on startup
Last modified: 2007-05-02 09:07:53 UTC
Evolution 2.8.1 segfaulted on me while switching to an IMAP folder. Now I'm getting the same crash everytime I try to start Evolution. See the backtrace below. A quick GDB session showed suspicious behavior in e-filter-bar.c:set_property(), when setting PROP_STATE: view_id = xml_get_prop_int (node, "view_id"); scope = xml_get_prop_int (node, "searchscope"); item_id = xml_get_prop_int (node, "item_id"); I'm getting -1 for all three of these variables, which suggests that the XML properties are not present in the search state string. But the logic assumes they are and carries on to use item_id (-1) as an array index, which triggers the segmentation fault. I'm not sure if this is the root problem, though.
Created attachment 73932 [details] Backtrace
The offending code was added just recently: http://cvs.gnome.org/viewcvs/evolution/widgets/misc/e-filter-bar.c?r1=1.57&r2=1.58 CC'ing Srini
Now evolution restores the old save search on per folder basis. Im not able to reproduce it. Could be possible that your cmeta file has some cfg, causing the crash. Could be great if you can attach that particular cmeta file. or atleast the search state in folder_name.cmeta.
Got it. Last time the search was saved, it didnt have these three. (2 are new) The code expected them to be there. *sigh. Can you try this patch Mathew? Thanks for the bug.
Created attachment 73991 [details] [review] Proposed patch
Srini, the patch seems to fix it. Thanks for the quick turnaround.
Will commit it tomorrow.
Fixed to 2.8
*** Bug 359520 has been marked as a duplicate of this bug. ***
*** Bug 361484 has been marked as a duplicate of this bug. ***
*** Bug 361521 has been marked as a duplicate of this bug. ***
*** Bug 361511 has been marked as a duplicate of this bug. ***
*** Bug 362997 has been marked as a duplicate of this bug. ***
*** Bug 367176 has been marked as a duplicate of this bug. ***
*** Bug 401842 has been marked as a duplicate of this bug. ***