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] Miguel Solorzano
Edit ssh connectio on Ubuntu

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

[20 Oct 2018 0:19] Miguel Solorzano
SSH connect test

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

[20 Oct 2018 0:21] Miguel Solorzano
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] Miguel Solorzano
I checked WorkBench 8.0.12 on Ubuntu 18.04 LTS, please check:

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

Thanks.
[2 Jan 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?