Bug #61988 Workbench crash when applying a Stored Procedure change
Submitted: 26 Jul 2011 15:53 Modified: 16 Nov 2011 2:31
Reporter: Richard Thompson Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: SQL Editor Severity:S3 (Non-critical)
Version:5.2.34 OS:Linux (Ubuntu 11.04)
Assigned to: CPU Architecture:Any

[26 Jul 2011 15:53] Richard Thompson
Description:
You are able to generate multiple "Apply SQL Script to Database" dialogues from one Routine editor window by clicking the "Apply" button on the Routine editor window multiple times.

Attempting to apply the SQL Script from any of the "Apply SQL Script to Database" dialogue, except the last one created, will crash the Workbench.

How to repeat:
Open the Workbench and connect to a database with one or more Routines.

Right-click on a routine in the tree and select "Alter Routine...".

Make a change to the Routine and then click the "Apply" button on the Routine Editor window to create an "Apply SQL Script to Database" dialogue.

Without closing the "Apply SQL Script to Database" dialogue, return to the Routine Editor and click the "Apply" button again to create a second "Apply SQL Script to Database" dialogue.

Without closing the second "Apply SQL Script to Database" dialogue, return to the first "Apply SQL Script to Database" dialogue and click the "Apply" button.

Suggested fix:
Prevent the User from creating multiple "Apply SQL Script to Database" dialogues from a simple Routine editor window.
[26 Jul 2011 22:47] MySQL Verification Team
Thank you for the bug report.

** (mysql-workbench-bin:1991): WARNING **: Trying to turn past the last page of the wizard
Segmentation fault
*** Segmentation fault
Register dump:

 RAX: 0000000002d5c440   RBX: 0000000001b65680   RCX: 0000000000000000
 RDX: 0000000000000003   RSI: 0000000002cdc000   RDI: 00007fffacc22fa0
 RBP: 0000000002cdc000   R8 : 0000000002d64190   R9 : 0000000000000000
 R10: 0000000000000021   R11: 0000000002d641b8   R12: 00007fffacc23080
 R13: 00000000024d5630   R14: 00007fffacc22ed0   R15: 00007fffacc22ec0
 RSP: 00007fffacc22de8

 RIP: 0000001100000000   EFLAGS: 00010206

 CS: 0033   FS: 0000   GS: 0000

 Trap: 0000000e   Error: 00000014   OldMask: 00002000   CR2: 00000000

 FPUCW: 0000037f   FPUSW: 00000020   TAG: 00000000
 RIP: 00000000   RDP: 00000000

 ST(0) 0000 0000000000000000   ST(1) 0000 0000000000000000
 ST(2) 0000 0000000000000000   ST(3) 0000 0000000000000000
 ST(4) 0000 0000000000000000   ST(5) 0000 0000000000000000
 ST(6) ffff d3c8000000000000   ST(7) 8000 8000000000000000
 mxcsr: 1fa0
 XMM0:  00000000000000000000000000000000 XMM1:  00000000000000000000000000000000
 XMM2:  00000000000000000000000000000000 XMM3:  00000000000000000000000000000000
 XMM4:  00000000000000000000000000000000 XMM5:  00000000000000000000000000000000
 XMM6:  00000000000000000000000000000000 XMM7:  00000000000000000000000000000000
 XMM8:  00000000000000000000000000000000 XMM9:  00000000000000000000000000000000
 XMM10: 00000000000000000000000000000000 XMM11: 00000000000000000000000000000000
 XMM12: 00000000000000000000000000000000 XMM13: 00000000000000000000000000000000
 XMM14: 00000000000000000000000000000000 XMM15: 00000000000000000000000000000000

Backtrace:
miguel@lempa:~$
[16 Nov 2011 2:31] Philip Olson
Fixed as of 5.2.36:

+        Within the <guimenu>Routine Editor</guimenu>, opening multiple
+        <guimenu>Apply SQL Script to Database</guimenu> dialogues and
+        then executing one, except for the last one opened, would crash
+        &workbench;.