Bug #92851 Crash when using SSH tunnel to connect to MySQL database
Submitted: 19 Oct 2018 1:20 Modified: 20 Oct 2018 1:40
Reporter: Leandro scott Email Updates:
Status: Unsupported Impact on me:
None 
Category:MySQL Workbench Severity:S1 (Critical)
Version:8.0.12 OS:Ubuntu (Elementary OS Juno)
Assigned to: CPU Architecture:x86

[19 Oct 2018 1:20] Leandro scott
Description:
When configured to connect to a MySQL database using SSH tunneling, mysql workbench is crashing. The only way to connect is to make the tunnel using SSH command line and then use it to tunnel the connection, making workbench believe it's doing a simple direct TCP/IP connection to the database. 

How to repeat:
Configure the connection to use SSH Tunnel, put both the passwords in the key chain and try to connect or test connection.
[19 Oct 2018 1:21] Leandro scott
The crash details core dump

Attachment: mysql-workbench-crash.txt (text/plain), 84.94 KiB.

[20 Oct 2018 0:19] MySQL Verification Team
Edit ssh connectio on Ubuntu

Attachment: 92851_1.png (image/png, text), 375.90 KiB.

[20 Oct 2018 0:19] MySQL Verification Team
SSH connect test

Attachment: 92851_2.png (image/png, text), 355.48 KiB.

[20 Oct 2018 0:21] MySQL Verification Team
Thank you for the bug report. I couildn't repeat please see attached screenshots.
[20 Oct 2018 0:42] Leandro scott
You've tried with Ubuntu, I was using elementary os juno, that is based on Ubuntu 18.04. Maybe this is why you couldn't repeat it. The workbench version you used is the latest 8.0.12?
[20 Oct 2018 1:39] MySQL Verification Team
I checked WorkBench 8.0.12 on Ubuntu 18.04 LTS, please check:

https://www.mysql.com/support/supportedplatforms/workbench.html

Thanks.
[2 Jan 2019 17:18] Michael Daryabeygi
I am having the same exact issue on Ubuntu 18.04 LTS (bionic).

Backtrace:
/lib/x86_64-linux-gnu/libc.so.6(fgets+0x1b)[0x7faad402db3b]
/usr/lib/mysql-workbench/libssh.so.4(+0x1a172)[0x7faad2e3e172]
/usr/lib/mysql-workbench/libssh.so.4(ssh_options_parse_config+0xf2)[0x7faad2e4f30e]
...

I have workbench 8.0.13.

Seems like an invalid option is being passed to the ssh library?
[7 Dec 2019 22:45] Homer Dokes
I'm not sure this issue has been addressed but I have been using 8.0 and older on through 8.0.15 on the same Elementary OS Juno without issue for years.  Suddenly it began crashing on ANY attempt to connect via ssh. Having exhausted all attempts to overcome it I then upgraded to 8.0.18 and it worked.... for about an hour.... now it continues to crash again with every attempt to connect.  I have completely uninstalled and reinstalled versions back to 8.0.15 but still get the same result.

I can concur that it only is an issue with ssh connections. I created new connections directly (through vpn) and they are working.