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 127821 - gnome-settings-daemon crash on login
gnome-settings-daemon crash on login
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: [obsolete] settings-daemon
git master
Other Solaris
: High critical
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2003-11-24 16:14 UTC by david.hawthorne
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description david.hawthorne 2003-11-24 16:14:14 UTC
using gnome-2.4 build from 24th Nov 2003.

When I log in, gnome-settings-daemon crashes and the session freezes before
it fully loads.  The following is a back trace from the crash in question:

  • #0 wait4
    from /lib/i686/libc.so.6
  • #1 __DTOR_END__
    from /lib/i686/libc.so.6
  • #2 waitpid
    from /lib/i686/libpthread.so.0
  • #3 libgnomeui_segv_handle
    at gnome-ui-init.c line 738
  • #4 pthread_sighandler
    from /lib/i686/libpthread.so.0
  • #5 <signal handler called>
  • #6 g_logv
    at gmessages.c line 518
  • #7 g_log
    at gmessages.c line 541
  • #8 bonobo_activation_timeout_reg_check
    at bonobo-activation-register.c line 62
  • #9 g_timeout_dispatch
    at gmain.c line 3125
  • #10 g_main_dispatch
    at gmain.c line 1752
  • #11 g_main_context_dispatch
    at gmain.c line 2300
  • #12 g_main_context_iterate
    at gmain.c line 2381
  • #13 g_main_loop_run
    at gmain.c line 2601
  • #14 gtk_dialog_run
    at gtkdialog.c line 981
  • #15 activation_error
    at gnome-settings-keyboard-xkb.c line 71
  • #16 apply_settings
    at gnome-settings-keyboard-xkb.c line 92
  • #17 gnome_settings_keyboard_xkb_load
    at gnome-settings-keyboard-xkb.c line 113
  • #18 gnome_settings_daemon_new
    at gnome-settings-daemon.c line 330
  • #19 main
    at factory.c line 38
  • #20 __libc_start_main
    from /lib/i686/libc.so.6

Comment 1 padraig.obriain 2003-11-25 14:13:31 UTC
This seems to be a consequence of code change made in
gnome-control-center/gnome-settings-daemon/gnome-settings-keyboard-xkb.c
on November 22nd.
Comment 2 Jonas Jonsson 2004-02-13 22:47:36 UTC
This is what happens on a Solaris 9 x86 system (with XFree 4.3.0 :) ...
bash-2.05$ /opt/gnome-2.6/libexec/gnome-settings-daemon
--disable-crash-dialog

(gnome-settings-daemon:637): GLib-GObject-WARNING **:
g_object_set_valist: construct property "show-crash-dialog" for object 
e set after construction
[1076712180,160,xklavier.c:XklInit/]    xkbEvenType: 5E, xkbError: AC,
display: 807c8f0, root: 40
bash-2.05$ gdb /opt/gnome-2.6/libexec/gnome-settings-daemon          
            
GNU gdb 5.3
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-pc-solaris2.9"...
(gdb) run
Starting program: /opt/gnome-2.6/libexec/gnome-settings-daemon 
[1076712225,160,xklavier.c:XklInit/]    xkbEvenType: 5E, xkbError: AC,
display: 807c050, root: 40

Program received signal SIGSEGV, Segmentation fault.
0xdcd6ef90 in memcpy () from /usr/lib/libc.so.1
(gdb) where
  • #0 memcpy
    from /usr/lib/libc.so.1
  • #1 ??
  • #2 _XklConfigRecSplitLayouts
    from /opt/gnome-2.6/lib/libxklavier.so.7
  • #3 XklGetNamesProp
    from /opt/gnome-2.6/lib/libxklavier.so.7
  • #4 XklBackupNamesProp
    from /opt/gnome-2.6/lib/libxklavier.so.7
  • #5 gnome_settings_keyboard_xkb_init
    at gnome-settings-keyboard-xkb.c line 102

GARNOME-0.29.1
gcc-3.3.2
GNU ld version 2.14 20030612
XFree86 4.3.0

When loggin in (to start a "Gnome-2.6" session), this little daemon
crash all the time ......
Comment 3 Peter O'Shea 2004-02-20 22:22:24 UTC
I'm seeing this on sparc Solaris 8, with the Sun Xserver.
Comment 4 bill.haneman 2004-03-07 13:10:59 UTC
setting OS to 'All' since the reports above cover multiple Xserver/OS
combinations.

Is this still happenning?
Comment 5 Peter O'Shea 2004-03-11 20:33:18 UTC
Yes, it's still happening.  I just tested control-center-2.5.4.

Here's my backtrace:

bugs{poshea}75: gdb ~/usr/libexec/gnome-settings-daemon
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.16 (sparc-sun-solaris2.5.1), Copyright 1996 Free Software
Foundation, Inc...
(gdb) run
Starting program: /home/poshea/usr/libexec/gnome-settings-daemon
warning: Unable to find dynamic linker breakpoint function.
warning: GDB will be unable to debug shared library initializers
warning: and track explicitly loaded dynamic code.
 
Program received signal SIGSEGV, Segmentation fault.
0xff374af4 in XklInit ()
(gdb) bt
  • #0 XklInit
  • #1 gnome_settings_keyboard_xkb_init
  • #2 gnome_settings_daemon_new
  • #3 main

