GNOME Bugzilla – Bug 363261
Crash when locking sheet during cell edit
Last modified: 2006-10-19 18:20:49 UTC
This might not be a bug with Gnumeric (based on the backtrace), but it seemed best to file it here first. Steps to reproduce: - Type '1' in A1 - While still editing the cell, right-click on the 'Sheet1' tab - Select 'Manage Sheets...' - Click on the lock icon for Sheet2 Backtrace: Program received signal SIGSEGV, Segmentation fault.
+ Trace 77056
Thread NaN (LWP 4438)
Verified with HEAD of gtk 2.8 branch, self compiled on Debian sid. For me, the crashing line is gtktreeview.c:2450 aft_val = tree_view->priv->vadjustment->value; relatively late in gtk_tree_view_button_press tree_view->priv->vadjustment is NULL. Backtrace:
+ Trace 77110
Looks like a gtk bug to me.
Taking this back to gnumeric. The tree view button press handler calls gtk_tree_view_real_set_cursor, which invokes cb_selection_changed in dialog-sheet-order.c, which causes the dialog to be destroyed. At the end of gtk_tree_view_button_press, the dialog no longer exists.
We need to either exit editing when any of those menu entries are selected, or else disable them. By the time we're in the dialog, we are already in a silly state.
Fixed in the development version. The fix will be available in the next major release. Thank you for your bug report.