Re: removing a key



On 29 Nov 2000 18:41:58 -0500, Havoc Pennington wrote:
> 
> Rodrigo Moya <rodrigo gnome-db org> writes:
> > 
> > I'm surely doing something wrong in this function:
> > 
> > void
> > gda_config_remove_key (const gchar *path)
> > {
> >   gconf_engine_unset(get_conf_engine(), path, NULL);
> > }
> > 
> > is that enough to remove a key? I'm getting a SIGSEGV there, in the
> > gconf_engine_unset
> > function. Of course, get_conf_engine() returns always a valid
> > GConfEngine.
> > 
> 
> Looks like it should work, send a backtrace.
> 
here it is, it fails both if the key exists and if it doesn't

???

Breakpoint 1, 0x40026baf in gda_config_remove_key (
    path=0x80dd858 "/gnomedb-fe/Load/Help") at gda-config.c:152
152	  gconf_engine_unset(get_conf_engine(), path, NULL);
(gdb) b gconf_engine_unset
Breakpoint 2 at 0x4036eadd
(gdb) n

Breakpoint 2, 0x4036eadd in gconf_engine_unset () from
/usr/lib/libgconf-1.so.1
(gdb) n
Single stepping until exit from function gconf_engine_unset, 
which has no line number information.
0x4036d8dc in gconf_key_check () from /usr/lib/libgconf-1.so.1
(gdb) n
Single stepping until exit from function gconf_key_check, 
which has no line number information.
0x4036eb78 in gconf_engine_unset () from /usr/lib/libgconf-1.so.1
(gdb) n
Single stepping until exit from function gconf_engine_unset, 
which has no line number information.
0x4036d8dc in gconf_key_check () from /usr/lib/libgconf-1.so.1
(gdb) n
Single stepping until exit from function gconf_key_check, 
which has no line number information.
0x4036ebce in gconf_engine_unset () from /usr/lib/libgconf-1.so.1
(gdb) n
Single stepping until exit from function gconf_engine_unset, 
which has no line number information.
0x4036d89c in gconf_key_check () from /usr/lib/libgconf-1.so.1
(gdb) n
Single stepping until exit from function gconf_key_check, 
which has no line number information.

Program received signal SIGSEGV, Segmentation fault.
0x4036eca5 in gconf_engine_unset () from /usr/lib/libgconf-1.so.1
#0  0x4036eca5 in gconf_engine_unset () from /usr/lib/libgconf-1.so.1
#1  0x40026bc2 in gda_config_remove_key (path=0x80dd858
"/gnomedb-fe/Load/Help")
    at gda-config.c:152
#2  0x804abea in components_save (tab=0x80d0e80) at
gnomedb-fe-config.c:207
#3  0x804acd7 in fe_config_open_dialog () at gnomedb-fe-config.c:231
#4  0x804a47f in fe_preferences_cb (w=0x809f870, user_data=0x0)
    at gnomedb-fe-callbacks.c:84
#5  0x4087753f in verb_to_cb (component=0x809f870, user_data=0x80a1b58, 
    cname=0x80c55b0 "Preferences") at bonobo-ui-compat.c:338
#6  0x4047cf74 in impl_Bonobo_UIComponent_execVerb (servant=0x809f970, 
    cname=0x80c55b0 "Preferences", ev=0xbffff20c) at
bonobo-ui-component.c:120
#7  0x40429b16 in Bonobo_UIComponent_execVerb (_obj=0x809fac0, 
    cname=0x80c55b0 "Preferences", ev=0xbffff20c) at Bonobo-stubs.c:6363
#8  0x40491724 in real_exec_verb (priv=0x809cea8, 
    component_name=0x809f6f0 "gnomedb-fe-0.2.1-910-0", 
    verb=0x80c55b0 "Preferences") at bonobo-win.c:1469
#9  0x404918a5 in exec_verb_cb (item=0x80ac508, priv=0x809cea8)
    at bonobo-win.c:1510
#10 0x4011ad41 in gtk_marshal_NONE__NONE () from
/usr/lib/libgtk-1.2.so.0
#11 0x4014968c in gtk_signal_remove_emission_hook ()
   from /usr/lib/libgtk-1.2.so.0
#12 0x40148af5 in gtk_signal_set_funcs () from /usr/lib/libgtk-1.2.so.0
#13 0x40146bd3 in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0
#14 0x4017d12e in gtk_widget_activate () from /usr/lib/libgtk-1.2.so.0
#15 0x40122714 in gtk_menu_shell_activate_item () from
/usr/lib/libgtk-1.2.so.0
#16 0x401219ba in gtk_menu_shell_deactivate () from
/usr/lib/libgtk-1.2.so.0
#17 0x4011a9cb in gtk_marshal_BOOL__POINTER () from
/usr/lib/libgtk-1.2.so.0
#18 0x40148b33 in gtk_signal_set_funcs () from /usr/lib/libgtk-1.2.so.0
#19 0x40146bd3 in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0
#20 0x4017cfeb in gtk_widget_event () from /usr/lib/libgtk-1.2.so.0
#21 0x4011a935 in gtk_propagate_event () from /usr/lib/libgtk-1.2.so.0
#22 0x40119b5e in gtk_main_do_event () from /usr/lib/libgtk-1.2.so.0
#23 0x401c7027 in gdk_wm_protocols_filter () from
/usr/lib/libgdk-1.2.so.0
#24 0x400632b9 in g_get_current_time () from /usr/lib/libglib-1.2.so.0
#25 0x400638c3 in g_get_current_time () from /usr/lib/libglib-1.2.so.0
#26 0x40063a5c in g_main_run () from /usr/lib/libglib-1.2.so.0
#27 0x40119457 in gtk_main () from /usr/lib/libgtk-1.2.so.0
#28 0x40447539 in bonobo_main () at bonobo-main.c:270
#29 0x40894799 in gnome_db_main (ui_create_func=0x804ad30 <prepare_app>)
    at gnome-db-init.c:74
#30 0x804ad29 in main (argc=1, argv=0xbffffc84) at gnomedb-fe-main.c:101
#31 0x408bbbdc in __libc_start_main () from /lib/libc.so.6






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]