Bug #70593 Segmentation Fault when connecting to database
Submitted: 10 Oct 2013 17:46 Modified: 24 Mar 2014 16:17
Reporter: Dan Peacock Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Workbench Severity:S2 (Serious)
Version:6.0.7 OS:Linux (Ubuntu 12.04)
Assigned to: CPU Architecture:Any
Tags: Connection, crash, segmentation fault

[10 Oct 2013 17:46] Dan Peacock
Description:
I recently upgraded to Ubuntu 12.04 LTS and Workbench 6.0.7 (build 11215) and I cannot connect to any of my databases and I'm getting a core dump. 

The error I'm seeing the wb.log is this:
08:10:07 [INF][ SSH tunnel]: Starting tunnel
08:10:07 [ERR][ GRTDispatcher]: exception in grt execute_task, continuing: Exception: Access denied for user 'mysql'@'10.1.18.150' (using password: NO)Passed MenuItem 'Don't Limit' does not have CheckMenuItem at 0x4051890
08:10:08 [ERR][ mforms.linux]: Passed MenuItem '10' does not have CheckMenuItem at 0x3b48ec0
08:10:08 [ERR][ mforms.linux]: Passed MenuItem '50' does not have CheckMenuItem at 0x3b36910
08:10:08 [ERR][ mforms.linux]: Passed MenuItem '100' does not have CheckMenuItem at 0x3b387f0
08:10:08 [ERR][ mforms.linux]: Passed MenuItem '200' does not have CheckMenuItem at 0x3a1ddc0
08:10:08 [ERR][ mforms.linux]: Passed MenuItem '300' does not have CheckMenuItem at 0x3b1b920
08:10:08 [ERR][ mforms.linux]: Passed MenuItem '400' does not have CheckMenuItem at 0x3b290b0
08:10:08 [ERR][ mforms.linux]: Passed MenuItem '500' does not have CheckMenuItem at 0x3b3eaa0
08:10:08 [ERR][ mforms.linux]: Passed MenuItem '1000' does not have CheckMenuItem at 0x3b5c190
08:10:08 [ERR][ mforms.linux]: Passed MenuItem '2000' does not have CheckMenuItem at 0x3b48f70
08:10:08 [ERR][ mforms.linux]: Passed MenuItem '5000' does not have CheckMenuItem at 0x3e3a7f0
08:10:08 [ERR][ mforms.linux]: Passed MenuItem '10000' does not have CheckMenuItem at 0x3b59ea0
08:10:08 [ERR][ mforms.linux]: Passed MenuItem '50000' does not have CheckMenuItem at 0x3b48d60

I didn't configure any of the connections to use the SSH Tunnel and it appears that it isn't sending the stored password I have in the keyring:

mysql:@10.1.40.71:3306:

The core dump I captured from stderr:

*** Segmentation fault
Register dump:

<register section clipped>

Backtrace:
/usr/lib/mysql-workbench/libwbscintilla.so.0(_ZNK9Scintilla13PropSetSimple3GetEPKc+0x6)[0x7fe2aa036406]
/usr/lib/mysql-workbench/libwbscintilla.so.0(_ZNK9Scintilla13PropSetSimple8ExpandedEPKc+0x1e)[0x7fe2aa03696e]
/usr/lib/mysql-workbench/libwbscintilla.so.0(_ZNK9Scintilla13PropSetSimple6GetIntEPKci+0x1d)[0x7fe2aa036a5d]
/usr/lib/mysql-workbench/libwbscintilla.so.0(+0x14304e)[0x7fe2aa13e04e]
/usr/lib/mysql-workbench/libwbscintilla.so(_ZNK9Scintilla11LexerModule4FoldEjiiPPNS_8WordListERNS_8AccessorE+0xc0)[0x7fe2bd213dc6]
/usr/lib/mysql-workbench/libwbscintilla.so(_ZN9Scintilla11LexerSimple4FoldEjiiPNS_9IDocumentE+0xd7)[0x7fe2bd214501]
/usr/lib/mysql-workbench/libwbscintilla.so(_ZN9Scintilla12LexInterface9ColouriseEii+0x1b7)[0x7fe2bd218fdf]
/usr/lib/mysql-workbench/libwbscintilla.so(_ZN9Scintilla8Document14EnsureStyledToEi+0xef)[0x7fe2bd21f683]
/usr/lib/mysql-workbench/libwbscintilla.so(_ZN9Scintilla6Editor21StyleToPositionInViewEi+0xc2)[0x7fe2bd24cdb8]
/usr/lib/mysql-workbench/libwbscintilla.so(_ZN9Scintilla6Editor11IdleStylingEv+0x7a)[0x7fe2bd24ce9a]
/usr/lib/mysql-workbench/libwbscintilla.so(_ZN12ScintillaGTK9StyleIdleEPS_+0x1d)[0x7fe2bd26d76b]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x133)[0x7fe2c2183d53]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x480a0)[0x7fe2c21840a0]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_loop_run+0x6a)[0x7fe2c218449a]
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(gtk_main+0xa7)[0x7fe2c17352f7]
/usr/bin/mysql-workbench-bin(main+0x3ec)[0x694a0c]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7fe2be03876d]
??:0(??)[0x697ed1]

