Bug #24072 double free or corruption (fasttop)
Submitted: 8 Nov 2006 3:40 Modified: 22 Nov 2006 23:50
Reporter: Carl Karsten (Silver Quality Contributor) Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Workbench Preview Severity:S2 (Serious)
Version:svnversion 447 OS:Linux (Linux)
Assigned to: CPU Architecture:Any

[8 Nov 2006 3:40] Carl Karsten
Description:
juser@e18:~$ mysql-workbench
*** glibc detected *** /usr/local/bin/mysql-workbench-bin: double free or corruption (fasttop): 0x08325bf0 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb6d358bd]
/lib/tls/i686/cmov/libc.so.6(__libc_free+0x84)[0xb6d35a44]
/usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0xb6ef8fc1]
/usr/local/bin/mysql-workbench-bin[0x80d637d]
/usr/local/bin/mysql-workbench-bin[0x80d63a2]
/usr/local/bin/mysql-workbench-bin[0x80d71ed]
/usr/local/bin/mysql-workbench-bin[0x80d721f]
/usr/local/bin/mysql-workbench-bin[0x80d4a4a]
/usr/local/bin/mysql-workbench-bin[0x80d5e19]
/usr/local/bin/mysql-workbench-bin[0x80d5e3e]
/usr/local/bin/mysql-workbench-bin[0x80d5e7b]
/usr/local/bin/mysql-workbench-bin[0x80d5e9c]
/usr/lib/libglibmm-2.4.so.1[0xb747b8d8]
/usr/lib/libglib-2.0.so.0[0xb714038f]
/lib/tls/i686/cmov/libpthread.so.0[0xb6e08504]
/lib/tls/i686/cmov/libc.so.6(__clone+0x5e)[0xb6d9c51e]
======= Memory map: ========
08048000-0829b000 r-xp 00000000 03:01 505923     /usr/local/bin/mysql-workbench-bin
0829b000-082a3000 rwxp 00252000 03:01 505923     /usr/local/bin/mysql-workbench-bin
082a3000-08747000 rwxp 082a3000 00:00 0          [heap]
b5600000-b5621000 rwxp b5600000 00:00 0 
b5621000-b5700000 ---p b5621000 00:00 0 
b5718000-b5759000 rwxp b5718000 00:00 0 
b5759000-b575a000 ---p b5759000 00:00 0 
b575a000-b5f5a000 rwxp b575a000 00:00 0 
b5f5a000-b5f67000 r-xp 00000000 03:01 147538     /usr/share/fonts/truetype/ttf-bitstream-vera/VeraMono.ttf
b5f67000-b5f6b000 r-xp 00000000 03:01 1144003    /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
b5f6b000-b5f6c000 rwxp 00003000 03:01 1144003    /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
b5f6d000-b60f4000 r-xp 00000000 03:01 1148090    /usr/share/icons/hicolor/icon-theme.cache
b60f4000-b6750000 r-xp 00000000 03:01 685642     /usr/share/icons/gnome/icon-theme.cache
b6750000-b69a8000 r-xp 00000000 03:01 233997     /usr/share/icons/Tango/icon-theme.cache
b69a8000-b69f9000 r-xp 00000000 03:01 55290      /usr/share/icons/Tangerine/icon-theme.cache
b69f9000-b6b5a000 r-xp 00000000 03:01 136045     /usr/share/icons/Human/icon-theme.cache
b6b5a000-b6bcb000 r-xp 00000000 03:01 1094119    /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
b6bcb000-b6bdc000 r-xp 00000000 03:01 54247      /usr/lib/gtk-2.0/2.10.0/engines/libubuntulooks.so
b6bdc000-b6bdd000 rwxp 00011000 03:01 54247      /usr/lib/gtk-2.0/2.10.0/engines/libubuntulooks.so
b6bdd000-b6bde000 r-xp 00000000 03:01 1014630    /usr/lib/gconv/ISO8859-1.so
b6bde000-b6be0000 rwxp 00001000 03:01 1014630    /usr/lib/gconv/ISO8859-1.so
b6be0000-b6be7000 r-xs 00000000 03:01 1014087    /usr/lib/gconv/gconv-modules.cache
b6be7000-b6bec000 r-xp 00000000 03:01 1093952    /usr/lib/X11/locale/common/xlibi18n.so.2.0.0
b6bec000-b6bed000 rwxp 00004000 03:01 1093952    /usr/lib/X11/locale/common/xlibi18n.so.2.0.0
b6bed000-b6c19000 r-xp 00000000 03:01 1062264    /usr/lib/locale/en_US/LC_CTYPE
b6c19000-b6c1a000 r-xp 00000000 03:01 1062265    /usr/lib/locale/en_US/LC_NUMERIC
b6c1a000-b6c1b000 r-xp 00000000 03:01 1062266    /usr/lib/locale/en_US/LC_TIME
b6c1b000-b6c20000 r-xp 00000000 03:01 1062267    /usr/lib/locale/en_US/LC_COLLATE
b6c20000-b6c29000 r-xp 00000000 03:01 1044958    /lib/tls/i686/cmov/libnss_files-2.4.so
b6c29000-b6c2b000 rwxp 00008000 03:01 1044958    /lib/tls/i686/cmov/libnss_files-2.4.so
b6c2b000-b6c33000 r-xp 00000000 03:01 1044960    /lib/tls/i686/cmov/libnss_nis-2.4.so
b6c33000-b6c35000 rwxp 00007000 03:01 1044960    /lib/tls/i686/cmov/libnss_nis-2.4.so
b6c35000-b6c3c000 r-xp 00000000 03:01 1044956    /lib/tls/i686/cmov/libnss_compat-2.4.so
b6c3c000-b6c3e000 rwxp 00006000 03:01 1044956    /lib/tls/i686/cmov/libnss_compat-2.4.so
b6c3e000-b6c41000 rwxp b6c3e000 00:00 0 
b6c41000-b6c47000 r-xp 00000000 03:01 1016956    /usr/lib/libdrm.so.2.0.0
b6c47000-b6c48000 rwxp 00005000 03:01 1016956    /usr/lib/libdrm.so.2.0.0
b6c48000-b6c4c000 r-xp 00000000 03:01 1017007    /usr/lib/libXxf86vm.so.1.0.0
b6c4c000-b6c4d000 rwxp 00003000 03:01 1017007    /usr/lib/libXxf86vm.so.1.0.0
b6c4d000-b6c4e000 rwxp b6c4d000 00:00 0 
b6c4e000-b6c52000 r-xp 00000000 03:01 1016855    /usr/lib/libXdmcp.so.6.0.0
b6c52000-b6c53000 rwxp 00003000 03:01 1016855    /usr/lib/libXdmcp.so.6.0.0
b6c53000-b6c55000 r-xp 00000000 03:01 1016853    /usr/lib/libXau.so.6.0.0
b6c55000-b6c56000 rwxp 00001000 03:01 1016853    /usr/lib/libXau.so.6.0.0
b6c56000-b6c80000 r-xp 00000000 03:01 1017642    /usr/lib/libpangoft2-1.0.so.0.1400.5
b6c80000-b6c81000 rwxp 00029000 03:01 1017642    /usr/lib/libpangoft2-1.0.so.0.1400.5
b6c81000-b6c82000 rwxp b6c81000 00:00 0 
b6c82000-b6c89000 r-xp 00000000 03:01 1044965    /lib/tls/i686/cmov/lAborted (core dumped)

