Bug #53476 Crash when trying to connect server via SSH
Submitted: 7 May 2010 8:43 Modified: 20 May 2010 13:21
Reporter: Mihail Lukin Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: Administration Severity:S2 (Serious)
Version:5.2.21 OS:Linux (Fedora 12, Ubuntu 9.10 amd64)
Assigned to: Alfredo Kojima CPU Architecture:Any
Tags: Administration, ssh

[7 May 2010 8:43] Mihail Lukin
Description:
Application (silently) crashes when trying to connect Linux server via SSH.

How to repeat:
1. Server Administration > New Server Instance
2. Take parameters from existing database (or whatever)
- database connection tested successfully
3. Enable SSH login based administration
- use Host name (replaced here with example.com), User name and Password
4. Choose operating system (Linux) and MySQL installation type (SLES or whatever)
5. Click "Next"
- application crashes

Console output before application crash:
** (mysql-workbench-bin:10356): WARNING **: Plugin 'wb.tools.quickTables' from module WbTools has invalid type ''
Connecting to example.com
mysql-workbench-bin: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.
Error in my_thread_global_end(): 1 threads didn't exit
[14 May 2010 13:37] Susanne Ebrecht
Many thanks for writing a bug report.

Verified as described:

"The program 'mysql-workbench-bin' received an X Window System error.
This probably reflects a bug in the program."

I will try to get a core dump or something like this.

Here is how to repeat:
1. Server Administration > New Server Instance
2. Remote server
3. insert hostname
4. configure ssh

-- Crash --
[14 May 2010 13:39] Susanne Ebrecht
Can't get a core dump.

But I get this output:

The error was 'BadRequest (invalid request code or no such operation)'.
  (Details: serial 10823 error_code 1 request_code 0 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
The program 'mysql-workbench-bin' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadRequest (invalid request code or no such operation)'.
  (Details: serial 10823 error_code 1 request_code 0 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
[14 May 2010 17:23] Craig Fowler
"Me too" - using Debian 'Squeeze' (AKA Testing) and the .deb installer for Ubuntu 10.4

Here's some full output from the commandline:
=======================================
craig@craig-laptop:$ mysql-workbench

** (mysql-workbench-bin:4793): WARNING **: GRTTreeView column 0 doesn't exit

** (mysql-workbench-bin:4793): WARNING **: GRTTreeView column 1 doesn't exit

** (mysql-workbench-bin:4793): WARNING **: GRTTreeView column 0 doesn't exit

** (mysql-workbench-bin:4793): WARNING **: GRTTreeView column 1 doesn't exit

** (mysql-workbench-bin:4793): WARNING **: GRTTreeView column 0 doesn't exit

** (mysql-workbench-bin:4793): WARNING **: GRTTreeView column 0 doesn't exit

** (mysql-workbench-bin:4793): WARNING **: GRTTreeView column 0 doesn't exit
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/wb.mysql.validation.grt.so' (cpp)
** Message: WARNING: Could not get pointer to grt_module_init in module /usr/lib/mysql-workbench/modules/wb.mysql.validation.grt.so (`grt_module_init': /usr/lib/mysql-workbench/modules/wb.mysql.validation.grt.so: undefined symbol: grt_module_init)
** Message: WARNING: Could not load wb.mysql.validation.grt.so: Invalid module /usr/lib/mysql-workbench/modules/wb.mysql.validation.grt.so
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/db.mysql.sqlide.grt.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/forms.grt.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/db.mysql.grt.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/wb_admin_grt.py' (python)
Debug level - 0
/usr/lib/python2.6/dist-packages/Crypto/Hash/SHA.py:6: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  from sha import *
/usr/lib/python2.6/dist-packages/Crypto/Hash/MD5.py:6: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  from md5 import *
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/table_utils.grt.lua' (lua)
** Message: Initialized Lua module /usr/lib/mysql-workbench/modules/table_utils.grt.lua (WbTableUtils)
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/wb_doclib_grt.py' (python)
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/wb.model.grt.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/wb.validation.grt.so' (cpp)
** Message: WARNING: Could not get pointer to grt_module_init in module /usr/lib/mysql-workbench/modules/wb.validation.grt.so (`grt_module_init': /usr/lib/mysql-workbench/modules/wb.validation.grt.so: undefined symbol: grt_module_init)
** Message: WARNING: Could not load wb.validation.grt.so: Invalid module /usr/lib/mysql-workbench/modules/wb.validation.grt.so
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/wb.mysql.import.grt.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/wb_utils_grt.py' (python)
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/db.mysql.sqlparser.grt.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/dbutils.grt.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/db.mysql.query.grt.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/tools.grt.lua' (lua)
** Message: Initialized Lua module /usr/lib/mysql-workbench/modules/tools.grt.lua (WbTools)
** Message: Trying to load module '/usr/lib/mysql-workbench/modules/catalog_utils.grt.lua' (lua)
** Message: Initialized Lua module /usr/lib/mysql-workbench/modules/catalog_utils.grt.lua (WbUtils)
** Message: Trying to load module '/usr/lib/mysql-workbench/plugins/wb.printing.wbp.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/plugins/db.mysql.wbp.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/plugins/wb.model.editors.wbp.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/plugins/db.checks.wbp.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/plugins/db.mysql.diff.reporting.wbp.so' (cpp)
** Message: Trying to load module '/usr/lib/mysql-workbench/plugins/db.mysql.editors.wbp.so' (cpp)

** (mysql-workbench-bin:4793): WARNING **: Plugin 'wb.tools.quickTables' from module WbTools has invalid type ''
_app_impl has NULL ptr at 7
_app_impl has NULL ptr at 8
DISCONNECT
Connecting to MUNGED
mysql-workbench-bin: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.
Error in my_thread_global_end(): 1 threads didn't exit
[17 May 2010 22:18] Alfredo Kojima
Crash in New Server Instance wizard is fixed.
[20 May 2010 12:26] Johannes Taxacher
fix confirmed in repository
[20 May 2010 13:21] Tony Bedford
An entry has been added to the 5.2.22 changelog:

MySQL Workbench crashed when attempting to connect to a Linux server using an SSH connection.