Bug #59774 Crash when closing query results tab
Submitted: 27 Jan 2011 11:16 Modified: 11 Mar 2011 17:22
Reporter: Robert Richardson Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: SQL Editor Severity:S2 (Serious)
Version:5.3.31 OS:Linux (Debian Squeeze 32bit using Ubuntu LTS .deb installer)
Assigned to: Alfredo Kojima CPU Architecture:Any
Tags: crash, crash

[27 Jan 2011 11:16] Robert Richardson
Description:
MySQL Workbench crashes when closing the query results tab in the SQL Editor, such as performing a quick SELECT * FROM table_name; getting some results, and then attempting to dismiss the tab full of results using its close button.

Here's the command line output when running Workbench from the command line (from launch to crash).

** Message: Gnome keyring daemon seems to not be available. Stored passwords will be lost once quit
/usr/lib/python2.6/dist-packages/Crypto/Util/randpool.py:40: RandomPool_DeprecationWarning: This application uses RandomPool, which is BROKEN in older releases.  See http://www.pycrypto.org/randpool-broken
  RandomPool_DeprecationWarning)
/bin/sh: ifconfig: not found
Ready.

Starting thread...
Thread started
36135 INFO Connecting to SSH server at REDACTED:22 using key /home/bob/.ssh/id_rsa...
/usr/lib/pymodules/python2.6/paramiko/client.py:95: UserWarning: Unknown ssh-rsa host key for REDACTED: fa4a4c2292cc96b2c56bdc7c364fba93
  (key.get_name(), hostname, hexlify(key.get_fingerprint())))
New client connection
client connection established
36135 INFO Tunnel now open ('127.0.0.1', 54785) -> ('REDACTED', 22) -> ('127.0.0.1', 3306)
New client connection
client connection established
36135 INFO Tunnel now open ('127.0.0.1', 54786) -> ('REDACTED', 22) -> ('127.0.0.1', 3306)
** Message: query.explain built-in command is being overwritten

(mysql-workbench-bin:3445): Gtk-CRITICAL **: gtk_container_remove: assertion `GTK_IS_TOOLBAR (container) || widget->parent == GTK_WIDGET (container)' failed
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 a Workbench project, open the SQL editor, connect to an arbitrary database, double-click a table from the Overview, wait for the table's contents to display, then attempt to close the tab the table's contents are displayed within.
[27 Jan 2011 11:33] Valeriy Kravchuk
Thank you for the bug report. Verified on 32-bit Ubuntu 10.04.
[11 Mar 2011 17:22] Johannes Taxacher
fix confirmed in release
[14 Mar 2011 12:00] Tony Bedford
An entry has been added to the 5.2.32 changelog: 

        MySQL Workbench crashed when closing the query results tab in the 
        SQL Editor.