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 101353 - crashes when I attempt to look at table properties
crashes when I attempt to look at table properties
Status: RESOLVED FIXED
Product: mergeant
Classification: Deprecated
Component: Tables & Views
unspecified
Other other
: Normal critical
: GNOME-DB-1-0
Assigned To: malerba
gnome-db Maintainers
: 101202 101677 102447 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2002-12-16 15:33 UTC by Hugh.Bragg
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch for fixing crash on table props dialog opening (1.93 KB, patch)
2002-12-21 02:47 UTC, Rémi Cohen-Scali
none Details | Review
Set sequence shortcut unsensitive when sequence feature not available (2.93 KB, patch)
2002-12-21 06:10 UTC, Rémi Cohen-Scali
none Details | Review

Description Hugh.Bragg 2002-12-16 15:34:37 UTC
Package: mergeant
Severity: normal
Version: 0.9.0
Synopsis: crashes when I attempt to look at table properties
Bugzilla-Product: mergeant
Bugzilla-Component: Tables & Views

Description:
simple to recreate


Debugging Information:

(no debugging symbols found)...[New Thread 8192 (LWP 15963)]
0x420ae169 in wait4 () from /lib/i686/libc.so.6
  • #0 wait4
    from /lib/i686/libc.so.6
  • #1 __DTOR_END__
    from /lib/i686/libc.so.6
  • #2 waitpid
    from /lib/i686/libpthread.so.0
  • #3 libgnomeui_module_info_get
    from /usr/lib/libgnomeui-2.so.0
  • #4 __pthread_sighandler
    from /lib/i686/libpthread.so.0
  • #5 <signal handler called>
  • #6 table_edit_new
  • #7 table_edit_new
  • #8 table_edit_new
  • #9 table_edit_dialog_new
  • #10 main_page_table_get_row
  • #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 signal_emit_unlocked_R
    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_button_release
    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_type_class_meta_marshal
    from /usr/lib/libgobject-2.0.so.0
  • #21 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #22 signal_emit_unlocked_R
    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_event_internal
    from /usr/lib/libgtk-x11-2.0.so.0
  • #26 gtk_propagate_event
    from /usr/lib/libgtk-x11-2.0.so.0
  • #27 gtk_main_do_event
    from /usr/lib/libgtk-x11-2.0.so.0
  • #28 gdk_event_dispatch
    from /usr/lib/libgdk-x11-2.0.so.0
  • #29 g_main_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #30 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #31 g_main_context_iterate
    from /usr/lib/libglib-2.0.so.0
  • #32 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #33 gtk_main
    from /usr/lib/libgtk-x11-2.0.so.0
  • #34 bonobo_ui_main
    from /usr/lib/libbonoboui-2.so.0
  • #35 gnome_db_main_run
    from /usr/lib/libgnomedb-2.so.1
  • #36 main
  • #37 __libc_start_main
    from /lib/i686/libc.so.6
  • #0 wait4
    from /lib/i686/libc.so.6
  • #1 __DTOR_END__
    from /lib/i686/libc.so.6
  • #2 waitpid
    from /lib/i686/libpthread.so.0
  • #3 libgnomeui_module_info_get
    from /usr/lib/libgnomeui-2.so.0
  • #4 __pthread_sighandler
    from /lib/i686/libpthread.so.0
  • #5 <signal handler called>
  • #6 table_edit_new
  • #7 table_edit_new




------- Bug moved to this database by unknown@bugzilla.gnome.org 2002-12-16 10:34 -------

The original reporter (Hugh.Bragg@bibit.com) 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 holger.thon 2002-12-19 13:36:50 UTC
i fixed the schemas in freetds and sybase comparing types and arg cnt,
but this did not fix the segfault or produced another one.

This is what i found out:
Both providers return FALSE for GDA_CONNECTION_FEATURE_SEQUENCES 
(supports) and NULL for GDA_CONNECTION_SCHEMA_SEQUENCES (get_schema)
at the moment.

Though mergeant crashes in tableedit.c: update_seq_list_cb(): 534, 
because te->combobox is NULL. 

** Message: MESSAGE: Msg 5701, Level 10, State 1, Server linux2, Line 1
Changed database context to 'master'.

(mergeant:31477): GLib-GObject-WARNING **: invalid cast from (NULL)
pointer to `GtkCombo'

(mergeant:31477): Gtk-CRITICAL **: file gtkcombo.c: line 982
(gtk_combo_set_popdown_strings): assertion `GTK_IS_COMBO (combo)' failed

