Bug #58833 Opening snippet tab crashes the workbench
Submitted: 9 Dec 2010 8:11 Modified: 5 Jan 2011 17:12
Reporter: Daniel Seif Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: SQL Editor Severity:S1 (Critical)
Version:5.2.31 OS:Linux (Ubuntu 10.04 LTS)
Assigned to: Alfredo Kojima CPU Architecture:Any
Tags: regression, snippet

[9 Dec 2010 8:11] Daniel Seif
Description:
After upgrading to 5.2.31, opening the tab "Snippet" crashes the workbench. The error output is:

** Message: query.explain built-in command is being overwritten
mysql-workbench-bin: /usr/include/boost/smart_ptr/shared_ptr.hpp:418: T* boost::shared_ptr< <template-parameter-1-1> >::operator->() const [with T = Sql_editor]: Assertion `px != 0' failed.
Aborted

How to repeat:
Open Workbench
Open SQL Editor
Click on Tab "Snippet"
[9 Dec 2010 8:56] Valeriy Kravchuk
Verified just as described. This is a regression bug.
[9 Dec 2010 16:55] Alfredo Kojima
bug #58845 marked as duplicate
[13 Dec 2010 12:35] Johannes Taxacher
fix confirmed in repository
[5 Jan 2011 17:12] Tony Bedford
An entry has been added to the 5.2.31a changelog:

Opening the Snippets tab in the SQL Editor caused MySQL Workbench to crash with the error:

** Message: query.explain built-in command is being overwritten
mysql-workbench-bin: /usr/include/boost/smart_ptr/shared_ptr.hpp:418: T*
boost::shared_ptr< <template-parameter-1-1> >::operator->() const [with T = Sql_editor]:
Assertion `px != 0' failed.
Aborted