Bug #64620 Segmentation fault on model sync
Submitted: 12 Mar 2012 11:05 Modified: 30 Mar 2012 6:15
Reporter: Pavel Yatsukhnenko Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Workbench: Modeling Severity:S2 (Serious)
Version:5.2.38 OS:Linux (Linux 3.2.1-gentoo-r2)
Assigned to: CPU Architecture:Any
Tags: WBBugReporter

[12 Mar 2012 11:05] Pavel Yatsukhnenko
Description:
pyatsukhnenko@localhost ~ $ mysql-workbench
Ready.

*** Segmentation fault
Register dump:

 RAX: 0000000000000000   RBX: 00000000051b9ed0   RCX: 0000000000000006
 RDX: 00000000051b9ed0   RSI: 0000000000cf5d10   RDI: 0000000000cf0080
 RBP: 0000000000aef1d0   R8 : 00000000051b9ed0   R9 : 0000000000aef1d0
 R10: 0000000000000001   R11: 00007f0c10162e20   R12: 00007fff598bf4c0
 R13: 0000000000b9c5b0   R14: 0000000000000000   R15: 0000000004fafce0
 RSP: 00007fff598bf2e0

 RIP: 00007f0c15ae67dc   EFLAGS: 00010246

 CS: 0033   FS: 0000   GS: 0000

 Trap: 0000000e   Error: 00000004   OldMask: 00000000   CR2: 00000078

 FPUCW: 0000037f   FPUSW: 00000020   TAG: 00000000
 RIP: 00000000   RDP: 00000000

 ST(0) 0000 0000000000000000   ST(1) 0000 0000000000000000
 ST(2) 0000 0000000000000000   ST(3) 0000 0000000000000000
 ST(4) 0000 0000000000000000   ST(5) 0000 0000000000000000
 ST(6) ffff d3c8000000000000   ST(7) 8000 8000000000000000
 mxcsr: 1fa4
 XMM0:  000000000000000000000000ff000000 XMM1:  000000000000000000000000ff000000
 XMM2:  000000000000000000000000ff000000 XMM3:  000000000000000000000000ff000000
 XMM4:  000000000000000000000000ff000000 XMM5:  000000000000000000000000ff000000
 XMM6:  000000000000000000000000ff000000 XMM7:  000000000000000000000000ff000000
 XMM8:  000000000000000000000000ff000000 XMM9:  000000000000000000000000ff000000
 XMM10: 000000000000000000000000ff000000 XMM11: 000000000000000000000000ff000000
 XMM12: 000000000000000000000000ff000000 XMM13: 000000000000000000000000ff000000
 XMM14: 000000000000000000000000ff000000 XMM15: 000000000000000000000000ff000000

How to repeat:
1. Open Existing ERR model
2. Database -> Synchronize Model
3. Set parameters of connection
4. 3 times click next button
[12 Mar 2012 19:44] MySQL Verification Team
I couldn't repeat on Fedora 16 64_bits. Which package have you installed?. Thanks.
[13 Mar 2012 11:17] Pavel Yatsukhnenko
mysql-workbench-gpl-5.2.38-src.tar.gz
compiled with nls USE flag
[13 Mar 2012 14:49] Alfredo Kojima
Can you obtain and attach a stack trace from gdb?
[14 Mar 2012 8:16] Pavel Yatsukhnenko
Workbench Log File

Attachment: mw.log (text/x-log), 86.23 KiB.