How to repeat:
mysql-workbench
hit the X to close the window.

File/Quit and ^Q just exit, no error.
[8 Nov 2006 13:20] MySQL Verification Team
Thank you for the bug report. Which Linux Dist are you using and package
or self-compiled Workbench version? I was unable to repeat on Suse 10.
Thanks in advance.
[8 Nov 2006 17:11] Carl Karsten
Ubuntu Edgy, compiled from SVN source:

sudo apt-get install build-essential liblualib50-dev libglade2-dev libxml++2.6-dev libgtkmm-2.4-dev libpcre3-dev libmysqlclient15-dev uuid-dev libglut3-dev

sudo apt-get install subversion autoconf automake1.9 libtool

svn co http://svn.mysql.com/svnpublic/mysql-gui-common/trunk mysql-gui-common
cd mysql-gui-common
sh ./autogen.sh --enable-grt --enable-canvas
make
sudo make install
cd ..

svn co http://svn.mysql.com/svnpublic/mysql-workbench/trunk mysql-workbench
cd mysql-workbench
sh ./autogen.sh
make
sudo make install
cd ..

I also built/installed mysql-gui-tools-5.0r5.tar.gz - it segfaulted after a few min of dragging tables around.  

In about an hour I will have another Ubuntu Edgy installed on a VM, I will install just the svn version and see if that makes any difference. 

also: box I got the error on:

256mb ram (not video)

