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 365590 - libgnomekbd crashes gnome-settings-daemon
libgnomekbd crashes gnome-settings-daemon
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: [obsolete] settings-daemon
git master
Other All
: Normal critical
: ---
Assigned To: Sergey V. Udaltsov
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-10-27 05:48 UTC by Rouslan Solomakhin (Руслан Соломахин)
Modified: 2006-10-27 15:44 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18


Attachments
Patch to fix the crash (663 bytes, patch)
2006-10-27 05:52 UTC, Rouslan Solomakhin (Руслан Соломахин)
none Details | Review

Description Rouslan Solomakhin (Руслан Соломахин) 2006-10-27 05:48:18 UTC
Steps to reproduce:
1. Compile glib, libgnomekbd, and gnome-settings-daemon from CVS HEAD.
2. Start gnome-setttings-daemon.


Stack trace:
Memory status: size: 21651456 vsize: 0 resident: 21651456 share: 0 rss: 8171520 rss_rlim: 0
CPU usage: start_time: 1161926419 rtime: 0 utime: 22 stime: 0 cutime:20 cstime: 0 timeout: 2 it_real_value: 0 frequency: 1

Backtrace was generated from '/opt/gnome2/bin/gnome-settings-daemon'

Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1226627392 (LWP 32437)]
0xffffe410 in __kernel_vsyscall ()

Thread 1 (Thread -1226627392 (LWP 32437))

  • #0 __kernel_vsyscall
  • #1 __waitpid_nocancel
    from /lib/tls/i686/cmov/libpthread.so.0
  • #2 libgnomeui_segv_handle
    at gnome-ui-init.c line 870
  • #3 <signal handler called>
  • #4 gkbd_keyboard_config_copy_from_xkl_config
    at gkbd-keyboard-config.c line 225
  • #5 gkbd_keyboard_config_load_from_x_initial
    at gkbd-keyboard-config.c line 562
  • #6 gnome_settings_keyboard_xkb_init
    at gnome-settings-keyboard-xkb.c line 235
  • #7 gnome_settings_daemon_new
    at gnome-settings-daemon.c line 330
  • #8 main
    at factory.c line 35
  • #0 __kernel_vsyscall


Other information:
Comment 1 Rouslan Solomakhin (Руслан Соломахин) 2006-10-27 05:52:06 UTC
Created attachment 75490 [details] [review]
Patch to fix the crash

This patch is a fix for the crasher. It inserts "if (own_data) data = xkl_config_rec_new ();" before calling gkbd_keyboard_config_copy_from_xkl_config (which dereferences variable "data") from function gkbd_keyboard_config_load_from_x_initial.

By the way, sorry to file this bug against gnome-settings-daemon. I know that the problem is in libgnomekbd, but there is no option to file a bug on that in bugzilla yet.
Comment 2 Sergey V. Udaltsov 2006-10-27 10:52:59 UTC
Rouslan, thank you for the fix. I'll apply it tonight.
Comment 3 Sergey V. Udaltsov 2006-10-27 15:44:20 UTC
Thanks, it is applied now.