Bug #19963 MySQL Workbench 1.0.6 segfaults
Submitted: 20 May 2006 7:35 Modified: 3 Sep 2006 4:39
Reporter: Sebastian Bergmann Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Preview Severity:S1 (Critical)
Version:1.0.6 OS:Linux (Gentoo Linux)
Assigned to: Alfredo Kojima CPU Architecture:Any

[20 May 2006 7:35] Sebastian Bergmann
Description:
See attached output.

How to repeat:
$ /usr/local/mysql-workbench/bin/mysql-workbench

-- 

Here is my system configuration:

Portage 2.1_rc1-r3 (default-linux/x86/2006.0, gcc-4.1.1-pre20060517, glibc-2.4-r3, 2.6.16-gentoo-r7 i686)
=================================================================
System uname: 2.6.16-gentoo-r7 i686 Intel(R) Pentium(R) M processor 1500MHz
Gentoo Base System version 1.12.0_pre19
ccache version 2.4 [disabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r1
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -Os -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=pentium-m -Os -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig cvs digest distlocks fixpackages metadata-transfer sandbox sfperms sign strict"
GENTOO_MIRRORS="http://mirror.gentoo.no/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://trumpetti.atm.tut.fi/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlay/cvs /usr/local/overlay/gentopia"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac acpi alsa asf avi berkdb bitmap-fonts browserplugin bzip2 cairo cdr cli crypt cups dbus divx4linux dri dvd dvdr dvdread eds emboss encode exif fame firefox flac foomaticdb fortran gaim galago gdbm gif glitz gnome gpm graphviz gstreamer gtk gtk2 hal imlib iproute2 ipv6 isdnlog java jpeg libg++ libnotify libsexy libwww lzo mad matroska mikmod mjpeg mmx mng mono moznocompose moznoirc moznomail mozsvg mp3 mpeg ncurses nls nomotif nptl nsplugin nvidia ogg oggvorbis opengl oss pam pam_console pcre pdflib perl png pppd python quicktime readline reflection samba session spell spl sse sse2 ssl startup-notification svg tcpd tetex theora tiff truetype truetype-fonts type1-fonts udev unicode usb vorbis win32codecs wmf xml xml2 xorg xv xvid zlib elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_synaptics kernel_linux userland_GNU video_cards_nv video_cards_nvidia"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
[20 May 2006 7:36] Sebastian Bergmann
Output of running MySQL Workbench

Attachment: output.txt.bz2 (application/x-bzip, text), 1.02 KiB.

[25 May 2006 16:02] Jorge del Conde
Hi!

Can you please provide us with a more thorough explanation of what the bug is actually about, and what steps are needed so that we can reproduce it ?

Thanks a lot!
[25 May 2006 16:12] Sebastian Bergmann
Could you please elaborate what more information I could provide than that MySQL Workbench segfaults on startup after spilling out the error messages that I attached?

Thanks.
[31 May 2006 21:23] Jorge del Conde
Maybe some system specific config or WB config files ?

The thing is I was unable to reproduce this bug, so anything else you can give us will be of tremendous help.
[12 Jun 2006 16:26] Sebastian Bergmann
What additional information with regard to the system do you need?

I don't have any Workbench configuration file(s) since I do not get that far to be able to create/save a configuration.
[5 Jul 2006 7:34] Tonci Grgin
Hi Sebastian and sorry for the delay.
Can you check with other nvidia drivers, preferably ones that came with your system, and inform me of results?
[5 Jul 2006 7:42] Sebastian Bergmann
I do not use the machine anymore that I used when I initially filed the bug report.

I get the same error messages and segmentation fault, however, on my new machine:

Portage 2.1.1_pre2-r2 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-gentoo-r1 i686)
=================================================================
System uname: 2.6.17-gentoo-r1 i686 Genuine Intel(R) CPU           L2400  @ 1.66GHz
Gentoo Base System version 1.12.1
ccache version 2.4 [disabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=pentium-m -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig cvs digest distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms sign strict"
GENTOO_MIRRORS="http://mirror.gentoo.no/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://trumpetti.atm.tut.fi/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/vmware"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac acpi alsa asf avi berkdb bitmap-fonts bluetooth browserplugin bzip2 cairo cdr cli crypt cups dbus divx4linux dlloader dri dvd dvdr dvdread eds emboss encode exif fame firefox flac foomaticdb fortran gaim galago gdbm gif glitz gnome gpm graphviz gstreamer gtk gtk2 hal imlib iproute2 ipv6 isdnlog java jpeg kdeenablefinal kdehiddenvisibility libg++ libnotify libsexy libwww lzo mad matroska mikmod mjpeg mmx mng mono moznocompose moznoirc moznomail mozsvg mp3 mpeg ncurses nls nomotif nptl nsplugin ogg oggvorbis opengl oss pam pam_console pcre pdf pdflib perl png pppd python quicktime readline reflection samba session smp spell spl sse sse2 ssl startup-notification svg tcpd tetex theora tiff truetype truetype-fonts type1-fonts udev unicode usb vorbis win32codecs wmf xml xml2 xorg xv xvid zlib elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_i810"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
[5 Jul 2006 8:56] Sergey Petrunya
Hello, 

I'm using Gentoo on two different machines, in similar but not exactly same configurations. 

Machine 1, no arguments
~~~~~~~~~~~~~~~~~~~~~~~
it crashes:

psergey@newbox ~ $ ~/mysql-workbench/bin/mysql-workbench   
/home/psergey/mysql-workbench/bin/mysql-workbench: line 18: 21459 Killed                  $PRG-bin $*
psergey@newbox ~ $ export MWB_DIR=/home/psergey/mysql-workbench    
psergey@newbox ~ $ gdb                                         
GNU gdb 6.4
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
(gdb) file mysql-workbench/bin/mysql-workbench-bin
Reading symbols from /home/psergey/mysql-workbench/bin/mysql-workbench-bin...done.
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run 
Starting program: /home/psergey/mysql-workbench/bin/mysql-workbench-bin 
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 21428)]
[New Thread 32769 (LWP 21431)]
[New Thread 16386 (LWP 21432)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16386 (LWP 21432)]
0xb7953b02 in glViewport () from //usr//lib/opengl/nvidia/lib/libGL.so.1
(gdb) wher
#0  0xb7953b02 in glViewport () from //usr//lib/opengl/nvidia/lib/libGL.so.1
#1  0x0835f3dc in CGCView::viewportSet (this=0x8d8fa68, newViewport=@0xb6c3767c) at myx_gc_view.cpp:2084
#2  0x082a8bdf in MGCanvas::create_view (this=0x8d948d8, view=0x8d8fa68) at MGCanvas.cc:865
#3  0x08232d8b in MWMainWindow::create_view_in_canvas (this=0x8c98b68, view=0x8d8fa68) at MWMainWindow.cc:1714
#4  0x0825881b in MWMainWindow::handle_message (this=0x8c98b68) at MWMainWindow.cc:1758
#5  0x083a360e in WorkbenchController::notifyView (this=0x8d8dab0, view=0x8d8fa68, change=MYX_WBGC_SWITCHED) at myx_grt_wb_controller.cc:3884
#6  0x083a39a4 in CanvasViewController::realizeView (this=0x8d8dab0) at myx_grt_wb_controller.cc:856
#7  0x083b8447 in CanvasViewController::valueFromGrt (this=0x8d5e530, key=0x8edbc90 "name", value=0x8edbc68) at myx_grt_wb_controller.cc:745
#8  0x083a0228 in workbench_value_from_grt (param=0x8edbc68, data=0x8d8dab0) at myx_grt_wb_bridge.cc:202
#9  0x083d5a2a in c_call_function (function=0x8d88084, value=0x8edbc68, retval=0xb6c37908) at myx_grt_builtin.c:157
#10 0x083cee67 in myx_grt_function_call (grt=0x8d10210, func=0x8d88084, argument=0x8edbc68, error=0xb6c37948) at myx_grt_module.c:282
#11 0x083d0294 in myx_grt_bridge_func (module=0x8d8f590, func_name=0x8770957 "_valueFromGrt", value=0x8edbc68) at myx_grt_value.c:135
#12 0x083d189a in myx_grt_bridge_dict_item_set_value (dict=0x8f5f070, key=0x8d50790 "name", value=0x8edbc68, do_bridge_callback=1) at myx_grt_value.c:3231
#13 0x083d1d39 in myx_grt_dict_item_set_value (dict=0x8f5f070, key=0x8d50790 "name", value=0x8edbc68) at myx_grt_value.c:1351
#14 0x083d5008 in myx_grt_dict_init_obj (grt=0x8d10210, dict=0x8f5f070, name=0x8d84df0 "Main View", _id=0x8d3a398 "", 
    owner=0x8f63a20 "204c7420-0c02-11db-988c-00112fa70bfe") at myx_grt_value.c:1218
