Bug #59034 Trying to mange a linux host via SSH tunnel (or NAT tunnel) leads to crash
Submitted: 18 Dec 2010 22:19 Modified: 1 Mar 2011 14:39
Reporter: Matt Klein Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Workbench: Administration Severity:S2 (Serious)
Version:5.2.31.7115 OS:Windows (Windows 7)
Assigned to: CPU Architecture:Any

[18 Dec 2010 22:19] Matt Klein
Description:
I am running:

1) Windows 7 as host
2) CentOS 5.4 x64 in a VM 

If I use an SSH tunnel (or a NAT port forward) so that the MYSQL running in the VM is available on either localhost:22 or localhost:3306, I am not able to remote manage the instance.

It looks like MYSQL Workbench assumes that because the instance is localhost, it must be Windows, and tries to configure WMI management which actually crashed workbench for some reason.

It seems like there should be a way to skip Windows management if I know that I am tunneling a remote machine onto my local machine.

How to repeat:
1) Install MYSQL in VM using NAT
2) NAT port forward both 22 and 3306 in the localhost to the VM
3) Trying administering the server either via SSH or via direct connect on localhost

Expected: I am able to do this.

Actual: Workbench seems to insist that it is a Windows instance and then crashes during the new server wizard when it is trying to configure windows remote management.
[20 Dec 2010 18:16] Johannes Taxacher
Hi Matt,

could you add the stack for the crash and add this to the post? you can gather that information by right-clicking somewhere in the crash-dialog and select "copy stack to clipboard.
I cannot reproduce the crash on my systems, but I see the problem with setting up an instance withforwarded ports and 
According to your description this looks very much like Bug #58922 - if you can add the stack we can probably verify if its an exact duplicate.
thanks in advance
[20 Dec 2010 19:27] Matt Klein
Exception = System.AccessViolationException
Message = Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
FullText = System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at std.basic_string<char,std::char_traits<char>,std::allocator<char> >.c_str(basic_string<char\,std::char_traits<char>\,std::allocator<char> >* )
   at MySQL.?A0x4861a96a.CppStringToNative(basic_string<char\,std::char_traits<char>\,std::allocator<char> >* str)
   at MySQL.Forms.TextEntryImpl.set_text(TextEntry* self, basic_string<char\,std::char_traits<char>\,std::allocator<char> >* text)
   at MySQL.MCallback2<void\,mforms::TextEntry \*\,std::basic_string<char\,std::char_traits<char>\,std::allocator<char> > const \&>.cpp_callback(TextEntry* a1, basic_string<char\,std::char_traits<char>\,std::allocator<char> >* a2)
   at sigc.internal.signal_emit0<void,sigc::nil>.emit(signal_impl* impl)
   at sigc.signal0<void,sigc::nil>.emit(signal0<void\,sigc::nil>* )
   at mforms.Wizard.next_clicked(Wizard* )
   at MySQL.Forms.WizardImpl.nextClick(Object sender, EventArgs arguments)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
[20 Dec 2010 19:27] Matt Klein
This does look like a duplicate BTW.
[1 Feb 2011 14:39] Valeriy Kravchuk
A duplicate of what bug? Please, specify bug number.
[2 Mar 2011 0: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".