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



Hi,

I get a seg fault by doing the following steps:

# gconftool-2 --direct \ 
  
--config-source=xml:readwrite:/etc/opt/gnome/gconf/gconf.xml.mandatory
\
   --set --type=string /apps/epiphany/general/homepage www.google.com 

# 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
-R.

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

Version of GConf: 2.4.0.1 Platform: SuSE and Redhat.

When I debugged I found this stacktrace:

0x4039121b in strlen () from /lib/i686/libc.so.6 
(gdb) bt 
#0  0x4039121b in strlen () from /lib/i686/libc.so.6
#1  0x40172c04 in gconf_concat_dir_and_key (dir=0xbffffac4 "/", 
                                             key=0x73707061 "") at
gconf-internals.c:935
#2  0x40181b23 in qualify_entries (entries=0x8057100, 
                                            dir=0xbffffac4 "/") at
gconf.c:1413
#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
gconftool.c:1128
#5  0x0804b441 in main (argc=134579984, 
                                           argv=0xbffff944) at
gconftool.c:1047

Further, in the code, it looks like the problem is starting to happen
around
gconf.c:1413

      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

Hemanth






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