Bug #80548 Stored Procedure Crash
Submitted: 28 Feb 2016 21:13 Modified: 28 Feb 2016 22:18
Reporter: Funieru Bogdan Email Updates:
Status: Duplicate Impact on me:
Category:MySQL Workbench Severity:S2 (Serious)
Version:6.3.6 OS:Windows (Win 10 X64 - 1151)
Assigned to: CPU Architecture:Any
Tags: no edit access, stored procedure, Stored procedure crash

[28 Feb 2016 21:13] Funieru Bogdan
The bug is represented in the X86 bit version more aggressively and a little bit less, but with no explanation in the X64 version. 
The setup: Mysql Server ver 5.5.47 on Ubuntu server 14.04.03 with ISPConfig
The Setup inside is a DB created on a domain, with full grant on that DB.
Adjacent another user is created inside Mysql with execute procedure permit, for security reasons.
The problem: when you try to alter the stored procedure, with the second user, the one with permit to only call the SP, and not to alter them. After clicking ( right click on the sp ) the X86 version crashes totally, the debug sent me to a System.AccessViolationException in mforms.wr.dll. On the X64 version i got the crash after a repeat of 2 or 3 times. The first times on the x64 version the Workbench exited without any notice.
The solution was to change to the right user, the error was caused by the lack of rights to the second user. There should be an exception when this happens, and avoid the crash of the app.

How to repeat:
Create user with privileges to only call SP, not alter them.
Right click on procedure to alter it.
X86 version will result in a crash with dump rep.
X64 version will result in abrupt exit, with no warning, occasionally, crash 

Suggested fix:
Go with version 6.2.5 or log into with a user that has the necessary rights.
[28 Feb 2016 22:12] MySQL Verification Team
Thank you for the bug report.

 	[Managed to Native Transition]	
>	mforms.wr.dll!MenuItemEventTarget.MenuItemClick(object sender, System.EventArgs e)	Unknown
 	System.Windows.Forms.dll!System.Windows.Forms.ToolStripItem.RaiseEvent(object key, System.EventArgs e)	Unknown
 	System.Windows.Forms.dll!System.Windows.Forms.ToolStripMenuItem.OnClick(System.EventArgs e)	Unknown
 	System.Windows.Forms.dll!System.Windows.Forms.ToolStripItem.HandleClick(System.EventArgs e)	Unknown
 	System.Windows.Forms.dll!System.Windows.Forms.ToolStripItem.HandleMouseUp(System.Windows.Forms.MouseEventArgs e)	Unknown
 	System.Windows.Forms.dll!System.Windows.Forms.ToolStrip.OnMouseUp(System.Windows.Forms.MouseEventArgs mea)	Unknown
 	System.Windows.Forms.dll!System.Windows.Forms.ToolStripDropDown.OnMouseUp(System.Windows.Forms.MouseEventArgs mea)	Unknown
 	System.Windows.Forms.dll!System.Windows.Forms.Control.WmMouseUp(ref System.Windows.Forms.Message m, System.Windows.Forms.MouseButtons button, int clicks)	Unknown
 	System.Windows.Forms.dll!System.Windows.Forms.Control.WndProc(ref System.Windows.Forms.Message m)	Unknown
 	System.Windows.Forms.dll!System.Windows.Forms.ToolStrip.WndProc(ref System.Windows.Forms.Message m)	Unknown
 	System.Windows.Forms.dll!System.Windows.Forms.ToolStripDropDown.WndProc(ref System.Windows.Forms.Message m)	Unknown
 	System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.Callback(System.IntPtr hWnd, int msg, System.IntPtr wparam, System.IntPtr lparam)	Unknown
 	[Native to Managed Transition]	
 	[Managed to Native Transition]	
 	System.Windows.Forms.dll!System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(System.IntPtr dwComponentID, int reason, int pvLoopData)	Unknown
 	System.Windows.Forms.dll!System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(int reason, System.Windows.Forms.ApplicationContext context)	Unknown
 	System.Windows.Forms.dll!System.Windows.Forms.Application.ThreadContext.RunMessageLoop(int reason, System.Windows.Forms.ApplicationContext context)	Unknown
 	MySQLWorkbench.exe!MySQL.GUI.Workbench.Program.Main(string[] Args)	Unknown
[28 Feb 2016 22:18] MySQL Verification Team
duplicate of bug: https://bugs.mysql.com/bug.php?id=79871.