juser@e18:~$ lspci -s:02
00:02.0 VGA compatible controller: Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device (rev 01)
juser@e18:~$ lspci -s:02 -n
00:02.0 0300: 8086:2562 (rev 01)
juser@e18:~$ cat /proc/cpuinfo 
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 1
model name      : Intel(R) Celeron(R) CPU 1.80GHz
stepping        : 3
cpu MHz         : 1793.594
cache size      : 128 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm up
bogomips        : 3591.48
[8 Nov 2006 21:09] Carl Karsten
Installed Ubuntu-Edgy on a vmware-player VM.

juser@dhcp167:~/mysql$ sudo apt-get install build-essential liblualib50-dev libglade2-dev libxml++2.6-dev libgtkmm-2.4-dev libpcre3-dev libmysqlclient15-dev uuid-dev libxml++2.6-dev libgtkmm-2.4-dev libpcre3-dev libmysqlclient15-dev uuid-dev libglut3-dev subversion autoconf automake1.9 libtool

svn co http://svn.mysql.com/svnpublic/mysql-gui-common/trunk mysql-gui-common
cd mysql-gui-common
sh ./autogen.sh --enable-grt --enable-canvas
make
sudo make install
cd ..

svn co http://svn.mysql.com/svnpublic/mysql-workbench/trunk mysql-workbench
cd mysql-workbench
sh ./autogen.sh
make
sudo make install
cd ..

juser@dhcp167:~/mysql$ mysql-workbench

(mysql-workbench-bin:2438): libglade-WARNING **: could not find glade file '/usr/local/usr/local/share/mysql-gui/workbench/document.glade'
terminate called after throwing an instance of 'MGGladeXML::Error'
Aborted (core dumped)
juser@dhcp167:~/mysql$ cd /usr/local/
juser@dhcp167:/usr/local$ sudo ln -s /usr
Password:
juser@dhcp167:/usr/local$ cd -
/home/juser/mysql
juser@dhcp167:~/mysql$ mysql-workbench

hit the X, error:
*** glibc detected *** /usr/local/bin/mysql-workbench-bin: double free or corruption (fasttop): 0x08343380 ***
...
b7ebe000-b7f02000 rwxp 0018e000 03:01 297930     /usr/lib/libmysqlclient_r.so.15.0.0
b7Aborted (core dumped)

juser@dhcp167:~/mysql$ ls
mkwb.sh  mysql-gui-common  mysql-workbench

Any idea where the dump is?
[22 Nov 2006 23:35] MySQL Verification Team
Thank you for the feedback. I was unable to repeat on Ubuntu 10.6 and with
version 1.2.5rc, I just got the below warning:

miguel@skybr:/opt/mysql-gui-tools-5.0$ ./mysql-workbench

(mysql-workbench-bin:7701): Gtk-WARNING **: Unable to locate theme engine in module_path: "ubuntulooks",
miguel@skybr:/opt/mysql-gui-tools-5.0$ cat /etc/issue
Ubuntu 6.10 \n \l
[22 Nov 2006 23:50] MySQL Verification Team
Ok now I was able to repeat while testing another bug report, to happen
on my side is necessary to have MysQL-Browser login screen opened:

(mysql-workbench-bin:8115): Gtk-WARNING **: Unable to locate theme engine in module_path: "ubuntulooks",
*** glibc detected *** ./mysql-workbench-bin: double free or corruption (fasttop): 0x088b1f40 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb71338bd]
/lib/tls/i686/cmov/libc.so.6(__libc_free+0x84)[0xb7133a44]
/opt/mysql-gui-tools-5.0/lib/libstdc++.so.6(_ZdlPv+0x21)[0xb72b48b1]
./mysql-workbench-bin[0x80d5a09]
./mysql-workbench-bin[0x80d5a2e]
./mysql-workbench-bin[0x80d5a8f]
./mysql-workbench-bin[0x80d5ac1]
./mysql-workbench-bin[0x80d39a2]
./mysql-workbench-bin[0x80d5fe9]
./mysql-workbench-bin[0x80d600e]
./mysql-workbench-bin[0x80d604b]
./mysql-workbench-bin[0x80d606c]
/opt/mysql-gui-tools-5.0/lib/libglibmm-2.4.so.1[0xb7804f4c]
/opt/mysql-gui-tools-5.0/lib/libglib-2.0.so.0[0xb74d55a2]
/lib/tls/i686/cmov/libpthread.so.0[0xb7fbc504]
/lib/tls/i686/cmov/libc.so.6(__clone+0x5e)[0xb719a51e]
======= Memory map: ========
08048000-0831b000 r-xp 00000000 03:03 3310240    /opt/mysql-gui-tools-5.0/mysql-workbench-bin
0831b000-08439000 rw-p 002d3000 03:03 3310240    /opt/mysql-gui-tools-5.0/mysql-workbench-bin