#15 0x083dc728 in l_grt_value_new (l=0x8d35530) at myx_grt_lua_shell.c:738
#16 0x0860e3b6 in luaD_precall ()
#17 0x08615307 in luaV_execute ()
#18 0x0860e820 in luaD_call ()
#19 0x0860cb7e in f_call ()
#20 0x0860e000 in luaD_rawrunprotected ()
#21 0x0860eb34 in luaD_pcall ()
#22 0x0860cbcc in lua_pcall ()
#23 0x083d9c22 in lua_call_function (function=0x8dadc60, value=0x8dadaf0, retval=0xb6c37d18) at myx_grt_lua.c:344
#24 0x083cee67 in myx_grt_function_call (grt=0x8d10210, func=0x8dadc60, argument=0x8dadaf0, error=0x8f303e4) at myx_grt_module.c:282
#25 0x083cef3d in myx_grt_function_get_and_call (grt=0x8d10210, module=0x8ec6f9c "Workbench", function_name=0x8eab8a4 "newDocument", search_parent=0, 
    argument=0x8dadaf0, error=0x8f303e4) at myx_grt_module.c:327
#26 0x082b2e72 in BlockingRequest::execute (this=0x8f303d0, grt=0x8d10168) at MGRT.cc:107
#27 0x082b12f1 in MGRT::request_thread (this=0x8d10168, resourcePath=@0xb6c37e44) at MGRT.cc:544
#28 0x082b3a23 in sigc::internal::slot_call0<sigc::bind_functor<-1, sigc::bound_mem_functor1<void, MGRT, std::string>, std::string, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil>, void>::call_it (rep=0x8d241d8) at mem_fun.h:1839
#29 0x08597aa3 in call_thread_entry_slot ()
#30 0x08601427 in g_thread_create_proxy ()
#31 0xb7f6d13d in pthread_start_thread () from /lib/libpthread.so.0
#32 0xb7f6d2e2 in pthread_start_thread_event () from /lib/libpthread.so.0
#33 0xb7e9da7a in clone () from /lib/libc.so.6

