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 370038 - crash in Keyboard: 1. I just navigated to S...
crash in Keyboard: 1. I just navigated to S...
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Keyboard
2.16.x
Other All
: High critical
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
: 351395 368055 369256 370025 370547 370589 370959 370993 371058 371137 371528 372085 372146 372217 372238 372421 372472 372576 372606 372991 377035 379833 395929 398807 405402 408043 408166 408435 408555 410382 420956 423858 428961 430968 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-11-03 14:48 UTC by Roshan Kamath
Modified: 2007-04-18 13:06 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16



Description Roshan Kamath 2006-11-03 14:48:31 UTC
Version: 2.16.0

What were you doing when the application crashed?
1. I just navigated to System->Preferences->Keyboard. And Bug-buddy popped up.
2. I'm running Fedora Core 6 (GNOME 2.16).
3. Other relevant packages are control-center-2.16.0-9.fc6, libxklavier-3.0-1.fc6
4. A similar crash was seen by me previously for the gnome-settings-daemon. Bug 370025 has been raised for it. This crash appears to be identical to it in that xkl_config_rec_dump() is the function causing the crash although the driving function is gswitchit_kbd_config_get_lv_descriptions() here.


Distribution: Fedora Core release 6 (Zod)
Gnome Release: 2.16.0 2006-09-04 (Red Hat, Inc)
BugBuddy Version: 2.16.0

System: Linux 2.6.18-1.2798.fc6 #1 SMP Mon Oct 16 14:54:20 EDT 2006 i686
X Vendor: The X.Org Foundation
X Vendor Release: 70101000
Selinux: Enforcing
Accessibility: Disabled
----------- .xsession-errors ---------------------
** (eggcups:2634): WARNING **: IPP request failed with status 1280
Debug: Loading Beagle.Util.Conf+IndexingConfig from indexing.xml
Debug: Loading Beagle.Util.Conf+DaemonConfig from daemon.xml
Debug: Loading Beagle.Util.Conf+SearchingConfig from searching.xml
Debug: Loading Beagle.Util.Conf+NetworkingConfig from networking.xml
Debug: Loading Beagle.Util.Conf+WebServicesConfig from webservices.xml
Introspect error: The name edu.duke.linux.yum was not provided by any .service files
Unable to connect to yum-updatesd...
** Message: Could not connect to power manager: Could not get owner of name 'org.gnome.PowerManager': no such name
Xlib: unexpected async reply (sequence 0xd)!
Unable to connect to yum-updatesd...
** Message: Could not connect to power manager: Could not get owner of name 'org.gnome.PowerManager': no such name
Unable to connect to yum-updatesd...
** (bug-buddy:2940): WARNING **: Couldn't load icon for Open Folder
--------------------------------------------------

Memory status: size: 25645056 vsize: 0 resident: 25645056 share: 0 rss: 9928704 rss_rlim: 0
CPU usage: start_time: 1162564904 rtime: 0 utime: 36 stime: 0 cutime:30 cstime: 0 timeout: 6 it_real_value: 0 frequency: 0

Backtrace was generated from '/usr/bin/gnome-keyboard-properties'

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1209018144 (LWP 2938)]
0x00ef7402 in __kernel_vsyscall ()

Thread 1 (Thread -1209018144 (LWP 2938))

  • #0 __kernel_vsyscall
  • #1 __waitpid_nocancel
    from /lib/libpthread.so.0
  • #2 gnome_gtk_module_info_get
    from /usr/lib/libgnomeui-2.so.0
  • #3 <signal handler called>
  • #4 xkl_config_rec_dump
    from /usr/lib/libxklavier.so.11
  • #5 xkl_config_rec_dump
    from /usr/lib/libxklavier.so.11
  • #6 gswitchit_kbd_config_get_lv_descriptions
    at gswitchit-config.c line 116
  • #7 gswitchit_kbd_config_get_descriptions
    at gswitchit-config.c line 1003
  • #8 xkb_layouts_fill_selected_tree
    at gnome-keyboard-properties-xkblt.c line 347
  • #9 setup_xkb_tabs
    at gnome-keyboard-properties-xkb.c line 179
  • #10 main
    at gnome-keyboard-properties.c line 172
  • #11 __libc_start_main
    from /lib/libc.so.6
  • #12 _start
  • #0 __kernel_vsyscall

