Bug #49245 Crash on "Append selected items to SQL script"
Submitted: 1 Dec 2009 0:57 Modified: 8 Jan 2010 16:32
Reporter: Kolbe Kegel Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S1 (Critical)
Version:5.2.10 Beta OS:Linux (mysql-workbench-oss-5.2.8-1ubu804-amd64.deb)
Assigned to: Alfredo Kojima CPU Architecture:Any

[1 Dec 2009 0:57] Kolbe Kegel
Description:
WB crashes when I select "Append selected items to SQL script" in the History tab of the SQL Editor interface.

How to repeat:
1) Open a Connection to start Querying
2) Click the History tab
3) Right-click in the right pane (with "#" and "SQL" headers)
4) Click on blank space and select "Append selected items to SQL script"

glibmm-ERROR **: 
unhandled exception (type std::exception) in signal handler:
what: vector::_M_range_check

Suggested fix:
Clearly this should not cause a crash...
[1 Dec 2009 1:00] Kolbe Kegel
Crash only occurs if there are no items listed in History.

Unsurprisingly, crash also occurs if you select ""Replace SQL script with selected items" from the same menu.
[1 Dec 2009 18:18] Johannes Taxacher
fixed in 5.2.10
[1 Dec 2009 18:20] Kolbe Kegel
Crash reproduced as originally described in 5.2.10.
[30 Dec 2009 20:08] Alfredo Kojima
I am unable to repeat this with neither latest version nor 5.2.10 Ubuntu 9.04 deb. 
If you really can still repeat this with latest version, please provide some more details, perhaps a screenshot right before clicking the menu item.
[30 Dec 2009 20:10] Alfredo Kojima
Found out that you need to NOT execute any queries for crash to happen.
[7 Jan 2010 15:49] Johannes Taxacher
fix confirmed on 9.10
as it was also repeatable on that platform i consider this fixed now.
will be included in 5.2.12
[8 Jan 2010 16:32] Tony Bedford
An entry was added to the 5.2.12 changelog:

In the SQL Editor, if an item in the History tab was right-clicked, and the menu option Append selected items to SQL script selected, then MySQL Workbench generated an unhandled exception:

glibmm-ERROR **: 
unhandled exception (type std::exception) in signal handler:
what: vector::_M_range_check