Machine 1, with arguments
~~~~~~~~~~~~~~~~~~~~~~~~~
psergey@newbox ~ $ ~/mysql-workbench/bin/mysql-workbench run-dammit 
I/O warning : failed to load external entity "run-dammit"

<< Here appears a message box: title is "information", text is "Could not load model file "run-dammit". 
I click OK, and MySQL workbench main window appears.
Help->About works. I can start reverse enginering a database - I can connect and select a database to reverse engineer, but then various errors happen (I think those better to be addressed as separate bug# s)
>>
[5 Jul 2006 9:03] Sergey Petrunya
Machine 2, without arguments
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Nothing appears and mysql-workbench script never finishes.
Here is what I see if I try to debug it:
psergey@pslp bin $ MWB_DIR=/home/psergey/mysql-workbench gdb
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
(gdb) file mysql-workbench-bin
Reading symbols from /home/psergey/mysql-workbench/bin/mysql-workbench-bin...done.
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run 
Starting program: /home/psergey/mysql-workbench/bin/mysql-workbench-bin 
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 23262)]
[New Thread 32769 (LWP 23265)]
[New Thread 16386 (LWP 23266)]

Program received signal SIGINT, Interrupt.
[Switching to Thread 16386 (LWP 23266)]
0xb7ecbaf0 in __pthread_sigsuspend () from /lib/libpthread.so.0
(gdb) info threads 
* 3 Thread 16386 (LWP 23266)  0xb7ecbaf0 in __pthread_sigsuspend () from /lib/libpthread.so.0
  2 Thread 32769 (LWP 23265)  0xb7df6b1a in poll () from /lib/libc.so.6
  1 Thread 16384 (LWP 23262)  0xb7ecbaf0 in __pthread_sigsuspend () from /lib/libpthread.so.0
