--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: xkbcomp segfault with -I flag
- From: Kevin Turner <kevin.turner@oberlin.edu>
- Date: Mon, 01 Nov 1999 16:32:39 -0500
- Message-id: <199911012132.QAA20719@dhcpp8449.resnet.oberlin.edu>
Package: xbase-clients
Version: 3.3.5-1
Severity: normal
I was playing with xkbsel... It compiled the system keymaps fine, but when I
tried to throw one in my user directory into the mix, xkbcomp (as run from
xkbsel) would segfault. Turns out that the difference is that xkbsel adds an
-I option to xkbcomp sometimes... Removing the -I option makes for no segfault.
I compiled xkbcomp with debugging symbols and ran again from GDB:
(gdb) run -synch -xkm -R'/home/kevint/.xkbsel' -I'/usr/share/xkbsel' -o '/home/k
evint/.xkbsel/compiled/kmt/kmtfoo.xkm' '/home/kevint/.xkbsel/keymap/kmt(kmtfoo)'
Starting program: /usr/local/src/xfree86-1-3.3.5/upstream/xc/programs/xkbcomp/xk
bcomp -synch -xkm -R'/home/kevint/.xkbsel' -I'/usr/share/xkbsel' -o '/home/kevin
t/.xkbsel/compiled/kmt/kmtfoo.xkm' '/home/kevint/.xkbsel/keymap/kmt(kmtfoo)'
Program received signal SIGSEGV, Segmentation fault.
0x80602b4 in XkbFindFileInPath (name=0x8084178 "xfree86", type=4,
pathRtrn=0x80841a0) at xkbpath.c:331
331 pathLen= strlen(includePath[i]);
(gdb) bt
#0 0x80602b4 in XkbFindFileInPath (name=0x8084178 "xfree86", type=4,
pathRtrn=0x80841a0) at xkbpath.c:331
#1 0x804eb3b in ProcessIncludeFile (stmt=0x8084188, file_type=4,
file_rtrn=0xbfffd044, merge_rtrn=0xbfffd048) at misc.c:62
#2 0x8050809 in HandleIncludeKeycodes (stmt=0x8084188, xkb=0x8084090,
info=0xbfffe31c, hndlr=0x8050d1c <HandleKeycodesFile>) at keycodes.c:541
#3 0x8050d71 in HandleKeycodesFile (file=0x80841b0, xkb=0x8084090, merge=2,
info=0xbfffe31c) at keycodes.c:766
#4 0x8050e68 in CompileKeycodes (file=0x80841b0, result=0xbfffed30, merge=2)
at keycodes.c:830
#5 0x804fd5c in CompileKeymap (file=0x80843a8, result=0xbfffed30, merge=3)
at keymap.c:142
#6 0x804b48f in main (argc=8, argv=0xbfffeda4) at xkbcomp.c:803
and the test keymap file "kmt": << EOF
default xkb_keymap "kmtfoo" {
xkb_keycodes { include "xfree86" };
xkb_types { include "default" };
xkb_compatibility { include "default" };
xkb_symbols { include "us(pc105)" };
xkb_geometry { include "pc" };
};
EOF
excerpt from xbseldb logs:
Running /usr/bin/X11/xkbcomp -xkm -R'/usr/share/xkbsel' -o '/home/kevint/.xkbsel/compiled/xfree86/us_microsoft.xkm' '/usr/X11R6/lib/X11/xkb/keymap/xfree86(us_microsoft)'
Running /usr/bin/X11/xkbcomp -xkm -R'/home/kevint/.xkbsel' -I'/usr/share/xkbsel' -o '/home/kevint/.xkbsel/compiled/kmt/kmtfoo.xkm' '/home/kevint/.xkbsel/keymap/kmt(kmtfoo)'
/usr/bin/X11/xkbcomp exited abnormally: 11
compiled map kmt(kmtfoo) not found in the /home/kevint/.xkbsel/compiled/kmt/kmtfoo.xkm nor /var/lib/xkbsel/compiled/kmt/kmtfoo.xkm
-- System Information
Debian Release: potato
Architecture: i386
Kernel: Linux dhcpp8449.resnet.oberlin.edu 2.2.13 #1 Sun Oct 24 14:19:08 EDT 1999 i586
Versions of packages xbase-clients depends on:
ii cpp 1:2.95.2-1 The GNU C preprocessor.
ii libc6 2.1.2-6 GNU C Library: Shared libraries an
ii libncurses4 4.2-3.4 Shared libraries for terminal hand
ii xlib6g 3.3.5-1 shared libraries required by X cli
ii zlib1g 1:1.1.3-4 compression library - runtime
--- End Message ---