Your comment was added to the bug successfully.
Bug #15903 Segmentation fault
Submitted: 21 Dec 2005 8:49 Modified: 27 Jan 2006 8:52
Reporter: aaaaaa bbbbbb Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Query Browser Severity:S1 (Critical)
Version:1.1.17-2 OS:Linux (Mandriva 2006 kernel 2.6.12-13)
Assigned to: CPU Architecture:Any

[21 Dec 2005 8:49] aaaaaa bbbbbb
Description:
Every time I start mysql-query-browser-1.1.17-2 from the command line, I get this error:

[root@localhost]# mysql-query-browser
/usr/bin/mysql-query-browser: line 20: 30330 Segmentation fault      (core dumped) $PRG-bin

Mysql server version: 5.0.17

Thanks 

S

How to repeat:
It happens every time.
[21 Dec 2005 11:34] Aleksey Kishkin
tested and it works properly for me. sbobber, could you please run it with strace and write here output of strace?
[21 Dec 2005 12:08] aaaaaa bbbbbb
Strace of command

Attachment: strace.log (text/x-log), 14.33 KiB.

[21 Dec 2005 12:11] aaaaaa bbbbbb
I have uploaded the log of strace as your request.

Thanks Aleksey,

S
[28 Dec 2005 14:30] Mathieu Virbel
Same for me with :
$ mysql-query-browser --version
Gnome mysql-query-browser 1.1.17

Here is gdb output : 
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1231530304 (LWP 5383)]
0xb7771cb3 in Gtk::Widget::set_sensitive () from /usr/lib/libgtkmm-2.4.so.1
(gdb) bt
#0  0xb7771cb3 in Gtk::Widget::set_sensitive () from /usr/lib/libgtkmm-2.4.so.1
#1  0x0813f36c in MQBookmarkBrowser::bookmark_select ()
#2  0xb7213876 in Glib::SignalProxyNormal::slot0_void_callback ()
   from /usr/lib/libglibmm-2.4.so.1
#3  0xb6f21273 in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#4  0xb6f14678 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#5  0xb6f2489c in g_signal_stop_emission () from /usr/lib/libgobject-2.0.so.0
#6  0xb6f25e48 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#7  0xb6f26199 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#8  0xb74236fe in _gtk_tree_selection_emit_changed ()
   from /usr/lib/libgtk-x11-2.0.so.0
#9  0xb743d04f in gtk_tree_view_set_model () from /usr/lib/libgtk-x11-2.0.so.0
#10 0xb7765718 in Gtk::TreeView::set_model () from /usr/lib/libgtkmm-2.4.so.1
#11 0x0816e95d in MGBrowserList::set_store ()
#12 0x081419a1 in MQBookmarkBrowser::MQBookmarkBrowser ()
#13 0x0813c3c8 in MQBookmarks::MQBookmarks ()
#14 0x080e620b in MQMainWindow::MQMainWindow ()
#15 0x080e661b in MQMainWindow::create ()
#16 0x080d729f in main ()
[2 Jan 2006 1:01] [ name withheld ]
I can verify the segfault exists on Debian. Here's a patch that I added to Debian's version to fix this problem.

--- mysql-query-browser-1.1.17.orig/mysql-query-browser/source/linux/MQBookmarkBrowser.cc
+++ mysql-query-browser-1.1.17/mysql-query-browser/source/linux/MQBookmarkBrowser.cc
@@ -257,7 +257,8 @@
   {
     for (unsigned int i=0; i < _menu.items().size(); i++)
       _menu.items()[i].set_sensitive(false);
-    _menu.items()[3].set_sensitive(true); // New Folder
+    if( _menu.items().size() > 3 )
+      _menu.items()[3].set_sensitive(true); // New Folder
   }
 }
[17 Jan 2006 10:17] Valeriy Kravchuk
Please, try to repeat with a newer version, 1.1.18 (http://dev.mysql.com/downloads/query-browser/1.1.html), and inform about the results.
[17 Jan 2006 13:01] aaaaaa bbbbbb
I've tryed with the mysql-query-browser-1.1.18-1.i386.rpm, but the error still the same.
[26 Jan 2006 17:35] Jorge del Conde
I can't reproduce this problem using 1.1.19.  Can you please try to reproduce it with the latest version ?

Thanks!
[27 Jan 2006 8:52] aaaaaa bbbbbb
Sorry but in the download page, the latest version for Linux is the 1.1.18.1, where I'm wrong?
[20 Mar 2006 0:57] Dan Thurman
I get the same errors as reported in this bug report for Fedora Core 5, Test 3
This problem is defininity repeatable, at least on Fedora Core 5.

Some problems are noted:

1) To build Query-Browser v1.1.8-1, it required that GtkHtml v3.6
be available.  I had a newer version but it was not accepted.

2) GDB reported:

[root@copper linux]# MQB_DIR=/usr; export MQB_DIR
[root@copper linux]# gdb mysql-query-browser-bin
GNU gdb Red Hat Linux (6.3.0.0-1.122rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/i686/nosegneg/libthread_db.so.1".

(gdb) run
Starting program: /usr/src/redhat/BUILD/mysql-query-browser-1.1.18/mysql-query-browser/source/linux/mysql-query-browser-bin
Reading symbols from shared object read from target memory...done.
Loaded system supplied DSO at 0x4fd000
[Thread debugging using libthread_db enabled]
[New Thread -1208838480 (LWP 31468)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208838480 (LWP 31468)]
0x00717e0d in Gtk::Widget::set_sensitive () from /usr/lib/libgtkmm-2.4.so.1

(gdb) bt
#0  0x006cee0d in Gtk::Widget::set_sensitive () from /usr/lib/libgtkmm-2.4.so.1
#1  0x080d73cd in MQBookmarkBrowser::bookmark_select (this=0x857c830) at MQBookmarkBrowser.cc:260
#2  0x07cc2e3a in Glib::SignalProxyNormal::slot0_void_callback () from /usr/lib/libglibmm-2.4.so.1
#3  0x003691c9 in g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0
#4  0x0035bf6d in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#5  0x0036cd21 in g_signal_override_class_closure () from /usr/lib/libgobject-2.0.so.0
#6  0x0036df47 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#7  0x0036e109 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#8  0x00f0671f in gtk_tree_model_sort_new_with_model () from /usr/lib/libgtk-x11-2.0.so.0
#9  0x00f181cf in gtk_tree_view_set_model () from /usr/lib/libgtk-x11-2.0.so.0
#10 0x006c31be in Gtk::TreeView::set_model () from /usr/lib/libgtkmm-2.4.so.1
#11 0x08108000 in MGBrowserList::set_store (this=0x857c830, store=@0xbfdba460) at MGBrowserList.cc:171
#12 0x080d9598 in MQBookmarkBrowser (this=0x857c830, bookmarks=0x8571f1c) at MQBookmarkBrowser.cc:42
#13 0x080d448c in MQBookmarks (this=0x8571f1c, add_xml=0x85118d0) at MQBookmarks.cc:34
#14 0x0807c30f in MQMainWindow (this=0x8571ee0, win=0x84785b0) at MQMainWindow.cc:45
#15 0x0807c7b9 in MQMainWindow::create () at ../../../mysql-gui-common/source/linux/MGGladeXML.h:77
#16 0x0806a772 in main (argc=139507992, argv=0x8068290) at main.cc:286

Comments say to get v1.1.9 release and try again but I am not able to obtain
this source code.  It is not accessable via your website as far as I can tell.

Dan