(gdb) bt
#0  0xb7ecbaf0 in __pthread_sigsuspend () from /lib/libpthread.so.0
#1  0xb7ecb951 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0
#2  0xb7ec7ded in pthread_cond_wait@GLIBC_2.0 () from /lib/libpthread.so.0
#3  0xb7321128 in ?? ()
#4  0x00000000 in ?? ()
#5  0x08d406e0 in ?? ()
#6  0xb7ec7c94 in pthread_cond_destroy@GLIBC_2.0 () from /lib/libpthread.so.0
Previous frame inner to this frame (corrupt stack?)
(gdb) thread 2 
[Switching to thread 2 (Thread 32769 (LWP 23265))]#0  0xb7df6b1a in poll () from /lib/libc.so.6
(gdb) bt
#0  0xb7df6b1a in poll () from /lib/libc.so.6
#1  0xb7ec89f7 in __pthread_manager () from /lib/libpthread.so.0
#2  0xb7ec8cee in __pthread_manager_event () from /lib/libpthread.so.0
#3  0xb7dfecea in clone () from /lib/libc.so.6
(gdb) thread 1
[Switching to thread 1 (Thread 16384 (LWP 23262))]#0  0xb7ecbaf0 in __pthread_sigsuspend () from /lib/libpthread.so.0
(gdb) bt 
#0  0xb7ecbaf0 in __pthread_sigsuspend () from /lib/libpthread.so.0
#1  0xb7ecb951 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0
#2  0xb7ec7ded in pthread_cond_wait@GLIBC_2.0 () from /lib/libpthread.so.0
#3  0xbfc543c8 in ?? ()
#4  0x00000000 in ?? ()
#5  0x08e13f20 in ?? ()
#6  0xb7ec7c94 in pthread_cond_destroy@GLIBC_2.0 () from /lib/libpthread.so.0
Previous frame inner to this frame (corrupt stack?)

Machine 2, with arguments
~~~~~~~~~~~~~~~~~~~~~~~~~
Same effects as on machine 1

All described in this and previous comments was observed when using official mysql-workbench-1.0.6beta-linux-i386.tar.gz binary.

I can give more details about configuration/etc if I'm told what to look for.
[5 Jul 2006 9:06] Tonci Grgin
Hi.
I asked Sergey to try to repeat this behavior on Gentoo since I was unable to do so on Suse (32 bit), FC5 (x64) and XP Pro (both 64 and 32 bit). It seems OS specific.
[5 Jul 2006 9:14] Tonci Grgin
Verified as described by reporter on two machines running Gentoo OS.
[3 Sep 2006 4:39] Alfredo Kojima
Thank you for the backtrace, Sergey. Looking at it, I see that it was a bug
that has been fixed in the latest bundle release.