GNOME Bugzilla – Bug 306937
gconfd-2 daemon doesn't exit when the user exits the application
Last modified: 2005-06-13 16:51:38 UTC
Please describe the problem: After starting/closing for example gedit (without gnome-session) gconfd-2 stays in memory forever. according to documentation desired behaviour is: "The daemon normally exits a couple of minutes after the last application using it has exited." gconf-sanity-check-2 shows nothing. bash-2.05b$ GCONF_DEBUG_TRACE_CLIENT=1 gedit gconf trace: Adding directory '/desktop/gnome/sound' gconf trace: Adding notify to engine at '/desktop/gnome/sound' gconf trace: Onelevel preload of '/desktop/gnome/sound' gconf trace: Caching values in '/desktop/gnome/sound' gconf trace: Added value of '/desktop/gnome/sound/event_sounds' to the cache gconf trace: Added value of '/desktop/gnome/sound/enable_esd' to the cache gconf trace: Adding directory '/desktop/gnome' gconf trace: Adding notify to engine at '/desktop/gnome' gconf trace: Adding directory '/apps/gnome-settings/gedit' gconf trace: Adding notify to engine at '/apps/gnome-settings/gedit' gconf trace: /desktop/gnome/sound/enable_esd was in the client-side cache gconf trace: Doing remote query for /desktop/gnome/interface/accessibility gconf trace: Added value of '/desktop/gnome/interface/accessibility' to the cach e gconf trace: Adding directory '/apps/gedit-2/preferences' gconf trace: Adding notify to engine at '/apps/gedit-2/preferences' gconf trace: Recursive preload of '/apps/gedit-2/preferences' gconf trace: Caching values in '/apps/gedit-2/preferences' gconf trace: Caching values in '/apps/gedit-2/preferences/syntax_highlighting' gconf trace: Added value of '/apps/gedit-2/preferences/syntax_highlighting/enabl e' to the cache gconf trace: Caching values in '/apps/gedit-2/preferences/ui' gconf trace: Caching values in '/apps/gedit-2/preferences/ui/statusbar' gconf trace: Added value of '/apps/gedit-2/preferences/ui/statusbar/statusbar_vi sible' to the cache gconf trace: Caching values in '/apps/gedit-2/preferences/ui/toolbar' gconf trace: Added value of '/apps/gedit-2/preferences/ui/toolbar/toolbar_visibl e' to the cache gconf trace: Added value of '/apps/gedit-2/preferences/ui/toolbar/toolbar_button s_style' to the cache gconf trace: Caching values in '/apps/gedit-2/preferences/ui/recents' gconf trace: Added value of '/apps/gedit-2/preferences/ui/recents/max_recents' t o the cache gconf trace: Caching values in '/apps/gedit-2/preferences/encodings' gconf trace: Added value of '/apps/gedit-2/preferences/encodings/auto_detected' to the cache gconf trace: Added value of '/apps/gedit-2/preferences/encodings/shown_in_menu' to the cache gconf trace: Caching values in '/apps/gedit-2/preferences/editor' gconf trace: Caching values in '/apps/gedit-2/preferences/editor/bracket_matchin g' gconf trace: Added value of '/apps/gedit-2/preferences/editor/bracket_matching/b racket_matching' to the cache gconf trace: Caching values in '/apps/gedit-2/preferences/editor/colors' gconf trace: Added value of '/apps/gedit-2/preferences/editor/colors/use_default _colors' to the cache gconf trace: Added value of '/apps/gedit-2/preferences/editor/colors/background_ color' to the cache gconf trace: Added value of '/apps/gedit-2/preferences/editor/colors/text_color' to the cache gconf trace: Added value of '/apps/gedit-2/preferences/editor/colors/selected_te xt_color' to the cache gconf trace: Added value of '/apps/gedit-2/preferences/editor/colors/selection_c olor' to the cache gconf trace: Caching values in '/apps/gedit-2/preferences/editor/right_margin' gconf trace: Added value of '/apps/gedit-2/preferences/editor/right_margin/displ ay_right_margin' to the cache gconf trace: Added value of '/apps/gedit-2/preferences/editor/right_margin/right _margin_position' to the cache gconf trace: Caching values in '/apps/gedit-2/preferences/editor/line_numbers' gconf trace: Added value of '/apps/gedit-2/preferences/editor/line_numbers/displ ay_line_numbers' to the cache gconf trace: Caching values in '/apps/gedit-2/preferences/editor/save' gconf trace: Added value of '/apps/gedit-2/preferences/editor/save/create_backup _copy' to the cache gconf trace: Added value of '/apps/gedit-2/preferences/editor/save/backup_copy_e xtension' to the cache gconf trace: Added value of '/apps/gedit-2/preferences/editor/save/auto_save' to the cache gconf trace: Added value of '/apps/gedit-2/preferences/editor/save/auto_save_int erval' to the cache gconf trace: Caching values in '/apps/gedit-2/preferences/editor/tabs' gconf trace: Added value of '/apps/gedit-2/preferences/editor/tabs/tabs_size' to the cache gconf trace: Added value of '/apps/gedit-2/preferences/editor/tabs/insert_spaces ' to the cache gconf trace: Caching values in '/apps/gedit-2/preferences/editor/auto_indent' gconf trace: Added value of '/apps/gedit-2/preferences/editor/auto_indent/auto_i ndent' to the cache gconf trace: Caching values in '/apps/gedit-2/preferences/editor/current_line' gconf trace: Added value of '/apps/gedit-2/preferences/editor/current_line/highl ight_current_line' to the cache gconf trace: Caching values in '/apps/gedit-2/preferences/editor/font' gconf trace: Added value of '/apps/gedit-2/preferences/editor/font/editor_font' to the cache gconf trace: Added value of '/apps/gedit-2/preferences/editor/font/use_default_f ont' to the cache gconf trace: Caching values in '/apps/gedit-2/preferences/editor/undo' gconf trace: Added value of '/apps/gedit-2/preferences/editor/undo/undo_actions_ limit' to the cache gconf trace: Caching values in '/apps/gedit-2/preferences/editor/wrap_mode' gconf trace: Added value of '/apps/gedit-2/preferences/editor/wrap_mode/wrap_mod e' to the cache gconf trace: Caching values in '/apps/gedit-2/preferences/print' gconf trace: Caching values in '/apps/gedit-2/preferences/print/fonts' gconf trace: Added value of '/apps/gedit-2/preferences/print/fonts/print_font_he ader' to the cache gconf trace: Added value of '/apps/gedit-2/preferences/print/fonts/print_font_he ader_pango' to the cache gconf trace: Added value of '/apps/gedit-2/preferences/print/fonts/print_font_bo dy' to the cache gconf trace: Added value of '/apps/gedit-2/preferences/print/fonts/print_font_bo dy_pango' to the cache gconf trace: Added value of '/apps/gedit-2/preferences/print/fonts/print_font_nu mbers' to the cache gconf trace: Added value of '/apps/gedit-2/preferences/print/fonts/print_font_nu mbers_pango' to the cache gconf trace: Caching values in '/apps/gedit-2/preferences/print/page' gconf trace: Added value of '/apps/gedit-2/preferences/print/page/print_line_num bers' to the cache gconf trace: Added value of '/apps/gedit-2/preferences/print/page/print_header' to the cache gconf trace: Added value of '/apps/gedit-2/preferences/print/page/print_wrap_mod e' to the cache gconf trace: Added value of '/apps/gedit-2/preferences/print/page/print_syntax_h ighlighting' to the cache gconf trace: Adding directory '/desktop/gnome/recent_files' gconf trace: Onelevel preload of '/desktop/gnome/recent_files' gconf trace: Caching values in '/desktop/gnome/recent_files' gconf trace: Doing remote query for /desktop/gnome/recent_files/expire gconf trace: Added value of '/desktop/gnome/recent_files/expire' to the cache gconf trace: /apps/gedit-2/preferences/ui/recents/max_recents was in the client- side cache gconf trace: Adding directory '/apps/gedit-2/plugins' gconf trace: Adding notify to engine at '/apps/gedit-2/plugins' gconf trace: Onelevel preload of '/apps/gedit-2/plugins' gconf trace: Caching values in '/apps/gedit-2/plugins' gconf trace: Added value of '/apps/gedit-2/plugins/active-plugins' to the cache gconf trace: /apps/gedit-2/plugins/active-plugins was in the client-side cache gconf trace: Adding directory '/desktop/gnome/interface' gconf trace: Recursive preload of '/desktop/gnome/interface' gconf trace: Caching values in '/desktop/gnome/interface' gconf trace: Added value of '/desktop/gnome/interface/toolbar_style' to the cach e gconf trace: Added value of '/desktop/gnome/interface/gtk-im-status-style' to th e cache gconf trace: Added value of '/desktop/gnome/interface/monospace_font_name' to th e cache gconf trace: Added value of '/desktop/gnome/interface/enable_animations' to the cache gconf trace: Added value of '/desktop/gnome/interface/gtk_key_theme' to the cach e gconf trace: Added value of '/desktop/gnome/interface/menus_have_tearoff' to the cache gconf trace: Added value of '/desktop/gnome/interface/cursor_blink_time' to the cache gconf trace: Added value of '/desktop/gnome/interface/font_name' to the cache gconf trace: Added value of '/desktop/gnome/interface/cursor_blink' to the cache gconf trace: Added value of '/desktop/gnome/interface/menus_have_icons' to the c ache gconf trace: Added value of '/desktop/gnome/interface/toolbar_icon_size' to the cache gconf trace: Added value of '/desktop/gnome/interface/use_custom_font' to the ca che gconf trace: Value of '/desktop/gnome/interface/accessibility' hasn't actually c hanged, would have updated in cache if it had gconf trace: Added value of '/desktop/gnome/interface/can_change_accels' to the cache gconf trace: Added value of '/desktop/gnome/interface/menubar_detachable' to the cache gconf trace: Added value of '/desktop/gnome/interface/gtk_theme' to the cache gconf trace: Added value of '/desktop/gnome/interface/gtk-im-preedit-style' to t he cache gconf trace: Added value of '/desktop/gnome/interface/status_bar_meter_on_right' to the cache gconf trace: Added value of '/desktop/gnome/interface/file_chooser_backend' to t he cache gconf trace: Added value of '/desktop/gnome/interface/toolbar_detachable' to the cache gconf trace: Added value of '/desktop/gnome/interface/icon_theme' to the cache gconf trace: /desktop/gnome/interface/menubar_detachable was in the client-side cache gconf trace: Doing remote query for /gedit-2/UIConfig/kvps gconf trace: /desktop/gnome/interface/menus_have_tearoff was in the client-side cache gconf trace: /desktop/gnome/interface/menus_have_icons was in the client-side ca che gconf trace: /desktop/gnome/interface/toolbar_detachable was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /apps/gedit-2/preferences/ui/toolbar/toolbar_visible was in the cli ent-side cache gconf trace: /apps/gedit-2/preferences/ui/toolbar/toolbar_buttons_style was in t he client-side cache gconf trace: /apps/gedit-2/preferences/ui/statusbar/statusbar_visible was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/menus_have_icons was in the client-side ca che gconf trace: Adding directory '/desktop/gnome/interface' gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: Adding directory '/apps/gedit-2/plugins/time' gconf trace: Onelevel preload of '/apps/gedit-2/plugins/time' gconf trace: Caching values in '/apps/gedit-2/plugins/time' gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /apps/gedit-2/preferences/editor/undo/undo_actions_limit was in the client-side cache gconf trace: /apps/gedit-2/preferences/editor/bracket_matching/bracket_matching was in the client-side cache gconf trace: /apps/gedit-2/preferences/editor/save/auto_save was in the client-s ide cache gconf trace: /apps/gedit-2/preferences/editor/save/auto_save_interval was in the client-side cache gconf trace: /apps/gedit-2/preferences/editor/font/use_default_font was in the c lient-side cache gconf trace: /apps/gedit-2/preferences/editor/colors/use_default_colors was in t he client-side cache gconf trace: /apps/gedit-2/preferences/editor/wrap_mode/wrap_mode was in the cli ent-side cache gconf trace: /apps/gedit-2/preferences/editor/auto_indent/auto_indent was in the client-side cache gconf trace: /apps/gedit-2/preferences/editor/tabs/tabs_size was in the client-s ide cache gconf trace: /apps/gedit-2/preferences/editor/tabs/insert_spaces was in the clie nt-side cache gconf trace: /apps/gedit-2/preferences/editor/current_line/highlight_current_lin e was in the client-side cache gconf trace: /apps/gedit-2/preferences/editor/right_margin/right_margin_position was in the client-side cache gconf trace: /apps/gedit-2/preferences/editor/right_margin/display_right_margin was in the client-side cache gconf trace: /apps/gedit-2/preferences/editor/line_numbers/display_line_numbers was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /apps/gedit-2/preferences/syntax_highlighting/enable was in the cli ent-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache [closing gedit] gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: /desktop/gnome/interface/toolbar_style was in the client-side cache gconf trace: Removing directory '/desktop/gnome/interface' gconf trace: Suggesting sync bash-2.05b$ first syslog message (one day before) Jun 7 16:59:57 olimp (ankry-30663): Resolved address "xml:readonly:/etc/gconf/g conf.xml.mandatory" to a read-only configuration source at position 0 Jun 7 16:59:57 olimp (ankry-30663): Resolved address "xml:readwrite:/home/ankry /.gconf" to a writable configuration source at position 1 Jun 7 16:59:57 olimp (ankry-30663): Resolved address "xml:readonly:/etc/gconf/g conf.xml.defaults" to a read-only configuration source at position 2 Steps to reproduce: 1. run gedit outside gnome (icewm, kde, etc.) 2. close gedit 3. check list of processes after a week - gconfd-2 still runs Actual results: After a couple of days and running it by many users gconfd-2 eats GBs of memory. Expected results: Does this happen every time? Other information:
Created attachment 47509 [details] [review] proposed patch patch comes from Witold Filipczyk (PLD Linux developer) tested on two machines with success
Okay, the patch isn't at all correct, but I think I see now what was causing the problem. Could you try the attached patch and let me know whether it fixes your problem?
Created attachment 47707 [details] [review] gconf-fix-daemon-not-quitting.patch
Created attachment 47708 [details] [review] gconf-fix-daemon-not-quitting.patch This one is more correct
it works, but timeout is gone. it quits immediately after last client exits. is it a desired behaviour?
Well, it should shut down anywhere between 0 and 30 seconds after the client exits. Could you confirm that that's what's happening? Thanks
yes, i can confirm: Jun 13 18:34:07 smeagol gconfd (builder-11470): starting (version 2.10.0), pid 11470 user 'builder' Jun 13 18:34:07 smeagol gconfd (builder-11470): Resolved address "xml:readonly:/etc/gconf/gconf.xml.mandatory" to a read-only configuration source at position 0Jun 13 18:34:07 smeagol gconfd (builder-11470): Resolved address "xml:readwrite:/home/users/builder/.gconf" to a writable configuration source at position 1 Jun 13 18:34:07 smeagol gconfd (builder-11470): Resolved address "xml:readonly:/etc/gconf/gconf.xml.defaults" to a read-only configuration source at position 2 Jun 13 18:34:37 smeagol gconfd (builder-11470): GConf server is not in use, shutting down. Jun 13 18:34:37 smeagol gconfd (builder-11470): Exiting Thanks Mark!
Cool, thanks. Committed the patch to HEAD and gnome-2-10: 2005-06-13 Mark McLoughlin <mark@skynet.ie> Fixes bug #306937 - gconfd-2 not shutting down when its no longer in use. * gconf/gconfd.c: (no_databases_in_use): account for the fact that the default database is on the global list of databases now too.