Segmentation fault in gconftool-2 for --recursive-list and --all-dirs


I get a seg fault by doing the following steps:

# gconftool-2 --direct \ 
   --set --type=string /apps/epiphany/general/homepage 

# gconftool-2 --direct \ 
--config-source=xml:readonly:/etc/opt/gnome/gconf/gconf.xml.mandatory \
   -R / 

The same thing happens when we try the option --all-dirs instead of

However, both occur ONLY when using the --direct option.

Version of GConf: Platform: SuSE and Redhat.

When I debugged I found this stacktrace:

0x4039121b in strlen () from /lib/i686/ 
(gdb) bt 
#0  0x4039121b in strlen () from /lib/i686/
#1  0x40172c04 in gconf_concat_dir_and_key (dir=0xbffffac4 "/", 
                                             key=0x73707061 "") at
#2  0x40181b23 in qualify_entries (entries=0x8057100, 
                                            dir=0xbffffac4 "/") at
#3  0x401820dc in gconf_engine_all_dirs (conf=0x8058710, 
                                            dir=0xbffffac4 "/",
err=0x0) at gconf.c:1615
#4  0x0804b95f in do_recursive_list (conf=0x8058710, 
                                           args=0x8056e10) at
#5  0x0804b441 in main (argc=134579984, 
                                           argv=0xbffff944) at

Further, in the code, it looks like the problem is starting to happen

      GConfEntry *entry = tmp->data;
      gchar *full;

	full = gconf_concat_dir_and_key (dir, entry->key);

I found that tmp->data does not actually look like GConfEntry *,
but rather like GConfEntry itself, because assigning &(tmp->data)
is getting it beyound this point (though crashing somewhere else)

I am not able to go beyond this though ---

Has someone faced this problem before and is there any available
fix for this.

Thanks a lot for any help


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