GNOME Bugzilla – Bug 599882
Crash in em_folder_tree_select_prev_path() when wrapping to bottom
Last modified: 2013-09-13 01:06:08 UTC
Evolution 2.29.1 I searched for a string in an Inbox of an IMAP provider, without cleaning search pattern, i navigated to local folder tree and evolution closed. (evolution:5333): Gtk-CRITICAL **: gtk_tree_store_get_path: assertion `iter->stamp == tree_store->stamp' failed (evolution:5333): Gtk-CRITICAL **: gtk_tree_path_to_string: assertion `path != NULL' failed (evolution:5333): Gtk-CRITICAL **: gtk_tree_model_get_iter_from_string: assertion `path_string != NULL' failed (evolution:5333): Gtk-CRITICAL **: gtk_tree_store_get_value: assertion `VALID_ITER (iter, tree_store)' failed (evolution:5333): GLib-GObject-WARNING **: gtype.c:3940: type id `0' is invalid (evolution:5333): GLib-GObject-WARNING **: can't peek value table for type `<invalid>' which is not currently referenced Program received signal SIGSEGV, Segmentation fault. 0xb71ef6f2 in IA__gtk_tree_model_get_valist (tree_model=0x809f580, iter=0xbfffc7c8, var_args=0xbfffc78c "����������\016�����m'\r�") at gtktreemodel.c:1443 1443 G_VALUE_LCOPY (&value, var_args, 0, &error); (gdb) t a a bt
+ Trace 218630
Thread 1 (Thread 0xb63a2720 (LWP 5333))
I see you were using the "Magic Backspace" feature (like "Magic Spacebar" in reverse). Looks like a bug in the algorithm that tries to walk backward through the folder tree checking unread counts as it goes (em_folder_tree_select_prev_path). It seems to not take into consideration the fact that you can't walk backwards indefinitely -- eventually you do reach the top.
Oh good, I just reproduced this with the exact same terminal warnings. Basically, pick a folder such that neither it nor the folders above it have unread messages. Select a message and hit backspace. Crash.
The crash also occurs on 2.28. That algorithm was leaking memory like crazy, so I fixed both the leaks and the crasher and cleaned up the code a bit. http://git.gnome.org/cgit/evolution/commit/?id=5a7992dca23eabdad214ae8f80f6050024d912d9 http://git.gnome.org/cgit/evolution/commit/?h=gnome-2-28&id=91e0696b738ecc991f8b6c33442040de4fec1873