Bug #64549 Workbench crashes upon 'export recordset to an external file'
Submitted: 5 Mar 2012 13:31 Modified: 15 Mar 2012 16:52
Reporter: Bill Bennert Email Updates:
Status: Unsupported Impact on me:
None 
Category:MySQL Workbench: SQL Editor Severity:S2 (Serious)
Version:5.2.38 OS:Linux (Linux 2.6.35-22-generic)
Assigned to: CPU Architecture:Any
Tags: WBBugReporter

[5 Mar 2012 13:31] Bill Bennert
Description:
Workbench crashes upon 'export recordset to an external file'. Has since I started using Workbench at 5.2.35. 
Searched bug reports, did not find any reference to this issue.

How to repeat:
display contents of a table in SQL Editor
click 'export recordset to an external file'
name exported file
click save
<crash>
[5 Mar 2012 14:22] Valeriy Kravchuk
Please, start Workbench from the command line with --log-level=debug3 option. I wonder if we'll get any more details in wb.log or on console.
[8 Mar 2012 13:25] Bill Bennert
ran with --log-level=debug3

Output on terminal:
===================

(mysql-workbench-bin:4172): Gtk-CRITICAL **: gtk_tree_view_unref_tree_helper: assertion `node != NULL' failed
(mysql-workbench-bin:4172): Gtk-CRITICAL **: gtk_tree_view_unref_tree_helper: assertion `node != NULL' failed
(mysql-workbench-bin:4172): Gtk-CRITICAL **: gtk_tree_view_unref_tree_helper: assertion `node != NULL' failed

/usr/bin/mysql-workbench-bin: symbol lookup error: /usr/lib/mysql-workbench/libwbpublic.so.0: undefined symbol: _ZN9ctemplate8Template11GetTemplateERKSsNS_5StripE

Output in wb.log:
===================

08:12:20 [DB1][      WBContext]: Creating WBContext
08:12:20 [INF][      WBContext]: WbContext::init
08:12:21 [DB1][            grt]: Looking for user plugins in /home/[REMOVED]/.mysql/workbench/modules
08:12:21 [DB1][            grt]: Looking for user plugins in /home/[REMOVED]/.mysql/workbench/plugins
08:12:21 [DB1][            grt]: Looking for plugins in /home/[REMOVED]/.mysql/workbench/usr/lib/mysql-workbench/plugins
08:12:21 [DB1][            grt]: MySQL Generic Runtime Environment 4.1.0
08:12:21 [DB1][            grt]:
Type '?' for help.
08:12:21 [DB1][            grt]: Python Shell initialized. (Use Preferences -> General to set language)
08:12:21 [DB1][            grt]: Ready.
08:12:21 [DB1][            grt]:
08:12:21 [INF][      WBContext]: System info:
        MySQL Workbench CE for Linux/Unix version 5.2.38  revision 8753
        Configuration Directory: /home/[REMOVED]/.mysql/workbench
        Data Directory: /usr/share/mysql-workbench
        Cairo Version: 1.10.0
        OS: Linux 2.6.35-22-generic
        CPU: 2x AMD Athlon(tm) II P320 Dual-Core Processor 2100.000 MHz, 7.6 GB RAM
08:12:23 [INF][     SSH tunnel]: Starting tunnel
08:12:23 [DB2][ python context]: About to pyrun '/usr/share/mysql-workbench/sshtunnel.py'
08:12:23 [DB1][ mforms [REMOVED]]: Looking up password for '[ADDRESS REMOVED]' has succeeded
08:12:44 [DB3][SqlEditorSchemaTree]: Fetching object details for [TABLE REMOVED]
08:12:44 [DB3][SqlEditorSchemaTree]: Fetching column data for [TABLE REMOVED]
08:12:45 [DB2][             UI]: recordset_list_changed: editor_index = 0, added = 1
08:12:45 [DB1][             UI]: updating rsets
08:12:45 [DB1][             UI]: show 1, enabled 0
08:12:45 [DB2][             UI]: update_resultsets_from_main
08:12:45 [DB2][             UI]: update_resultsets: editor_index = 0, added = 1
08:12:45 [DB1][             UI]: updating rsets
08:12:45 [DB1][             UI]: show 1, enabled 0
08:12:52 [DB2][             UI]: recordset_list_changed: editor_index = 0, added = 0
08:12:52 [DB2][             UI]: update_resultsets_from_main
08:12:52 [DB2][             UI]: update_resultsets: editor_index = 0, added = 0
08:12:52 [DB1][             UI]: updating rsets
08:12:52 [DB3][SqlEditorSchemaTree]: Fetching object details for [TABLE REMOVED]
08:12:52 [DB3][SqlEditorSchemaTree]: Fetching column data for [TABLE REMOVED]
08:12:53 [DB2][             UI]: recordset_list_changed: editor_index = 0, added = 1
08:12:53 [DB2][             UI]: update_resultsets_from_main
08:12:53 [DB2][             UI]: update_resultsets: editor_index = 0, added = 1
08:12:53 [DB1][             UI]: updating rsets
08:12:53 [DB1][             UI]: show 1, enabled 0
08:12:53 [DB1][             UI]: updating rsets
08:12:53 [DB1][             UI]: show 1, enabled 0
[8 Mar 2012 15:04] Alfredo Kojima
What distribution and package are you using?
[8 Mar 2012 15:11] Bill Bennert
Distribution:
Linux Mint 10 x64 (Ubuntu 10.10)

Package:
mysql-workbench-gpl-5.2.38-1ubu1004-amd64.deb
[14 Mar 2012 14:28] Alfredo Kojima
What version of libctemplate do you have installed?
[15 Mar 2012 12:08] Bill Bennert
Package: libctemplate0
Versions: 
0.97-1 (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_maverick_universe_binary-amd64_Packages) (/var/lib/dpkg/status)
 Description Language: 
                 File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_maverick_universe_binary-amd64_Packages
                  MD5: 0b10762ce60f4ccf4c450ad752748cfc

Reverse Depends: 
  mysql-workbench-gpl,libctemplate0
  libctemplate-dev,libctemplate0 0.97-1
  kraft,libctemplate0
Dependencies: 
0.97-1 - libc6 (2 2.4) libgcc1 (2 1:4.1.1) libstdc++6 (2 4.4.0) 
Provides: 
0.97-1 -
[15 Mar 2012 16:52] Alfredo Kojima
The problem happens because Ubuntu 10.10 ships a different version of libctemplate than 10.04, which the package is meant for. You can upgrade Ubuntu, build your own package or replace libctemplate with the same version that is shipped in Ubuntu 10.04