Bug #77693 Workbench crash when selecting foreign key field
Submitted: 12 Jul 2015 14:04 Modified: 13 Jul 2015 23:39
Reporter: Romulo Rodrigues Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Workbench: Modeling Severity:S2 (Serious)
Version:6.3.4.0 build 828 64bits OS:Fedora (release 21 (Twenty One))
Assigned to: CPU Architecture:Any
Tags: crash, foreign key, reference field, segmentation fault, workbench

[12 Jul 2015 14:04] Romulo Rodrigues
Description:
When I try to add a foreign key that points to a referenced field at another EER Diagram Table, Workbench shuts off. No message or any error beyond the terminal message of segmentation fault and some memory dump.

It looks like it's a libgtk-x11 problem as the backtrace points towards it.

When I save before clicking the checkbox and close the program (or just let it crash clicking) and start it again, clicking in the checkbox does not crash it and all goes normal...

Backtrace:
/lib64/libgtk-x11-2.0.so.0(+0x2647f3)[0x7fd35f4c27f3]
/lib64/libgtk-x11-2.0.so.0(+0x2655b0)[0x7fd35f4c35b0]
/lib64/libgtk-x11-2.0.so.0(+0x25c90b)[0x7fd35f4ba90b]
/lib64/libgtkmm-2.4.so.1(_ZN3Gtk6Widget21on_button_press_eventEP15_GdkEventButton+0x44)[0x7fd35de0ade4]
/lib64/libgtkmm-2.4.so.1(_ZN3Gtk12Widget_Class27button_press_event_callbackEP10_GtkWidgetP15_GdkEventButton+0x54)[0x7fd35de0cc24]
/lib64/libgtk-x11-2.0.so.0(+0x14782d)[0x7fd35f3a582d]
/lib64/libgobject-2.0.so.0(g_closure_invoke+0x145)[0x7fd361324c55]
/lib64/libgobject-2.0.so.0(+0x218da)[0x7fd3613368da]
/lib64/libgobject-2.0.so.0(g_signal_emit_valist+0xaa8)[0x7fd36133ecf8]
/lib64/libgobject-2.0.so.0(g_signal_emit+0x8f)[0x7fd36133f34f]
/lib64/libgtk-x11-2.0.so.0(+0x2771cc)[0x7fd35f4d51cc]
/lib64/libgtk-x11-2.0.so.0(gtk_propagate_event+0xc4)[0x7fd35f3a3ad4]
/lib64/libgtk-x11-2.0.so.0(gtk_main_do_event+0x3bb)[0x7fd35f3a3f7b]
/lib64/libgdk-x11-2.0.so.0(+0x6064c)[0x7fd35f94964c]
/lib64/libglib-2.0.so.0(g_main_context_dispatch+0x15b)[0x7fd3615af7fb]
/lib64/libglib-2.0.so.0(+0x49b98)[0x7fd3615afb98]
/lib64/libglib-2.0.so.0(g_main_loop_run+0xc2)[0x7fd3615afec2]
/lib64/libgtk-x11-2.0.so.0(gtk_main+0xb7)[0x7fd35f3a2ec7]
/usr/libexec/mysql-workbench/mysql-workbench-bin(main+0x35d)[0x479a7d]
/lib64/libc.so.6(__libc_start_main+0xf0)[0x7fd359ab7fe0]
??:?(_start)[0x47b597]

How to repeat:
Obs.: I tried but could repeat this bug only once in a new model file.
Create a table by reverse engineering a connection, after it created a EER Diagram with those tables, create another EER Diagram and add a different color table, change its name, add some columns and a int column, go to foreign keys, click twice and change the automatic name, change the referenced table to a table created at the reverse engineering process and click at the int field at foreign key columns panel. It shouldn't even mark the check box, after being idle for a sec, crash and close workbench.
[13 Jul 2015 23:39] MySQL Verification Team
Thank you for the bug report. I couldn't repeat this issue. Please check if you are able to provide a repeatable test case. Thanks.