Comment 1 Roshan Kamath 2006-11-03 14:57:55 UTC
Here is another trace - but this time with libxklavier-debuginfo installed. It appears slightly different though the usecase is exactly the same.

==============================================================================

Distribution: Fedora Core release 6 (Zod)
Gnome Release: 2.16.0 2006-09-04 (Red Hat, Inc)
BugBuddy Version: 2.16.0

System: Linux 2.6.18-1.2798.fc6 #1 SMP Mon Oct 16 14:54:20 EDT 2006 i686
X Vendor: The X.Org Foundation
X Vendor Release: 70101000
Selinux: Enforcing
Accessibility: Disabled
----------- .xsession-errors ---------------------
Debug: Loading Beagle.Util.Conf+SearchingConfig from searching.xml
Debug: Loading Beagle.Util.Conf+NetworkingConfig from networking.xml
Debug: Loading Beagle.Util.Conf+WebServicesConfig from webservices.xml
Introspect error: The name edu.duke.linux.yum was not provided by any .service files
Unable to connect to yum-updatesd...
** Message: Could not connect to power manager: Could not get owner of name 'org.gnome.PowerManager': no such name
Xlib: unexpected async reply (sequence 0xd)!
Unable to connect to yum-updatesd...
** Message: Could not connect to power manager: Could not get owner of name 'org.gnome.PowerManager': no such name
Unable to connect to yum-updatesd...
** (bug-buddy:2940): WARNING **: Couldn't load icon for Open Folder
Unable to connect to yum-updatesd...
** (bug-buddy:3074): WARNING **: Couldn't load icon for Open Folder
--------------------------------------------------

Memory status: size: 25649152 vsize: 0 resident: 25649152 share: 0 rss: 9928704 rss_rlim: 0
CPU usage: start_time: 1162565767 rtime: 0 utime: 38 stime: 0 cutime:32 cstime: 0 timeout: 6 it_real_value: 0 frequency: 0

Backtrace was generated from '/usr/bin/gnome-keyboard-properties'

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1208358688 (LWP 3072)]
0x001d0402 in __kernel_vsyscall ()

Thread 1 (Thread -1208358688 (LWP 3072))

  • #0 __kernel_vsyscall
  • #1 __waitpid_nocancel
    from /lib/libpthread.so.0
  • #2 gnome_gtk_module_info_get
    from /usr/lib/libgnomeui-2.so.0
  • #3 <signal handler called>
  • #4 xkl_read_config_item
    at xklavier_config.c line 42
  • #5 xkl_config_registry_find_object
    at xklavier_config.c line 265
  • #6 gswitchit_kbd_config_get_lv_descriptions
    at gswitchit-config.c line 116
  • #7 gswitchit_kbd_config_get_descriptions
    at gswitchit-config.c line 1003
  • #8 xkb_layouts_fill_selected_tree
    at gnome-keyboard-properties-xkblt.c line 347
  • #9 setup_xkb_tabs
    at gnome-keyboard-properties-xkb.c line 179
  • #10 main
    at gnome-keyboard-properties.c line 172
  • #11 __libc_start_main
    from /lib/libc.so.6
  • #12 _start
  • #0 __kernel_vsyscall

Comment 2 Sergey V. Udaltsov 2006-11-03 18:24:09 UTC
Wow, this is more interesting and way more informative.

What is your XKB configuration? Could you please do

xprop -root | grep XKB

and 

gconftool-2 -R /desktop/gnome/peripherals/keyboard/kbd
Comment 3 Sergey V. Udaltsov 2006-11-03 18:36:11 UTC
I am getting suspicious there is something broking in libxml...