[14 Mar 2012 8:22] Pavel Yatsukhnenko
How can I do stack trace from gdb?
I tried to execute gdb mysql-workbench and receive message:
"/usr/bin/mysql-workbench": not in executable format: Формат файла не распознан.
Then I tried to execute gdb mysql-workbench-bin and receive message:
Reading symbols from /usr/bin/mysql-workbench-bin...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/mysql-workbench-bin 
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff15a055f in ?? () from /lib64/libc.so.6
I think I do something wrong :(
[15 Mar 2012 13:57] Alfredo Kojima
To use gdb, 1st run source /usr/bin/mysql-workbench then quit WB.
Then run gdb /usr/bin/mysql-workbench-bin
run
(produce crash)
bt
[16 Mar 2012 9:35] Pavel Yatsukhnenko
pyatsukhnenko@localhost ~ $ source /usr/bin/mysql-workbench
dirname: неверный ключ -- b
Попробуйте «dirname --help» для получения более подробного описания.
/usr/bin/catchsegv: line 58: /mysql-workbench-bin: Нет такого файла или каталога

pyatsukhnenko@localhost ~ $ /usr/bin/mysql-workbench
11:33:01 [DB1][      WBContext]: Creating WBContext
11:33:01 [INF][      WBContext]: WbContext::init
11:33:02 [DB1][            grt]: Looking for user plugins in /home/pyatsukhnenko/.mysql/workbench/modules
11:33:02 [DB1][            grt]: Looking for user plugins in /home/pyatsukhnenko/.mysql/workbench/plugins
11:33:02 [DB1][            grt]: Looking for plugins in /home/pyatsukhnenko/.mysql/workbench/usr/lib64/mysql-workbench/plugins
11:33:02 [DB1][            grt]: MySQL Generic Runtime Environment 4.1.0
11:33:02 [DB1][            grt]: 
Type '?' for help.
11:33:02 [DB1][            grt]: Python Shell initialized. (Use Preferences -> General to set language)
Ready.
11:33:02 [DB1][            grt]: Ready.

11:33:02 [DB1][            grt]: 
11:33:02 [INF][      WBContext]: System info:
 	MySQL Workbench CE for Linux/Unix version 5.2.38  revision 8753
	Configuration Directory: /home/pyatsukhnenko/.mysql/workbench
	Data Directory: /usr/share/mysql-workbench
	Cairo Version: 1.10.2
	OS: Linux 3.2.1-gentoo-r2
	CPU: 6x AMD FX(tm)-6100 Six-Core Processor 3321.768 MHz, 7.8 GB RAM
11:33:02 [ERR][         mforms]: _webbrowser_impl has NULL ptr at 0
11:33:02 [ERR][         mforms]: _webbrowser_impl has NULL ptr at 1
11:33:02 [ERR][         mforms]: _webbrowser_impl has NULL ptr at 2
11:33:02 [ERR][         mforms]: _webbrowser_impl has NULL ptr at 3
SystemError11:33:04 [DB1][            grt]: SystemError: : null argument to internal routinenull argument to internal routine

11:33:04 [DB1][      WBContext]: Destroying WBContext

pyatsukhnenko@localhost ~ $ gdb /usr/bin/mysql-workbench-bin 
GNU gdb (Gentoo 7.3.1 p2) 7.3.1
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/bin/mysql-workbench-bin...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/mysql-workbench-bin 
[Thread debugging using libthread_db enabled]
11:33:42 [DB1][      WBContext]: Creating WBContext
terminate called after throwing an instance of 'Glib::FileError'

Program received signal SIGABRT, Aborted.
0x00007ffff14bccb5 in raise () from /lib64/libc.so.6
(gdb) quit
A debugging session is active.

	Inferior 1 [process 18955] will be killed.

Quit anyway? (y or n) y
[16 Mar 2012 17:59] Alfredo Kojima
Hi
The output of the bt command is missing.
[17 Mar 2012 11:10] Pavel Yatsukhnenko
gdb /usr/bin/mysql-workbench-bin 
GNU gdb (Gentoo 7.3.1 p2) 7.3.1
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/bin/mysql-workbench-bin...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/mysql-workbench-bin 
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff1598e91 in ?? () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ffff1598e91 in ?? () from /lib64/libc.so.6
#1  0x00000000006a1e40 in main ()
(gdb)
[20 Mar 2012 13:49] Alfredo Kojima
Can you attach the model file you use to produce the crash?
Does the crash also happen with the demo sakila_full.mwb model file (it's in the samples/models dir in the source tarball)?
[21 Mar 2012 9:48] Pavel Yatsukhnenko
I'm sorry, I can't attach model file :(
I tried to reproduce the error on my home laptop and there was no crashes... with sakila_full.mwb - no crashes too.
[30 Mar 2012 6:15] Pavel Yatsukhnenko
:(
[15 Apr 2012 0:19] Aalex Gabi
I have the same problem. A big model. I tryed on Ubuntu and Windows 7 and when I sync the database to model it crashes.