Bug #42435 crash during starting workbench

Submitted: 28 Jan 2009 18:46 Modified: 1 Apr 2009 12:22
Reporter: Susanne Ebrecht Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S1 (Critical)
Version:5.1.5 OS:Linux (All)
Assigned to: CPU Architecture:Any

[28 Jan 2009 18:46] Susanne Ebrecht
Description:
Start workbench -> Splashscreen shows up -> nothing else happens ... WB crashed

This only happens by building with debuild.

All works fine by using ./autogen.sh, ./configure, make, make install

But as far as you are buidling with debuild you will get this issue.

Workaround (for BASH):

1) tar xvzf <source package>
2)
$ cd mysql-workbench-5.1.5

$ export CFLAGS="-g -O0"
$ export CXXFLAGS="-g -O0"

$ debuild
$ cd ..
$ sudo dpkg -i <the deb package that was generated>
$ mysql-workbench &

The result of my deeper analysis was that -O2 is the problem here. All works fine by using -O0.

How to repeat:
1) download source
2) tar xvzf <source package>
3) cd mysql-workbench-5.1.5
4) debuild
5) cd ..
6) sudo dpkg -i <the deb package that was generated>
7) mysql-workbench

Because the splashscreen also won't disapear again it is necessary to restart X.

Suggested fix:
Looks like a NULL pointer invalidation.

With -O0 there will be a value from wherever that is used and with -O2 this value was optimised away.
[28 Jan 2009 20:28] Hanno Wagner
as "short" workaround, you can use the debian-way:

"DEB_BUILD_OPTIONS=noopt debuild"  instead of just calling "debuild". This will set CFLAGS and CXXFLAGS to "-g -O0"
[28 Jan 2009 21:29] Susanne Ebrecht
This bug is also repeatable on Ubuntu 8.10 amd64
[29 Jan 2009 0:05] Susanne Ebrecht
I made some additional test.

The solution for this is to compile with: -fno-strict-aliasing
[29 Jan 2009 3:38] Alfredo Kojima
Great job investigating this, thanks! There are 2 places in WB with the type-punning problem and I was able to fix one of them. But the other one which involves GStaticMutex is harder and noone seems to have a real solution for it. The good news is I don't seem to get any problems from it...
[29 Jan 2009 12:39] Susanne Ebrecht
Bug #39917 is set as duplicate of this bug here.
[29 Jan 2009 15:57] Dennis Gilmore
I compiled my fedora rpms using -O1 and mysql-workbench seems to run ok.  with -O2 I was not getting passed the splash screen.  this is on Fedora 10 x86_64
[29 Jan 2009 19:13] Susanne Ebrecht
This will affect all OS because it is related to gcc.
[1 Apr 2009 12:22] Susanne Ebrecht
This bug has been fixed and the avaiable version with the fix is 5.1.9-Beta which you are able to download here:

http://dev.mysql.com/downloads/workbench/5.1.html

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.061 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.