Comment 6 Peter O'Shea 2004-03-11 21:02:14 UTC
Checking out Padraig's comment above - 
if I start with control-center-2.5.4, but replace
gnome-settings-daemon/gnome-settings-keyboard-xkb.c with version 1.1
from cvs (which seems to be dated Nov. 12) and recompile, I get the
same crash with the same backtrace.  Don't know if this is a valid
test or not.

Is OS really "All"?  It seems to just be Solaris users, on sparc and
x86.  If this sort of crasher were happening in Linux, it'd be fixed
by now.  <woe to us poor Gnome-on-Solaris users/testers>
Comment 7 Jody Goldberg 2004-03-11 21:21:03 UTC
Looks like a crash in libxklavier.

Can you get a debuggable version installed so that we can get better
backtraces ?  The first trace clearly has nothing to do with the more
recent report.
Comment 8 bill.haneman 2004-03-11 22:02:39 UTC
marking OS 'Solaris', though I bet the real dependency is on the
xserver not the OS.
Comment 9 Jody Goldberg 2004-03-24 17:28:03 UTC
Please re-test this with libxklavier-1.0.0
Comment 10 Ivan Noris 2004-03-25 21:31:10 UTC
I had the gnome-settings-daemon crash-on-login problem on Solaris 9/SPARC on
GNOME 2.6RC1. Today I've upgraded to libxklavier-1.0.0 and recompiled
control-center + gnome-applets. The results:
- the gnome-settings-daemon won't crash as before
- some error window is displayed, regarding XKB or keyboard something (I'm not
on Solaris now, cannot test).
- system runs fine

Also various other problems seem to be solved by this update.
Comment 11 Ivan Noris 2004-03-26 07:59:36 UTC
So, again.
I've mate some tests. libxklavier was compiled
--with-xkb-base=/usr/openwin/lib/X11/xkb. I've also tried --without-xkb-base,
which off-course does not work.
The XKB extension CAN be enabled on Sun's Xserver, but it CAN NOT be enabled on
Sun Rays. As I'm trying this on Sun Rays, can't continue test :(

Is there any way to bypass libxklavier (do not compile it) or is it a "must" for
GNOME to work? (in the Gnome 2.4.x there was no such library). Any other advices
to get it start correctly?
Comment 12 Peter O'Shea 2004-03-29 17:50:02 UTC
Using libxklavier-1.00 and control-center-2.5.4, I get the same results as Ivan
in comment 10.  No crash, but a bunch of error windows about XKB.  

I'm on a SunBlade100 with Solaris 8, if anyone can make suggestions on how to
check whether the Xserver can have the XKB extension enabled, I'll do what I
can.  I don't have root access on my machine, but I do control the startup of
the Xserver.
Comment 13 Ivan Noris 2004-03-29 21:40:25 UTC
Peter,

all I know is contained in this document:
http://docs.sun.com/db/doc/816-7282/6mda3k04h?q=XKB&a=view

The document describes Sun's GNOME, I've found no associations with solaris of
specific version (I have Sol9).

It states, that:

Before you can use the AccessX preference tool, you must enable XKB on your
Solaris system.
Note –

XKB is not currently supported on Sun Ray™ systems.

Edit /etc/dt/config/Xservers. If it does not exist, the Document shows you what
to do.

Append the following to the command line (which starts the X itself) at the end
of the file:
+kb

Enter the following command at a command line:

pkill -HUP dtlogin

Log out of your GNOME session and log in again.

To verify if XKB is running, enter xdpyinfo and search for XKEYBOARD in the
extensions list.

End of citation.

I have tried this two times, didn't work for me. But I have no workstation, only
Sun Rays. Bad thing, because I need to run Gnome on thin clients and seems the
libxklavier is tested only for XFree :( The best would be to ignore libxklavier
and compile control-center and gnome-applets without it, but I checked both
"configure" scripts and they NEED libxklavier.

Does anybody know how to get thgrough this on Solaris + Sun Rays?
Does anybody know how to bypass libxklavier? (Is it even possible?)
Comment 14 Ivan Noris 2004-05-19 21:20:59 UTC
Well, after a few weeks this bug still seems to be alive. I have bypassed it by
not-calling the function, which shows window with warning. This is ugly, but
actually it works on Solaris + Sun Ray, where no XKB functionality cannot be
expected yet. All keyboard-related things work as they should.

One thing to know (maybe totally unrelated): I had to set Input method to "X
Input Method (XIM)" instead of "Default", or the national characters don't work
(I'm using Slovak keyboard, switching via GKB applet). There is also env.
variable controlling this, so I've added it to my start-session script.

If anyone is interested, I can post a patch here (I'm not on that Solaris
machine right now), or the XIM problem, respectively. These are things which
never occur on Linux, I think...
Comment 15 Jody Goldberg 2004-05-19 21:44:31 UTC
Ivan : what version of libxklavier ?
Comment 16 bill.haneman 2004-05-19 22:06:53 UTC
doesn't sound as though this bug *is* alive, since the bug is "crash on
startup"; if I read you and comment #10 correctly, there's no crash, only a
warning.  The warning is perfectly appropriate I think.
Comment 17 Ivan Noris 2004-07-14 19:05:41 UTC
Sorry for not responding for a long time!

I'm now in GNOME 2.6.2, and no crash during logon! It works.

But I'm forced to use an patch for Solaris, which removes that warning, because
my Sun's X server on Sun Rays does not support XKB, and I can't allow popup
about this each time customer/user logs in.

But this is not something which corresponds to the but title, so I'm leaving.
Thank you.
Comment 18 Kjartan Maraas 2004-09-02 19:32:35 UTC
Thanks for the feedback. Closing this then.