After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 98472 - Mergeant & MySqlplugin crash
Mergeant & MySqlplugin crash
Status: RESOLVED FIXED
Product: libgda
Classification: Other
Component: MySQL provider
unspecified
Other other
: Normal normal
: GNOME-DB-1-0
Assigned To: Rodrigo Moya
gnome-db Maintainers
Depends on:
Blocks:
 
 
Reported: 2002-11-14 09:48 UTC by ettore
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description ettore 2002-11-14 09:52:25 UTC
Package: mergeant
Severity: major
Version: 0.8.199
Synopsis: Mergeant & MySqlplugin crash
Bugzilla-Product: mergeant
Bugzilla-Component: General
BugBuddy-GnomeVersion: 2.0 (2.0.5)

Description:
Description of Problem: 


Steps to reproduce the problem:
1. Connect to a mysql db (remote or local)
2. In tables & view choose a table, right-click Properties
3. or in query click new query, the same

Actual Results:
Crash

Expected Results:


How often does this happen?
Always

Additional Information:




Debugging Information:

Backtrace was generated from '/usr/bin/mergeant'

(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...[New Thread 16384 (LWP 22735)]
(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...0x40df72e9 in wait4 () from
/lib/libc.so.6

Thread 1 (Thread 16384 (LWP 22735))

  • #0 wait4
    from /lib/libc.so.6
  • #1 sys_sigabbrev
    from /lib/libc.so.6
  • #2 waitpid
    from /lib/libpthread.so.0
  • #3 libgnomeui_module_info_get
    from /usr/lib/libgnomeui-2.so.0
  • #4 __pthread_sighandler
    from /lib/libpthread.so.0
  • #5 sigaction
    from /lib/libc.so.6
  • #6 object_selector_add_object
  • #7 object_selector_create_model_tables_views
  • #8 object_selector_new
  • #9 object_selector_new
  • #10 config_display_plugins_cb
  • #11 g_cclosure_marshal_VOID__VOID
    from /usr/lib/libgobject-2.0.so.0
  • #12 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #13 g_signal_emit_by_name
    from /usr/lib/libgobject-2.0.so.0
  • #14 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #15 gtk_signal_emit
    from /usr/lib/libgtk-x11-2.0.so.0
  • #16 gtk_widget_activate
    from /usr/lib/libgtk-x11-2.0.so.0
  • #17 gtk_menu_shell_activate_item
    from /usr/lib/libgtk-x11-2.0.so.0
  • #18 _gtk_menu_shell_activate
    from /usr/lib/libgtk-x11-2.0.so.0
  • #19 _gtk_marshal_BOOLEAN__BOXED
    from /usr/lib/libgtk-x11-2.0.so.0
  • #20 g_cclosure_new_swap
    from /usr/lib/libgobject-2.0.so.0
  • #21 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #22 g_signal_emit_by_name
    from /usr/lib/libgobject-2.0.so.0
  • #23 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #24 gtk_signal_emit
    from /usr/lib/libgtk-x11-2.0.so.0
  • #25 gtk_widget_send_expose
    from /usr/lib/libgtk-x11-2.0.so.0
  • #26 gtk_widget_event
    from /usr/lib/libgtk-x11-2.0.so.0
  • #27 gtk_propagate_event
    from /usr/lib/libgtk-x11-2.0.so.0
  • #28 gtk_main_do_event
    from /usr/lib/libgtk-x11-2.0.so.0
  • #29 _gdk_events_queue
    from /usr/lib/libgdk-x11-2.0.so.0
  • #30 g_get_current_time
    from /usr/lib/libglib-2.0.so.0
  • #31 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #32 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #33 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #34 gtk_main
    from /usr/lib/libgtk-x11-2.0.so.0
  • #35 bonobo_ui_main
    from /usr/lib/libbonoboui-2.so.0
  • #36 gnome_db_main_run
    from /usr/lib/libgnomedb-2.so.1
  • #37 main
  • #38 __libc_start_main
    from /lib/libc.so.6
  • #0 wait4
    from /lib/libc.so.6




------- Bug moved to this database by unknown@bugzilla.gnome.org 2002-11-14 04:52 -------

The original reporter (ettore@btbs.unimib.it) of this bug does not have an account here.
Reassigning to the exporter, unknown@bugzilla.gnome.org.
Reassigning to the default owner of the component, malerba@gnome-db.org.

Comment 1 Petr Chloupek 2002-11-20 00:40:02 UTC
use HOTFIX in #98670 with:

vi object-selector-ext.c +211
change 2 lines with comments to:

get_dbfield_cols (DbField *field, guint nbcols)
{
        gchar *str=NULL;  //asure str is well defined
        g_return_val_if_fail (field && IS_DB_FIELD (field), NULL);
        g_return_val_if_fail (nbcols == 1, NULL);
        if(field->type != NULL) //don't dereference type if it's NULL
        if (field->length >= 0)
Comment 2 malerba 2002-11-21 08:37:46 UTC
This patch would fix that crashing but does not solve the problem that
field->type appears to be NULL which should never be the case. I think
we should look at the mysql provider and particulary to:
-> the ident of known data types
-> the ident of the data type returned for each table's field

The order in which data are collected is:
-> get a list of known data types and create a ServerDataType object
for each data type
-> for each field in each table, get info on the field and try to find
the corresponding ServerDataType object. Obviously this step has a
problem.

I don't have a mysql server at hand so I can't do the testing myself.
Comment 3 Rodrigo Moya 2002-12-29 21:44:00 UTC
Re-assigning to mysql provider then
Comment 4 Rodrigo Moya 2003-01-18 14:20:14 UTC
This should be fixed now. Please check latest versions and re-open if not.