Bug #30248 Query Browser crashes on "create table" when connection has lost
Submitted: 6 Aug 2007 7:08 Modified: 26 May 2009 13:09
Reporter: Sveta Smirnova Email Updates:
Status: Unsupported Impact on me:
None 
Category:MySQL Query Browser Severity:S1 (Critical)
Version:1.2.12 OS:Mac OS X
Assigned to: CPU Architecture:Any

[6 Aug 2007 7:08] Sveta Smirnova
Description:
Query Browser crashes on "create table" when connection has lost

How to repeat:
1. Connect to remote mysqld
2. Be sure connection was successfull and table list in default database has shown
3. Kill remote mysqld
4. Ctrl-click a database and choose "create table"
5. Wait when Query Browser crashes

Suggested fix:
Don't crash, report connection error instead
[27 Sep 2007 5:26] Ruturaj Vartak
Any other query like editing a procedure etc also kills the query-browser
here is my stack trace

*** glibc detected *** /usr/bin/mysql-query-browser-bin: munmap_chunk(): invalid pointer: 0x080ed160 ***
======= Backtrace: =========
/lib/libc.so.6(cfree+0x1bb)[0x6266ab]
/usr/lib/libmysqlclient_r.so.15(my_no_flags_free+0x23)[0x22f7943]
/usr/lib/libmysqlclient_r.so.15[0x231e670]
/usr/lib/libmysqlclient_r.so.15(mysql_close+0x39)[0x231e799]
/usr/lib/libmysqlclient_r.so.15(mysql_reconnect+0x1bb)[0x231e33b]
/usr/lib/libmysqlclient_r.so.15(cli_advanced_command+0x129)[0x231bcc9]
/usr/lib/libmysqlclient_r.so.15(mysql_send_query+0x77)[0x231eae7]
/usr/lib/libmysqlclient_r.so.15(mysql_real_query+0x30)[0x231eb70]
/usr/lib/libmysqlclient_r.so.15(mysql_query+0x35)[0x22f0ee5]
/usr/bin/mysql-query-browser-bin(myx_mysql_query+0xb2)[0x81dbdf2]
/usr/bin/mysql-query-browser-bin(myx_query_execute_direct+0x43)[0x81e9103]
/usr/bin/mysql-query-browser-bin(_ZN17MQQueryDispatcher7executeERKN4Glib7ustringEb+0x52)[0x80ec912]
/usr/bin/mysql-query-browser-bin(_ZN17MQScriptEditorTab17execute_statementERKN4Glib7ustringE+0x62)[0x814b122]
/usr/bin/mysql-query-browser-bin(_ZN17MQScriptEditorTab17do_execute_scriptEbi+0xbc)[0x814bbdc]
/usr/bin/mysql-query-browser-bin(_ZN17MQScriptEditorTab14execute_scriptEb+0x3a)[0x814bf7a]
/usr/bin/mysql-query-browser-bin(_ZN10MQWorkArea14execute_scriptEv+0x54)[0x8111004]
/usr/lib/libglibmm-2.4.so.1(_ZN4Glib17SignalProxyNormal19slot0_void_callbackEP8_GObjectPv+0x4a)[0x7e84e3a]
/lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0x49)[0x45fd0f9]
/lib/libgobject-2.0.so.0(g_closure_invoke+0x12b)[0x45efd9b]
/lib/libgobject-2.0.so.0[0x4600721]
/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x8c7)[0x4601957]
/lib/libgobject-2.0.so.0(g_signal_emit+0x29)[0x4601b19]
/usr/lib/libgtk-x11-2.0.so.0(gtk_button_clicked+0x53)[0x4186d53]
/usr/lib/libgtk-x11-2.0.so.0[0x418899e]
/lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0x49)[0x45fd0f9]
/lib/libgobject-2.0.so.0[0x45ee589]
/lib/libgobject-2.0.so.0(g_closure_invoke+0x12b)[0x45efd9b]
/lib/libgobject-2.0.so.0[0x46008ca]
/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x8c7)[0x4601957]
/lib/libgobject-2.0.so.0(g_signal_emit+0x29)[0x4601b19]
/usr/lib/libgtk-x11-2.0.so.0(gtk_button_released+0x53)[0x4186de3]
/usr/lib/libgtk-x11-2.0.so.0[0x4186e41]
/usr/lib/libgtk-x11-2.0.so.0[0x4257c90]
/lib/libgobject-2.0.so.0[0x45ee589]
/lib/libgobject-2.0.so.0(g_closure_invoke+0x12b)[0x45efd9b]
/lib/libgobject-2.0.so.0[0x4600a83]
/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x68f)[0x460171f]
/lib/libgobject-2.0.so.0(g_signal_emit+0x29)[0x4601b19]
/usr/lib/libgtk-x11-2.0.so.0[0x436cbf8]
/usr/lib/libgtk-x11-2.0.so.0(gtk_propagate_event+0x183)[0x4251053]
/usr/lib/libgtk-x11-2.0.so.0(gtk_main_do_event+0x317)[0x4252257]
/usr/lib/libgdk-x11-2.0.so.0[0x1c015a]
/lib/libglib-2.0.so.0(g_main_context_dispatch+0x182)[0x44f0622]
/lib/libglib-2.0.so.0[0x44f35ff]
/lib/libglib-2.0.so.0(g_main_loop_run+0x1a9)[0x44f39a9]
/usr/lib/libgtk-x11-2.0.so.0(gtk_main+0xb4)[0x42526d4]
/usr/lib/libgtkmm-2.4.so.1(_ZN3Gtk4Main8run_implEv+0x17)[0x21b20a7]
/usr/lib/libgtkmm-2.4.so.1(_ZN3Gtk4Main3runEv+0x22)[0x21b1e92]
/usr/bin/mysql-query-browser-bin(main+0x99e)[0x80e185e]
/lib/libc.so.6(__libc_start_main+0xe0)[0x5d0f70]
/usr/bin/mysql-query-browser-bin(_ZN3Gtk10TextBuffer8on_eraseERKNS_8TextIterES3_+0x49)[0x80deb71]
======= Memory map: ========
00110000-00111000 r-xp 00110000 00:00 0          [vdso]
00111000-00128000 r-xp 00000000 08:01 11328585   /usr/lib/libglade-2.0.so.0.0.7
00128000-00129000 rwxp 00017000 08:01 11328585   /usr/lib/libglade-2.0.so.0.0.7
0012b000-00150000 r-xp 00000000 08:01 11328784   /usr/lib/libpangomm-1.4.so.1.0.25
00150000-00152000 rwxp 00024000 08:01 11328784   /usr/lib/libpangomm-1.4.so.1.0.25
00152000-00153000 r-xp 00000000 08:01 11392313   /usr/lib/gconv/ISO8859-1.so
00153000-00155000 rwxp 00000000 08:01 11392313   /usr/lib/gconv/ISO8859-1.so
00155000-0016f000 r-xp 00000000 08:01 11337124   /usr/lib/libatk-1.0.so.0.1809.1
0016f000-00171000 rwxp 0001a000 08:01 11337124   /usr/lib/libatk-1.0.so.0.1809.1
00173000-0017c000 r-xp 00000000 08:01 11337116   /usr/lib/libXcursor.so.1.0.2
0017c000-0017d000 rwxp 00008000 08:01 11337116   /usr/lib/libXcursor.so.1.0.2
0017f000-00209000 r-xp 00000000 08:01 11337119   /usr/lib/libgdk-x11-2.0.so.0.1000.11
00209000-0020c000 rwxp 0008a000 08:01 11337119   /usr/lib/libgdk-x11-2.0.so.0.1000.11
0020e000-0026e000 r-xp 00000000 08:01 11337207   /usr/lib/libgnomevfs-2.so.0.1800.1
0026e000-00271000 rwxp 0005f000 08:01 11337207   /usr/lib/libgnomevfs-2.so.0.1800.1
00273000-00305000 r-xp 00000000 08:01 17973119   /usr/lib/libgnomeui-2.so.0.1800.1
00305000-00308000 rwxp 00092000 08:01 17973119   /usr/lib/libgnomeui-2.so.0.1800.1
00308000-00309000 rwxp 00308000 00:00 0 
0030b000-00320000 r-xp 00000000 08:01 11328737   /usr/lib/libcairomm-1.0.so.1.0.0
00320000-00321000 rwxp 00014000 08:01 11328737   /usr/lib/libcairomm-1.0.so.1.0.0
00321000-00322000 rwxp 00321000 00:00 0 
00322000-0032c000 r-xp 00000000 08:01 4877704    /lib/libnss_files-2.6.so
0032c000-0032d000 r-xp 00009000 08:01 4877704    /lib/libnss_files-2.6.so
0032d000-0032e000 rwxp 0000a000 08:01 4877704    /lib/libnss_files-2.6.so
0032e000-00349000 r-xp 00000000 08:01 11558568   /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so
00349000-0034a000 rwxp 0001b000 08:01 11558568   /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so
0034a000-0034e000 r-xp 00000000 08:01 1604275    /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
0034e000-0034f000 rwxp 00003000 08:01 1604275    /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
00350000-00391000 r-xp 00000000 08:01 11328785   /usr/lib/libgdkmm-2.4.so.1.0.25
00391000-00394000 rwxp 00040000 08:01 11328785   /usr/lib/libgdkmm-2.4.so.1.0.25
00394000-003a6000 r-xp 00000000 08:01 11556176   /usr/lib/gtk-2.0/immodules/im-scim-bridge.so
003a6000-003a7000 rwxp 00011000 08:01 11556176   /usr/lib/gtk-2.0/immodules/im-scim-bridge.so
003a7000-003ac000 r-xp 00000000 08:01 1604271    /usr/lib/gtk-2.0/2.10.0/loaders/lib/usr/bin/mysql-query-browser: line 103:  8404 Aborted                 $PRG-bin $args
[26 May 2009 13:09] Susanne Ebrecht
Many thanks for writing a bug report. We are on the way to implement full functionality of MySQL Query Browser into MySQL Workbench. Unfortunately you are using an unsupported platform. More informations about supported platforms you will find here:

http://www.mysql.com/support/supportedplatforms/tools.html

More informations about MySQL Workbench you will find here:

http://dev.mysql.com/workbench/