(mergeant:31477): GLib-GObject-WARNING **: invalid cast from (NULL)
pointer to `GtkCombo'

Program received signal SIGSEGV, Segmentation fault.

Thread 16384 (LWP 31477)

  • #0 update_seq_list_cb
    at tableedit.c line 534
  • #1 table_edit_initialize
    at tableedit.c line 398
  • #2 table_edit_new
    at tableedit.c line 118
  • #3 table_edit_dialog_new
    at tableedit.c line 1042
  • #4 edit_table_cb
    at mainpagetable.c line 436
  • #5 g_cclosure_marshal_VOID__VOID
    from /usr/lib/libgobject-2.0.so.0
  • #6 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #7 g_signal_emit_by_name
    from /usr/lib/libgobject-2.0.so.0
  • #8 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #9 gtk_signal_emit
    from /usr/lib/libgtk-x11-2.0.so.0
  • #10 gtk_widget_activate
    from /usr/lib/libgtk-x11-2.0.so.0
  • #11 gtk_menu_shell_activate_item
    from /usr/lib/libgtk-x11-2.0.so.0
  • #12 _gtk_menu_shell_activate
    from /usr/lib/libgtk-x11-2.0.so.0
  • #13 _gtk_marshal_BOOLEAN__BOXED
    from /usr/lib/libgtk-x11-2.0.so.0
  • #14 g_cclosure_new_swap
    from /usr/lib/libgobject-2.0.so.0
  • #15 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #16 g_signal_emit_by_name
    from /usr/lib/libgobject-2.0.so.0
  • #17 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #18 gtk_signal_emit
    from /usr/lib/libgtk-x11-2.0.so.0
  • #19 gtk_widget_send_expose
    from /usr/lib/libgtk-x11-2.0.so.0
  • #20 gtk_widget_event
    from /usr/lib/libgtk-x11-2.0.so.0
  • #21 gtk_propagate_event
    from /usr/lib/libgtk-x11-2.0.so.0
  • #22 gtk_main_do_event
    from /usr/lib/libgtk-x11-2.0.so.0
  • #23 _gdk_events_queue
    from /usr/lib/libgdk-x11-2.0.so.0
  • #24 g_get_current_time
    from /usr/lib/libglib-2.0.so.0
  • #25 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #26 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #27 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #28 gtk_main
    from /usr/lib/libgtk-x11-2.0.so.0
  • #29 bonobo_ui_main
    from /usr/lib/libbonoboui-2.so.0
  • #30 gnome_db_main_run
    at gnome-db-init.c line 104
  • #31 main
    at mergeant.c line 152

Comment 2 David Kennedy 2002-12-20 16:07:29 UTC
*** Bug 101202 has been marked as a duplicate of this bug. ***
Comment 3 David Kennedy 2002-12-20 16:07:38 UTC
*** Bug 101677 has been marked as a duplicate of this bug. ***
Comment 4 David Kennedy 2002-12-20 16:37:00 UTC
A few traces in 0.8.199, and bug 98670 looks similar. Confirming NEW
Comment 5 Rémi Cohen-Scali 2002-12-21 02:45:47 UTC
I looked a little bit because I ran into it and here is what I found:
The crash occurs in update_seq_list_cb when accessing to the combobox
used for displaying  sequences, but badly this combo have not been
created in table_edit_build because wid->conf->srv->features.sequences
is false. To avoid crash all access to combobox field should be
feature conditional.
I tried, as a test to verify, to create the combo when
features.sequences is false => the crash vanish.
Is my analysis correct ?
If this is true I attached a patch for make use of combobox only when
seq feature is available
Comment 6 Rémi Cohen-Scali 2002-12-21 02:47:06 UTC
Created attachment 13137 [details] [review]
Patch for fixing crash on table props dialog opening
Comment 7 Rémi Cohen-Scali 2002-12-21 06:07:44 UTC
Added a patch to set sequence toolbar shortcut (gnome-db-shortcut)
unsensitive when they (sequences) are not available. 
Not sure it is the right thing to do, nevertheless it let me learn a
lot. Hope it will be usefull.
Comment 8 Rémi Cohen-Scali 2002-12-21 06:10:01 UTC
Created attachment 13139 [details] [review]
Set sequence shortcut unsensitive when sequence feature not available
Comment 9 malerba 2002-12-27 21:21:15 UTC
Applied the patch along with some modifications.
Comment 10 David Kennedy 2003-01-04 01:32:44 UTC
*** Bug 102447 has been marked as a duplicate of this bug. ***