Actually, looking at version 3.0 of libxklavier (http://webcvs.freedesktop.org/xklavier/libxklavier/libxklavier/xklavier_config.c?annotate=1.26&pathrev=v_3_00),

I can see:

264 : 	  	  	 if (nodes != NULL && nodes->nodeTab != NULL) {
265 : 	svu 	1.22 	rv = xkl_read_config_item(config, *nodes->nodeTab, pitem);

It seems *nodes->nodeTab is NULL (I'll check libxml API whether it is correct or not).

Could you please check one small fix: change line 264 to

if (nodes != NULL && nodes->nodeTab != NULL && *nodes->nodeTab != NULL) {
Comment 4 Sergey V. Udaltsov 2006-11-03 18:41:28 UTC
Or even better:

if (nodes != NULL && nodes->nodeTab != NULL && nodes->nodeNr > 0) {
Comment 5 Sergey V. Udaltsov 2006-11-03 23:21:14 UTC
*** Bug 368055 has been marked as a duplicate of this bug. ***
Comment 6 Roshan Kamath 2006-11-04 07:06:24 UTC
(In reply to comment #2)

> What is your XKB configuration? Could you please do
> xprop -root | grep XKB
> and 
> gconftool-2 -R /desktop/gnome/peripherals/keyboard/kbd

Here are the results.
-------------
$ xprop -root | grep XKB
_XKB_RULES_NAMES_BACKUP(STRING) = "xorg", "pc105", "us", "dvorak", ""
_XKB_RULES_NAMES(STRING) = "xorg", "pc105", "dvorak,us", ",", "grp:shifts_toggle,lv3:switch,grp_led:scroll,compose:ralt,eurosign:e"

$ gconftool-2 -R /desktop/gnome/peripherals/keyboard/kbd
 layouts = [dvorak,us]
 model = 
 options = [grp grp:shifts_toggle,lv3   lv3:switch,grp_led      grp_led:scroll,Compose key      compose:ralt,eurosign   eurosign:e]
 overrideSettings = true
-------------

If I'm needed to try out the 'fix' in libxklavier, I'll need to acquire the appropriate expertise to do so. Alternatively, if somebody can spin a libxklavier rpm with the update you suggested I would be glad try it out immediately.
Comment 7 mcatudal 2006-11-04 07:20:47 UTC
Here is my results

[michel@localhost ~]$ xprop -root | grep XKB
_XKB_RULES_NAMES_BACKUP(STRING) = "xorg", "pc105", "ca(fr)", "", ""
_XKB_RULES_NAMES(STRING) = "xorg", "pc105", "ca(fr)", "", ""
[michel@localhost ~]$ gconftool-2 -R /desktop/gnome/peripherals/keyboard/kbd
 layouts = []
 model = 
 overrideSettings = true
 options = []
[michel@localhost ~]$ 



I have not rebooted yet so this is still after the crash. I know that
after I reboot the keyboard will be messed up again.
I only get the right keyboard after the keyboard setup crashes.


Michel Catudal



Comment 8 Konstantin Sharlaimov 2006-11-04 08:44:35 UTC
My results are:
[jshadow@traveler ~]$ xprop -root | grep XKB
_XKB_RULES_NAMES_BACKUP(STRING) = "xorg", "pc105", "us,ru(winkeys)", "", "grp:ctrl_shift_toggle,grp_led:scroll"
_XKB_RULES_NAMES(STRING) = "xorg", "pc104", "us,ru(winkeys)", ",", "grp:ctrl_shift_toggle,grp_led:scroll"
[jshadow@traveler ~]$ gconftool-2 -R /desktop/gnome/peripherals/keyboard/kbd
 layouts = us,ru(winkeys)
 model = pc104
 overrideSettings = true
 options = (no value set)

I don't have the knowlege of linux programming yet, so I am afraid I won't be able to track the problem myself, however I will be trying. Meanwhile, I will be happy to try the binary compiled by someone else.
Comment 9 Sergey V. Udaltsov 2006-11-04 11:51:39 UTC
*** Bug 351395 has been marked as a duplicate of this bug. ***
Comment 10 Sergey V. Udaltsov 2006-11-04 11:54:38 UTC
Since I do not have Fedora I'm afraid I would not be able to help you with RPM... Thanks for information though lads - I'll try to reproduce your problem (with unfixed code).
But I'd really appreciate if anyone with that problem would be able to try this fix.
Comment 11 Sergey V. Udaltsov 2006-11-04 11:55:14 UTC
*** Bug 370025 has been marked as a duplicate of this bug. ***
Comment 12 Jon Lapham 2006-11-04 12:56:48 UTC
Sergey-

Your patch works perfectly.  After making the change to xklavier_config.c you suggest above and recompiling, the keyboard indicator applet works perfectly for switching between two keyboards.  Thanks!

PS: I have the source rpms which I can send to people or post somewhere if there is interest.
Comment 13 mcatudal 2006-11-04 14:14:40 UTC
(In reply to comment #12)
> Sergey-
> 
> Your patch works perfectly.  After making the change to xklavier_config.c you
> suggest above and recompiling, the keyboard indicator applet works perfectly
> for switching between two keyboards.  Thanks!
> 
> PS: I have the source rpms which I can send to people or post somewhere if
> there is interest.
> 

I would be interested in the patch.

Michel
Comment 14 Konstantin Sharlaimov 2006-11-04 14:44:18 UTC
Sergey,

I've applied your patch - it worked perfectly for me. gnome-keyboard-properties
applet is now working. Thanks!

I am looking forward for this fixed libxklavier to appear at Fedora Core
updates.
Comment 15 Jon Lapham 2006-11-04 16:51:17 UTC
Okay, I uploaded the patched SRC RPM to my web server.  Please be gentle!

http://www.jandr.org/libxklavier-3.0-2.src.rpm

Instructions:

To build a binary RPM, you need to run:
rpmbuild --rebuild libxklavier-3.0-2.src.rpm

You will probably need to install a few devel packages to get this to work, hopefully the messages will be self explanatory.

When it finishes, you will see something printed like this:
Wrote: /usr/src/redhat/RPMS/i386/libxklavier-3.0-2.i386.rpm

To install the binary, run this command:
rpm -Uvh /usr/src/redhat/RPMS/i386/libxklavier-3.0-2.i386.rpm
Comment 16 Jon Lapham 2006-11-04 17:03:38 UTC
Oh, one other thing.  After updating, you need to log out and confirm that all the gnome processes that use libxkavier are no longer running.  (I had a locked up gnome-keyboard-preferences running that I had to manually kill).  Then log into gnome again.
Comment 17 Roshan Kamath 2006-11-04 17:15:41 UTC
(In reply to comment #15)

> Okay, I uploaded the patched SRC RPM to my web server.  Please be gentle!
> http://www.jandr.org/libxklavier-3.0-2.src.rpm

Thanks Jon for the src rpm & the instructions!!

Sergey, I verified that Jon's rpm with your patch fixes my original problem of gnome-keyboard-properties crashing. It has also fixed Bug 370025 which I had encountered earlier (and which is now dup'ed to this).

Thanks so much all.
Comment 18 André Klapper 2006-11-04 18:25:16 UTC
*** Bug 370589 has been marked as a duplicate of this bug. ***
Comment 19 Konstantin Sharlaimov 2006-11-04 22:52:28 UTC
Jon, thank you very much for the src rpm!

I've created binary RPMs for x86_64 if somebody needs them.
Comment 20 Sergey V. Udaltsov 2006-11-04 23:39:34 UTC
I think now we can close this one. Feel free to reopen if same stack trace happens to you again...
Comment 21 Sergey V. Udaltsov 2006-11-05 13:08:40 UTC
*** Bug 370959 has been marked as a duplicate of this bug. ***
Comment 22 Sergey V. Udaltsov 2006-11-05 13:09:51 UTC
*** Bug 370993 has been marked as a duplicate of this bug. ***
Comment 23 Sergey V. Udaltsov 2006-11-05 15:26:45 UTC
*** Bug 371058 has been marked as a duplicate of this bug. ***
Comment 24 Sergey V. Udaltsov 2006-11-05 17:54:07 UTC
*** Bug 371137 has been marked as a duplicate of this bug. ***
Comment 25 Matthias Clasen 2006-11-05 21:02:38 UTC
FYI: An updated libxklavier rpm for fc6 is in updates-testing.
Comment 26 Sergey V. Udaltsov 2006-11-05 21:30:58 UTC
Thank you, Matthias!
Comment 27 André Klapper 2006-11-06 09:21:28 UTC
sergey, is bug 369256 a duplicate?
Comment 28 Sergey V. Udaltsov 2006-11-06 13:45:39 UTC
*** Bug 369256 has been marked as a duplicate of this bug. ***
Comment 29 Sergey V. Udaltsov 2006-11-06 20:31:59 UTC
*** Bug 371528 has been marked as a duplicate of this bug. ***
Comment 30 Sergey V. Udaltsov 2006-11-07 18:07:39 UTC
*** Bug 372085 has been marked as a duplicate of this bug. ***
Comment 31 Sergey V. Udaltsov 2006-11-07 19:51:42 UTC
*** Bug 372146 has been marked as a duplicate of this bug. ***
Comment 32 Sergey V. Udaltsov 2006-11-07 22:40:41 UTC
*** Bug 372217 has been marked as a duplicate of this bug. ***
Comment 33 Sergey V. Udaltsov 2006-11-07 22:51:22 UTC
*** Bug 372238 has been marked as a duplicate of this bug. ***
Comment 34 Sergey V. Udaltsov 2006-11-08 13:07:02 UTC
*** Bug 372421 has been marked as a duplicate of this bug. ***
Comment 35 André Klapper 2006-11-08 17:05:34 UTC
*** Bug 372472 has been marked as a duplicate of this bug. ***
Comment 36 Sergey V. Udaltsov 2006-11-08 22:56:02 UTC
*** Bug 372576 has been marked as a duplicate of this bug. ***
Comment 37 Sergey V. Udaltsov 2006-11-08 22:56:33 UTC
*** Bug 372606 has been marked as a duplicate of this bug. ***
Comment 38 Sergey V. Udaltsov 2006-11-09 18:33:05 UTC
*** Bug 372991 has been marked as a duplicate of this bug. ***
Comment 39 André Klapper 2006-11-09 20:04:14 UTC
*** Bug 370547 has been marked as a duplicate of this bug. ***
Comment 40 Sergey V. Udaltsov 2006-11-19 20:58:32 UTC
*** Bug 377035 has been marked as a duplicate of this bug. ***
Comment 41 André Klapper 2006-11-27 23:01:37 UTC
*** Bug 379833 has been marked as a duplicate of this bug. ***
Comment 42 André Klapper 2006-12-05 01:58:01 UTC
bug 382146 could be another duplicate
Comment 43 Jens Granseuer 2007-01-12 23:14:24 UTC
*** Bug 395929 has been marked as a duplicate of this bug. ***
Comment 44 Bruno Boaventura 2007-01-20 19:16:50 UTC
*** Bug 398807 has been marked as a duplicate of this bug. ***
Comment 45 Jens Granseuer 2007-02-07 18:18:04 UTC
*** Bug 405402 has been marked as a duplicate of this bug. ***
Comment 46 Jens Granseuer 2007-02-15 16:57:37 UTC
*** Bug 408043 has been marked as a duplicate of this bug. ***
Comment 47 Jens Granseuer 2007-02-15 17:01:40 UTC
*** Bug 408166 has been marked as a duplicate of this bug. ***
Comment 48 Jens Granseuer 2007-02-16 17:46:28 UTC
*** Bug 408435 has been marked as a duplicate of this bug. ***
Comment 49 Jens Granseuer 2007-02-16 17:47:12 UTC
*** Bug 408555 has been marked as a duplicate of this bug. ***
Comment 50 Jens Granseuer 2007-02-21 15:38:01 UTC
*** Bug 410382 has been marked as a duplicate of this bug. ***
Comment 51 Jens Granseuer 2007-03-28 19:49:14 UTC
*** Bug 423858 has been marked as a duplicate of this bug. ***
Comment 52 Jens Granseuer 2007-03-28 19:52:23 UTC
*** Bug 420956 has been marked as a duplicate of this bug. ***
Comment 53 Jens Granseuer 2007-04-13 18:12:09 UTC
*** Bug 428961 has been marked as a duplicate of this bug. ***
Comment 54 Jens Granseuer 2007-04-18 13:06:03 UTC
*** Bug 430968 has been marked as a duplicate of this bug. ***