Bug #62057 WorkBench Crash Segmentation Fault
Submitted: 2 Aug 2011 11:05 Modified: 8 Feb 2012 22:24
Reporter: Carlos Quiros Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: Modeling Severity:S2 (Serious)
Version:5.2.34 OS:Linux
Assigned to: CPU Architecture:Any

[2 Aug 2011 11:05] Carlos Quiros
Description:
Workbench crashed when many references tables in foreign keys.

Error: (mysql-workbench-bin:24087): Gtk-CRITICAL **: gtk_tree_view_unref_tree_helper: assertion `node != NULL' failed
*** Segmentation fault

See attached file for full log.

How to repeat:
The problem happens intermittently
[2 Aug 2011 11:05] Carlos Quiros
Error log.

Attachment: wb.error (application/octet-stream, text), 48.09 KiB.

[2 Aug 2011 11:08] Carlos Quiros
Workbench crashes when changing the referenced table in the foreign keys of many tables.

I am changing the referenced table in many tables... One after the other... In some cases Workbench crashes
[2 Aug 2011 11:11] Valeriy Kravchuk
Please, send the output of:

uname -a
cat /etc/issue 

Linux commands.
[3 Aug 2011 6:58] Carlos Quiros
uname -a:

Linux mdarkstar 2.6.33.4 #3 SMP Tue Sep 21 17:42:09 CDT 2010 x86_64 Intel(R) Core(TM) i7 CPU       Q 840  @ 1.87GHz GenuineIntel GNU/Linux

cat /etc/issue:

Welcome to \s \r (\l)
[3 Aug 2011 7:33] Valeriy Kravchuk
Please, send URL you had used to download Workbench binaries. Or you built it from source?
[3 Aug 2011 8:26] Carlos Quiros
I build it from source.

The errors are consistent when I move between tables while having the "Table properties tab opened (The one that has: Table, Columns, Indexes, etc.)" If this tab is opened and I switch between tables to change Foreign Key information the software crashes at random. The same does not happen if I close the tab before using another table.
[26 Aug 2011 14:13] Armando Lopez Valencia
Thanks a lot for your report Carlos.
Can you please provide us with a sample (.mwb file) of a Model where you can reproduce this defect?
Thanks.
[29 Aug 2011 7:35] Carlos Quiros
Hi, 

Thanks for your support.

I just uploaded the model. To test it, please change foreign keys among different tables WITHOUT closing the "table properties tab". Eventually after some time changing this... WB crashes.

Carlos.
[29 Aug 2011 14:01] Armando Lopez Valencia
Thanks for the info Carlos.
2 things:
- Are you doing the changes in the Foreign keys in the model or one of the diagrams?
- Are you using the "Edit in new window" option?
- Can you please paste here the output that you get from "Help -> System Info"?
Thanks.
[29 Aug 2011 14:17] Carlos Quiros
I am doing changes in foreign keys in both the model and diagrams. Eventually crashes in both.

I am doing double-click in a table to open its properties and change values. The crash happens when I change something then double click in another table  change something, double click in another table and so on...eventually WB crashes. However, if I close the "Properties tab" before double-clicking in another table WB does not crash.

System info is:

MySQL Workbench CE for Linux/Unix version 5.2.34
Configuration Directory: /home/cquiros/.mysql/workbench
Data Directory: /usr/local/share/mysql-workbench
Cairo Version: 1.10.0
Rendering Mode: OpenGL is not available on this system, so Native is used for rendering.
OS: Linux 2.6.33.4
CPU: 8x Intel(R) Core(TM) i7 CPU       Q 840  @ 1.87GHz 1199.000 MHz, 3.8 GB RAM
[20 Sep 2011 17:32] Paulo Santos
It's happening exacly the same thing with me. Sometimes just connecting to my local database segfaults. After that, on the SQL Editor only if I "Alter Table..." by right clicking. On the EER Diagram happens constantly, but I never tried to close the tab everytime I change table.

Here is my info:

$ uname -a
Linux sayo-asus 3.0-ARCH #1 SMP PREEMPT Tue Aug 30 08:53:25 CEST 2011 x86_64 Intel(R) Core(TM) i5 CPU M 460 @ 2.53GHz GenuineIntel GNU/Linux

$ cat /etc/issue 
Arch Linux \r  (\n) (\l)

Help -> System Info:

MySQL Workbench CE for Linux/Unix version 5.2.34
Configuration Directory: /home/psantos/.mysql/workbench
Data Directory: /usr/share/mysql-workbench
Cairo Version: 1.10.2
Rendering Mode: OpenGL is not available on this system, so Native is used for rendering.
OS: Linux 3.0-ARCH
CPU: 4x Intel(R) Core(TM) i5 CPU       M 460  @ 2.53GHz 2534.000 MHz, 3.7 GB RAM

I'll attach a dump as well.

Hope it helps
[20 Sep 2011 17:33] Paulo Santos
Segmentation Fault

Attachment: wb.dump (application/octet-stream, text), 54.45 KiB.

[22 Sep 2011 15:16] Armando Lopez Valencia
Thanks a lot for your report Carlos.
[8 Feb 2012 22:24] Philip Olson
Fixed as of 5.2.38:

Selecting and editing multiple indexes or foreign keys would
crash Workbench.