Bug #15176 Crashes when dragging table name into Expanded Query Area
Submitted: 23 Nov 2005 6:53 Modified: 30 Dec 2005 6:56
Reporter: [ name withheld ] Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Query Browser Severity:S3 (Non-critical)
Version:1.1.17 OS:Linux (Debian Linux)
Assigned to: Alfredo Kojima CPU Architecture:Any

[23 Nov 2005 6:53] [ name withheld ]
Description:
This is forwarded from http://bugs.debian.org/340309  . I was able to verify that the bug occurs and the segfault is repeatable.

Partial backtrace is provided,

#0  0xb75b0f3e in Gdk::Window::get_origin () from /usr/lib/libgdkmm-2.4.so.1
#1  0x0810d9b0 in MQWorkArea::show_table_add_menu (this=0x846f548,
    view=0x87149b0, below=false) at MQWorkArea.cc:3577
#2  0x0810dc55 in MQWorkArea::query_drag_motion (this=0x846f548,
    context=@0xbfd40058, x=507, y=107, time=48632185) at MQWorkArea.cc:3611
#3  0x0812fdcf in sigc::internal::slot_call4<sigc::bound_mem_functor4<bool, MQWorkArea, Glib::RefPtr<Gdk::DragContext> const&, int, int, uns
igned int>, bool, Glib::RefPtr<Gdk::DragContext> const&, int, int, unsigned int>::call_it (
    rep=0x86e8390, a_1=@0xbfd40058, a_2=@0xbfd3ff48, a_3=@0xbfd3ff48,
    a_4=@0xbfd3ff48) at mem_fun.h:2055
#4  0xb77a5b15 in (anonymous namespace)::Widget_signal_drag_motion_callback ()
   from /usr/lib/libgtkmm-2.4.so.1
#5  0xb7393ef6 in _gtk_marshal_BOOLEAN__OBJECT_INT_INT_UINT ()
   from /usr/lib/libgtk-x11-2.0.so.0
#6  0xb709067b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#7  0xb709fc6d in g_signal_stop_emission () from /usr/lib/libgobject-2.0.so.0
#8  0xb70a0e05 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#9  0xb70a4694 in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0
#10 0xb7327e75 in _gtk_drag_dest_handle_event ()
   from /usr/lib/libgtk-x11-2.0.so.0
#11 0xb73276f1 in gtk_drag_set_default_icon ()
   from /usr/lib/libgtk-x11-2.0.so.0
#12 0xb7327730 in gtk_drag_set_default_icon ()
   from /usr/lib/libgtk-x11-2.0.so.0
.....

How to repeat:
If, upon startup, one clicks on a table name from the Schemata list and
drags it into the query area, the application crashes (rather than showing
"drop action" pop-up as expected).

This bug occurs when view is "Expanded Query Area" upon startup.  It
does not occur if the view is "Normal View", or if the view is changed
from "Normal View" to "Expanded Query Area" after startup, though in
this case the "drop action" pop-up is in the middle of the query area,
rather than at the bottom, as expected.

NOTE: The program *must* be started with "Expanded Query Area" open per default for this error to occur.

Suggested fix:
.
[23 Nov 2005 8:05] Jorge del Conde
Thanks for your bug report.  I was able to reproduce this under FC4
[30 Dec 2005 6:56] Alfredo Kojima
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html