[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#48934: marked as done (xbase-clients: [xkbcomp] segfaults with -I flag)



Your message dated Mon, 09 Apr 2007 19:25:11 +0200
with message-id <461A76F7.9040809@ens-lyon.org>
and subject line Undelivered Mail Returned to Sender
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
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 ---
--- Begin Message ---
Closing since the submitter's address is invalid. If anybody ever
reproduces this problem, feel free to reopen.

Brice


--- End Message ---

Reply to: