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 614534 - gnome-settings-daemon crashes at startup
gnome-settings-daemon crashes at startup
Status: RESOLVED DUPLICATE of bug 617643
Product: gnome-settings-daemon
Classification: Core
Component: general
2.30.x
Other Linux
: Normal blocker
: ---
Assigned To: gnome-settings-daemon-maint
gnome-settings-daemon-maint
Depends on:
Blocks:
 
 
Reported: 2010-04-01 03:11 UTC by Maciej (Matthew) Piechotka
Modified: 2010-05-06 18:26 UTC
See Also:
GNOME target: ---
GNOME version: 2.29/2.30



Description Maciej (Matthew) Piechotka 2010-04-01 03:11:20 UTC
System: Linux 2.6.33-gentoo-ck1-tuxonice #6 SMP PREEMPT Fri Mar 19 02:50:32 GMT 2010 x86_64
X Vendor: The X.Org Foundation
X Vendor Release: 10799902
Selinux: No
Accessibility: Disabled
GTK+ Theme: Clearlooks
Icon Theme: Tango
GTK+ Modules: canberra-gtk-module, gnomebreakpad

Memory status: size: 359788544 vsize: 359788544 resident: 15085568 share: 10792960 rss: 15085568 rss_rlim: 18446744073709551615
CPU usage: start_time: 1270090249 rtime: 6 utime: 5 stime: 1 cutime:2 cstime: 0 timeout: 0 it_real_value: 0 frequency: 100

Backtrace was generated from '/usr/libexec/gnome-settings-daemon'

Traceback (most recent call last):
  File "/usr/share/gdb/auto-load/usr/lib64/libgobject-2.0.so.0.2400.0-gdb.py", line 9, in <module>
    from gobject import register
  File "/usr/share/glib-2.0/gdb/gobject.py", line 3, in <module>
    import gdb.backtrace
ImportError: No module named backtrace
[Thread debugging using libthread_db enabled]
[New Thread 0x7fa4b5e84710 (LWP 2099)]
0x00007fa4bdd88bcd in __libc_waitpid (pid=2198, 
    stat_loc=<value optimized out>, options=0)
    at ../sysdeps/unix/sysv/linux/waitpid.c:41
	in ../sysdeps/unix/sysv/linux/waitpid.c

Thread 1 (Thread 0x7fa4bf47b700 (LWP 2080))

  • #0 __libc_waitpid
    at ../sysdeps/unix/sysv/linux/waitpid.c line 41
  • #1 IA__g_spawn_sync
    at gspawn.c line 386
  • #2 IA__g_spawn_command_line_sync
    at gspawn.c line 700
  • #3 run_bug_buddy
    at gnome-breakpad.cc line 369
  • #4 check_if_gdb
    at gnome-breakpad.cc line 440
  • #5 bugbuddy_segv_handle
    at gnome-breakpad.cc line 223
  • #6 <signal handler called>
  • #7 strlen
    at ../sysdeps/x86_64/strlen.S line 31
  • #8 cairo_text_extents
    at cairo.c line 3084
  • #9 gkbd_status_render_cairo
    at gkbd-status.c line 164
  • #10 gkbd_status_prepare_drawing
    at gkbd-status.c line 270
  • #11 gkbd_status_fill
    at gkbd-status.c line 113
  • #12 gkbd_status_reinit_ui
    at gkbd-status.c line 328
  • #13 _gtk_marshal_BOOLEAN__INT
    at gtkmarshalers.c line 709
  • #14 IA__g_closure_invoke
    at gclosure.c line 767
  • #15 signal_emit_unlocked_R
    at gsignal.c line 3248
  • #16 IA__g_signal_emit_valist
    at gsignal.c line 2991
  • #17 IA__g_signal_emit
    at gsignal.c line 3038
  • #18 emit_size_changed_signal
    at gtkstatusicon.c line 1293
  • #19 gtk_status_icon_size_allocate
    at gtkstatusicon.c line 1660
  • #20 IA__g_closure_invoke
    at gclosure.c line 767
  • #21 signal_emit_unlocked_R
    at gsignal.c line 3248
  • #22 IA__g_signal_emit_valist
    at gsignal.c line 2981
  • #23 IA__g_signal_emit
    at gsignal.c line 3038
  • #24 IA__gtk_widget_size_allocate
    at gtkwidget.c line 4061
  • #25 gtk_window_size_allocate
    at gtkwindow.c line 4979
  • #26 gtk_plug_size_allocate
    at gtkplug.c line 754
  • #27 IA__g_closure_invoke
    at gclosure.c line 767
  • #28 signal_emit_unlocked_R
    at gsignal.c line 3178
  • #29 IA__g_signal_emit_valist
    at gsignal.c line 2981
  • #30 IA__g_signal_emit
    at gsignal.c line 3038
  • #31 IA__gtk_widget_size_allocate
    at gtkwidget.c line 4061
  • #32 gtk_window_show
    at gtkwindow.c line 4511
  • #33 IA__g_closure_invoke
    at gclosure.c line 767
  • #34 signal_emit_unlocked_R
    at gsignal.c line 3178
  • #35 IA__g_signal_emit_valist
    at gsignal.c line 2981
  • #36 IA__g_signal_emit
    at gsignal.c line 3038
  • #37 IA__gtk_widget_show
    at gtkwidget.c line 3185
  • #38 gtk_status_icon_constructor
    at gtkstatusicon.c line 948
  • #39 IA__g_object_newv
    at gobject.c line 1180
  • #40 IA__g_object_new
    at gobject.c line 1092
  • #41 gkbd_status_new
    at gkbd-status.c line 740
  • #42 show_hide_icon
    at gsd-keyboard-xkb.c line 448
  • #43 try_activating_xkb_config_if_new
    at gsd-keyboard-xkb.c line 472
  • #44 apply_xkb_settings
    at gsd-keyboard-xkb.c line 645
  • #45 gsd_keyboard_xkb_init
    at gsd-keyboard-xkb.c line 875
  • #46 start_keyboard_idle_cb
    at gsd-keyboard-manager.c line 389
  • #47 g_main_dispatch
    at gmain.c line 1960
  • #48 IA__g_main_context_dispatch
    at gmain.c line 2513
  • #49 g_main_context_iterate
    at gmain.c line 2591
  • #50 IA__g_main_loop_run
    at gmain.c line 2799
  • #51 IA__gtk_main
    at gtkmain.c line 1219
  • #52 main
    at main.c line 502

	Inferior 1 [process 2080] will be detached.

Quit anyway? (y or n) [answered Y; input not from terminal]


----------- .xsession-errors ---------------------
warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/gnome-settings-daemon-2.0/libclipboard.so.debug
warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/gnome-settings-daemon-2.0/libtyping-break.so.debug
warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/gnome-settings-daemon-2.0/libhousekeeping.so.debug
warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/gtk-2.0/2.10.0/engines/libclearlooks.so.debug
warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/gtk-2.0/modules/libcanberra-gtk-module.so.debug
warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/gtk-2.0/modules/libgnomebreakpad.so.debug
warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libelf-0.145.so.debug
41	../sysdeps/unix/sysv/linux/waitpid.c: No such file or directory.
Cannot access memory at address 0xec8148388d49ffff
--------------------------------------------------
Comment 1 Jens Granseuer 2010-04-01 08:02:59 UTC
Looks like an issue in the libgnomekbd code.
Comment 2 Sergey V. Udaltsov 2010-04-01 17:44:18 UTC
Maciej, could you please get libgnomekbd sources, build and run test/gkbd-status-test. Would it crash the same way?
Comment 3 Sergey V. Udaltsov 2010-04-01 17:45:20 UTC
Actually, since that code already changed in git, could you please the version from git instead of 2.30 tarball?
Comment 4 Maciej (Matthew) Piechotka 2010-04-02 04:32:13 UTC
gkbd-status-test seems to do nothing. It does not consume CPU etc. It does not finish. According to strace:
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=9, events=POLLIN|POLLPRI}, {fd=11, events=POLLIN|POLLPRI}, {fd=12, events=POLLIN|POLLPRI}, {fd=13, events=POLLIN|POLLPRI}], 6, -1) = 1 ([{fd=3, revents=POLLIN}])
read(3, "b\2R\1U\222\215\v\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \1\5\0\0", 4096) = 32
read(3, 0x222b7b4, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
read(3, 0x222b7b4, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=9, events=POLLIN|POLLPRI}, {fd=11, events=POLLIN|POLLPRI}, {fd=12, events=POLLIN|POLLPRI}, {fd=13, events=POLLIN|POLLPRI}], 6, -1) = 1 ([{fd=3, revents=POLLIN}])
read(3, "b\2R\1\357\224\215\v\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0 \1\4\0\0", 4096) = 32
read(3, 0x222b7b4, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
read(3, 0x222b7b4, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=9, events=POLLIN|POLLPRI}, {fd=11, events=POLLIN|POLLPRI}, {fd=12, events=POLLIN|POLLPRI}, {fd=13, events=POLLIN|POLLPRI}], 6, -1) = 1 ([{fd=3, revents=POLLIN}])
read(3, "b\2R\1\211\226\215\v\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \1\5\0\0", 4096) = 32
read(3, 0x222b7b4, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
read(3, 0x222b7b4, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=9, events=POLLIN|POLLPRI}, {fd=11, events=POLLIN|POLLPRI}, {fd=12, events=POLLIN|POLLPRI}, {fd=13, events=POLLIN|POLLPRI}], 6, -1

Stacktrace with libgnomekbd from git:
System: Linux 2.6.33-gentoo-ck1-tuxonice #6 SMP PREEMPT Fri Mar 19 02:50:32 GMT 2010 x86_64
X Vendor: The X.Org Foundation
X Vendor Release: 10799902
Selinux: No
Accessibility: Disabled
GTK+ Theme: Clearlooks
Icon Theme: Tango
GTK+ Modules: canberra-gtk-module, gnomebreakpad

Memory status: size: 354066432 vsize: 354066432 resident: 15962112 share: 11403264 rss: 15962112 rss_rlim: 18446744073709551615
CPU usage: start_time: 1270181834 rtime: 6 utime: 6 stime: 0 cutime:1 cstime: 0 timeout: 0 it_real_value: 0 frequency: 100

Backtrace was generated from '/usr/libexec/gnome-settings-daemon'

Traceback (most recent call last):
  File "/usr/share/gdb/auto-load/usr/lib64/libgobject-2.0.so.0.2400.0-gdb.py", line 9, in <module>
    from gobject import register
  File "/usr/share/glib-2.0/gdb/gobject.py", line 3, in <module>
    import gdb.backtrace
ImportError: No module named backtrace
[Thread debugging using libthread_db enabled]
[New Thread 0x7f234710e710 (LWP 26640)]
0x00007f2359054bcd in __libc_waitpid (pid=26648, 
    stat_loc=<value optimized out>, options=0)
    at ../sysdeps/unix/sysv/linux/waitpid.c:41
	in ../sysdeps/unix/sysv/linux/waitpid.c

Thread 1 (Thread 0x7f235a747700 (LWP 26611))

  • #0 __libc_waitpid
    at ../sysdeps/unix/sysv/linux/waitpid.c line 41
  • #1 IA__g_spawn_sync
    at gspawn.c line 386
  • #2 IA__g_spawn_command_line_sync
    at gspawn.c line 700
  • #3 run_bug_buddy
    at gnome-breakpad.cc line 369
  • #4 check_if_gdb
    at gnome-breakpad.cc line 440
  • #5 bugbuddy_segv_handle
    at gnome-breakpad.cc line 223
  • #6 <signal handler called>
  • #7 *__GI___libc_free
    at malloc.c line 3724
  • #8 g_hash_table_insert_internal
    at ghash.c line 993
  • #9 gkbd_indicator_create_label_title
    at gkbd-indicator.c line 393
  • #10 gkbd_status_render_cairo
    at gkbd-status.c line 206
  • #11 gkbd_status_prepare_drawing
    at gkbd-status.c line 345
  • #12 gkbd_status_fill
    at gkbd-status.c line 116
  • #13 gkbd_status_reinit_ui
    at gkbd-status.c line 405
  • #14 _gtk_marshal_BOOLEAN__INT
    at gtkmarshalers.c line 709
  • #15 IA__g_closure_invoke
    at gclosure.c line 767
  • #16 signal_emit_unlocked_R
    at gsignal.c line 3248
  • #17 IA__g_signal_emit_valist
    at gsignal.c line 2991
  • #18 IA__g_signal_emit
    at gsignal.c line 3038
  • #19 emit_size_changed_signal
    at gtkstatusicon.c line 1293
  • #20 gtk_status_icon_size_allocate
    at gtkstatusicon.c line 1660
  • #21 IA__g_closure_invoke
    at gclosure.c line 767
  • #22 signal_emit_unlocked_R
    at gsignal.c line 3248
  • #23 IA__g_signal_emit_valist
    at gsignal.c line 2981
  • #24 IA__g_signal_emit
    at gsignal.c line 3038
  • #25 IA__gtk_widget_size_allocate
    at gtkwidget.c line 4061
  • #26 gtk_window_size_allocate
    at gtkwindow.c line 4979
  • #27 gtk_plug_size_allocate
    at gtkplug.c line 754
  • #28 IA__g_closure_invoke
    at gclosure.c line 767
  • #29 signal_emit_unlocked_R
    at gsignal.c line 3178
  • #30 IA__g_signal_emit_valist
    at gsignal.c line 2981
  • #31 IA__g_signal_emit
    at gsignal.c line 3038
  • #32 IA__gtk_widget_size_allocate
    at gtkwidget.c line 4061
  • #33 gtk_window_show
    at gtkwindow.c line 4511
  • #34 IA__g_closure_invoke
    at gclosure.c line 767
  • #35 signal_emit_unlocked_R
    at gsignal.c line 3178
  • #36 IA__g_signal_emit_valist
    at gsignal.c line 2981
  • #37 IA__g_signal_emit
    at gsignal.c line 3038
  • #38 IA__gtk_widget_show
    at gtkwidget.c line 3185
  • #39 gtk_status_icon_constructor
    at gtkstatusicon.c line 948
  • #40 IA__g_object_newv
    at gobject.c line 1180
  • #41 IA__g_object_new
    at gobject.c line 1092
  • #42 gkbd_status_new
    at gkbd-status.c line 820
  • #43 show_hide_icon
    at gsd-keyboard-xkb.c line 451
  • #44 try_activating_xkb_config_if_new
    at gsd-keyboard-xkb.c line 475
  • #45 apply_xkb_settings
    at gsd-keyboard-xkb.c line 648
  • #46 gsd_keyboard_xkb_init
    at gsd-keyboard-xkb.c line 880
  • #47 start_keyboard_idle_cb
    at gsd-keyboard-manager.c line 399
  • #48 g_main_dispatch
    at gmain.c line 1960
  • #49 IA__g_main_context_dispatch
    at gmain.c line 2513
  • #50 g_main_context_iterate
    at gmain.c line 2591
  • #51 IA__g_main_loop_run
    at gmain.c line 2799
  • #52 IA__gtk_main
    at gtkmain.c line 1219
  • #53 main
    at main.c line 502

	Inferior 1 [process 26611] will be detached.

Quit anyway? (y or n) [answered Y; input not from terminal]


----------- .xsession-errors ---------------------
Evolution.ContactItemSource "Evolution Contacts" encountered an error in UpdateItems: System.TypeInitializationException: An exception was thrown by the type initializer for Evolution.SourceList ---> 
  at (wrapper managed-to-native) Evolution.CalBackendCache:e_cal_backend_cache_get_type ()
  at Evolution.CalBackendCache.get_GType () [0x00000] in <filename unknown>:0 
  at GtkSharp.EvolutionSharp.ObjectManager.Initialize () [0x00000] in <filename unknown>:0 
  at Evolution.SourceList..cctor () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at Evolution.ContactItemSource.UpdateItems () [0x00000] in <filename unknown>:0 
  at Do.Universe.Safe.SafeItemSource.UpdateItems () [0x00000] in <filename unknown>:0 .
[Debug 06:17:55.179] Acquiring org.freedesktop.DBus session instance
[Debug 06:17:55.180] org.bansheeproject.CollectionIndexer is already started
[Debug 06:17:55.181] Resolving org.bansheeproject.CollectionIndexer.Service (attempt 1)
warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/pango/1.6.0/modules/pango-basic-fc.so.debug
41	../sysdeps/unix/sysv/linux/waitpid.c: No such file or directory.
Cannot access memory at address 0xec8148388d49ffff
--------------------------------------------------
Comment 5 Maciej (Matthew) Piechotka 2010-04-06 15:24:14 UTC
It seems to be some race condition. If I log into failsafe terminal and then I execute gnome-session all is ok.
Comment 6 Maciej (Matthew) Piechotka 2010-04-06 20:33:37 UTC
I bisect through all revision after (and including) adding parameter for xklavier 5. All causes problems. It means that:
 - Problem is in gnome-settings-daemon
 - Problem is in xklavier
 - Problem was introduced before this commit
 - It is not sufficient to see in lsof -p `pgrep gnome-settings` that the git copy of library was loaded
Comment 7 Sergey V. Udaltsov 2010-04-15 20:51:45 UTC
> Problem was introduced before this commit
Sorry, what commit do you mean? Do mean some exact point in CVS history?

gnome-status-test is expected to put an indicator into your notification area on the panel. Do you see it?
Comment 8 Maciej (Matthew) Piechotka 2010-04-15 22:17:01 UTC
(In reply to comment #7)
> > Problem was introduced before this commit
> Sorry, what commit do you mean? Do mean some exact point in CVS history?
> 

Git history. I mean your commit d7ff7775e4b1fcfd5d86a88abf49467b97b5ed4b ( http://git.gnome.org/browse/libgnomekbd/commit/?id=d7ff7775e4b1fcfd5d86a88abf49467b97b5ed4b ).

I run git bisect and problem occured in each version tested after this commit. I haven't tested the previous history.

Problen disappeared after downgrading gnome-settings-deamon and libgnomekbd to 2.28.x and libxlavier to 4.x.

> gnome-status-test is expected to put an indicator into your notification area
> on the panel. Do you see it?

No.
Comment 9 Sergey V. Udaltsov 2010-04-15 23:15:39 UTC
Well, the fact that the test does not work is suspicious... Did you build the latest libgnomekbd from git? Can you run the test with XKL_DEBUG=160 and attach the output?
Comment 10 Sergey V. Udaltsov 2010-05-04 23:43:28 UTC
Could you please try the latest version from git? There is chance I fixed it (if it is same as #617635)
Comment 11 Sergey V. Udaltsov 2010-05-04 23:44:16 UTC
Sorry, I meant bug #617643
Comment 12 Maciej (Matthew) Piechotka 2010-05-06 18:26:08 UTC
Working. Yupee.

*** This bug has been marked as a duplicate of bug 617643 ***