Memory map:
<pruned for space>

How to repeat:
I've gotten it to crash every time I try to open any database connection. The test works fine.
[10 Oct 2013 18:23] Alfredo Kojima
What WB package are you using?
[10 Oct 2013 18:59] Dan Peacock
About screen of mysql-workbench

Attachment: mysqlworkbenchabout.png (image/png, text), 20.87 KiB.

[10 Oct 2013 19:02] Dan Peacock
I'm not entirely sure what you mean by "package".  I'm still new to MySQL so please bear with me as I get up to speed on the lingo.

All I'm trying to do is open a connection that I've defined to execute SQL commands and scripts, see the database structure, etc.  Basically all the same stuff I can do in Oracle SQL Developer when connecting to my Oracle databases and was able to do in mysql-workbench prior to upgrading my OS to 12.04 and the workbench to 6.0.7.11215.

Does that answer your question?

Dan
[11 Oct 2013 11:37] Alfredo Kojima
I mean what's the name of the Workbench package file you download and installed.
[11 Oct 2013 11:52] Marcin Szalowicz
Dan, can you please check if renaming the ~/.mysql/workbench directory fix this issue for you, and if so, please send us that broken directory.
[11 Oct 2013 13:06] Dan Peacock
Oh, my apologies.  This is the one I used: mysql-workbench-community-6.0.7-1ubu1204-amd64.deb

I can attach the actual package to this note if need be.
[15 Oct 2013 22:05] MySQL Verification Team
Thank you for the feedback. It's SSH connection?. Thanks.
[15 Oct 2013 22:07] MySQL Verification Team
Please check for duplicate with http://bugs.mysql.com/bug.php?id=70332 . Thanks.
[16 Oct 2013 0:12] Dan Peacock
I've not configured it to use SSH.  If it is, it is doing so without my telling it to do so, at least to the best of my knowledge.
[16 Oct 2013 0:19] Dan Peacock
I will post a screen shot of the configuration screen I see for the connection when I get into the office tomorrow morning. 

Dan
[16 Oct 2013 17:18] Dan Peacock
I've attached the screen shots of the connection configuration.
[16 Oct 2013 17:18] Dan Peacock
Advanced tab of the configuration

Attachment: mysqlconnectionadvanced.png (image/png, text), 139.49 KiB.

[16 Oct 2013 17:19] Dan Peacock
SSL tab of the connection configuration

Attachment: mysqlconnectionssl.png (image/png, text), 93.50 KiB.

[16 Oct 2013 17:33] Dan Peacock
Base connection tab of the connectiong config

Attachment: mysqlconnectionparameters.png (image/png, text), 95.39 KiB.

[16 Oct 2013 17:45] Dan Peacock
Marcin, 
I'm sorry I didn't answer your question about the ~/.mysql/workbench folder.  I don't know how I missed it but I did.  I renamed the folder and still get the same error.

Dan
[12 Nov 2013 22:55] MySQL Verification Team
Please try version 6.0.8. Thanks.
[15 Nov 2013 18:37] Dan Peacock
Still getting a seg fault with version 6.0.8
[13 Feb 2014 15:45] Marcin Szalowicz
Can you please provide output of this command: ldd `which mysql-workbench-bin`
[24 Feb 2014 16:17] MySQL Verification Team
Please try version 6.0.9 and if still fails please print the output of
the command asked by Marcin. Thanks.
[25 Mar 2014 1:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".