Bug #5486 Crash in Restore from Backup
Submitted: 9 Sep 2004 4:03 Modified: 24 Nov 2004 4:49
Reporter: [ name withheld ] Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Administrator Severity:S3 (Non-critical)
Version:1.0.12 OS:Linux (Debian/Linux)
Assigned to: Alfredo Kojima CPU Architecture:Any

[9 Sep 2004 4:03] [ name withheld ]
Description:
Partial bt,

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1089093920 (LWP 1807)]
free_backup_table_content (t=0x1732) at myx_backup.c:1833
1833      g_free(t->schema);
Current language:  auto; currently c
(gdb) bt
#0  free_backup_table_content (t=0x1732) at myx_backup.c:1833
#1  0x0810f8ab in myx_free_backup_content (backup=0x84583d8) at myx_backup.c:859
#2  0x080f69ed in MARestorePanel::file_selected (this=0x82c01e0, sender=0x8432c60, node=@0xbfffe610)
    at MARestorePanel.cc:394
#3  0x080f931c in SigC::ObjectSlot2_<void, MGBrowserList*, Gtk::TreeIter const&, MARestorePanel>::proxy (
    p1=@0x18c943f8, p2=@0x18c943f8, s=0x8362e78) at object_slot.h:138
#4  0x0812cc33 in SigC::Signal2<void, MGBrowserList*, Gtk::TreeIter const&, SigC::Marshal<void> >::emit_ (
    p1=@0xbfffe6fc, p2=@0xbfffe700, data=0x18c943f8) at signal.h:761
#5  0x0812c35e in MGBrowserList::list_selection_changed (this=0x8432c60) at signal.h:726
#6  0x0812ce6c in SigC::ObjectSlot0_<void, MGBrowserList>::proxy (s=0x8432678) at object_slot.h:62
#7  0x408d90e5 in Glib::SignalProxyNormal::slot0_void_callback () from /usr/lib/libglibmm-2.0.so.1
#8  0x40a22121 in g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0
#9  0x40a0dc20 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#10 0x40a21aa5 in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0
#11 0x40a20be7 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#12 0x40a20ee4 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#13 0x40796eae in _gtk_tree_selection_internal_select_node () from /usr/lib/libgtk-x11-2.0.so.0
#14 0x407b0fd4 in gtk_tree_view_set_reorderable () from /usr/lib/libgtk-x11-2.0.so.0
#15 0x407a1815 in gtk_tree_view_get_type () from /usr/lib/libgtk-x11-2.0.so.0
#16 0x404a7ee9 in Gtk::Widget::on_button_press_event () from /usr/lib/libgtkmm-2.0.so.1
#17 0x0812c42d in MGBrowserList::CustomTreeView::on_button_press_event (this=0x8432790, ev=0x83af2a0)
    at MGBrowserList.cc:351
#18 0x404a0ab2 in Gtk::Widget_Class::button_press_event_callback () from /usr/lib/libgtkmm-2.0.so.1
#19 0x406cc664 in _gtk_marshal_BOOLEAN__BOXED () from /usr/lib/libgtk-x11-2.0.so.0
#20 0x40a0dfb7 in g_cclosure_new_swap () from /usr/lib/libgobject-2.0.so.0
#21 0x40a0dc20 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#22 0x40a21655 in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0
#23 0x40a209be in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#24 0x40a20ee4 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#25 0x407cb367 in gtk_widget_send_expose () from /usr/lib/libgtk-x11-2.0.so.0
#26 0x406cac02 in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
#27 0x406c9956 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#28 0x40939195 in _gdk_events_queue () from /usr/lib/libgdk-x11-2.0.so.0
#29 0x40a6a932 in g_main_depth () from /usr/lib/libglib-2.0.so.0

How to repeat:
1. touch /tmp/a.sql; touch /tmp/b.sql
2. in MA, go to Restore Backup, load one of the files above, and press OK to set the encoding
3. load the second one, but press Cancel at the encoding
4. click on the first file. Segfault.
[16 Nov 2004 6:55] [ name withheld ]
I can still reproduce this with 1.0.14.
[24 Nov 2004 4:49] Alfredo Kojima
I have tried reproducing this with current development version but couldn't reproduce. I'll assume it was fixed as a side-effect of another change and close the bug.
Thank you for the report.