GNOME Bugzilla – Bug 632050
Crashing when selecting other sheet
Last modified: 2010-10-13 19:26:40 UTC
Created attachment 172251 [details] gnumeric-bug-report Any existing file opens correctly but Gnumeric crashes when attempting to access another sheet within the same file . This also happens when right-clicking another sheet. Instead of opening any other sheet, it crashes. This does NOT happen whith a newly created file. OS: Ubuntu (10.10) System: Linux 2.6.35-22-generic #34-Ubuntu SMP Sun Oct 10 09:24:00 UTC 2010 i686 It IS possible to work on the first sheet, save etc. It is also possible to right-click the first sheet, insert a new one and edit it. This problem seems to be around after upgrading to Ubuntu version 10.10
That sounds bad. There is not a lot of information in the attachment to show us what is going on. Can you please attach a file for which this happens? If the file is mildly confidential, you can email terra@gnome.org and I'll delete it after diagnosing. Alternatively, running under valgrind might produce useful information: G_SLICE=always-malloc valgrind --num-callers=20 /path/to/gnumeric file.gnumeric
File received. Problems reproduced. On sheet change, I see: ==25333== Invalid read of size 4 ==25333== at 0x4F3A128: sv_selection_intersects_filter_rows (sheet-view.c:706) ==25333== by 0x4F85C70: wbcg_menu_state_update (wbc-gtk.c:1612) ==25333== by 0x4F7B4EB: wb_view_menus_update (workbook-view.c:342) ==25333== by 0x4F7BA94: wb_view_sheet_focus (workbook-view.c:173) ==25333== by 0x4F88DC2: cb_notebook_switch_page (wbc-gtk.c:926) ==25333== by 0x87C063D: g_closure_invoke (in /usr/lib64/libgobject-2.0.so.0.2200.4) ==25333== by 0x87D5FFF: ??? (in /usr/lib64/libgobject-2.0.so.0.2200.4) ==25333== by 0x87D6DC8: g_signal_emit_valist (in /usr/lib64/libgobject-2.0.so.0.2200.4) ==25333== by 0x87D7312: g_signal_emit (in /usr/lib64/libgobject-2.0.so.0.2200.4) ==25333== by 0x4F87460: cb_sheet_label_button_press (wbc-gtk.c:596) ==25333== by 0x69969F7: ??? (in /usr/lib64/libgtk-x11-2.0.so.0.1800.6) ==25333== by 0x87C063D: g_closure_invoke (in /usr/lib64/libgobject-2.0.so.0.2200.4) ==25333== Address 0xc is not stack'd, malloc'd or (recently) free'd However, already on load I see: ** (/home/welinder/gnome-src/gnumeric/src/.libs/gnumeric:25333): CRITICAL **: eval_pos_init_sheet: assertion `IS_SHEET (sheet)' failed ** (/home/welinder/gnome-src/gnumeric/src/.libs/gnumeric:25333): CRITICAL **: selection_first_range: assertion `l != NULL && l->data != NULL' failed ** (/home/welinder/gnome-src/gnumeric/src/.libs/gnumeric:25333): CRITICAL **: range_is_sane: assertion `range != NULL' failed ** (/home/welinder/gnome-src/gnumeric/src/.libs/gnumeric:25333): CRITICAL **: item_cursor_bound_set: assertion `range_is_sane (new_bound)' failed ** (/home/welinder/gnome-src/gnumeric/src/.libs/gnumeric:25333): CRITICAL **: selection_first_range: assertion `l != NULL && l->data != NULL' failed First critical is here: Breakpoint 1, 0x00007ffff3d8b060 in g_log () from /usr/lib64/libglib-2.0.so.0 (gdb) where
+ Trace 224138
The "selection" record in there seems to be invalid. What program generated this file? I have fixed the crash. I still see one CRITICAL: ** (/home/welinder/gnome-src/gnumeric/src/.libs/gnumeric:28221): CRITICAL **: eval_pos_init_sheet: assertion `IS_SHEET (sheet)' failed
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.