Re: [XFree86] Compiled keymaps in 4.2.99.901 Linux-ix86-glibc22 binary snapshot - SIGSEGV

2003-02-08 Thread David Dawes
On Sun, Feb 09, 2003 at 12:04:38PM +1100, Paul Whittaker wrote:
>I am getting a segmentation fault in /usr/X11R6/bin/XFree86 (4.2.99.901 
>Linux-ix86-glibc22 binary snapshot) when using "-xkbmap default" in 
>conjunction with a /usr/X11R6/lib/X11/xkb/compiled/default.xkm file 
>prepared using "xkbcomp -xkm :0" against a 4.2.99.901 display using the 
>following keyboard InputDevice options:
>
> Option  "XkbRules"  "xfree86"
> Option  "XkbModel"  "pc105"
> Option  "XkbLayout" "us"
>
>Host O/S is a custom Linux distribution (DIET-PC[.sourceforge.net]) 
>based on Linux 2.4.20.  Host hardware are Pentium-I series units with 
>onboard S3 Trio64 and Trio64-V2 chipsets.  Problem occurs using s3 
>(Trio64) and vesa (both) drivers (BTW, any chance of Trio64-V2 support 
>in s3 driver any time soon?).  The problem does not occur in XFree86 
>4.2.1.  The problem does not occur if "-xkbmap default" is omitted.

I've found the reason for the segfault, but with that fixed I get:

Cannot open "keymap/default" for reading
Error opening keymap file default, reverting to defaults

(I'll commit the segfault fix soon.)

David
--
David Dawes
Release Engineer/Architect  The XFree86 Project
www.XFree86.org/~dawes

>The full command line is:
>
>/usr/X11R6/bin/XFree86 -quiet -xkbmap default -auth /.Xauthority -fp 
>/usr/X11R6/lib/X11/fonts/misc:unscaled,/usr/X11R6/lib/X11/fonts/75dpi:unscaled,tcp/fontserver:7100
> 
>-query xdmserver dpms vt2 :0
>
>/var/log/XFree86.0.log is attached.  The last few system calls before 
>the SIGSEGV in strace output are:
>
>open("/usr/X11R6/lib/X11/xkb/compiled/default.xkm", O_RDONLY) = 7
>fstat64(7, {st_mode=S_IFREG|0644, st_size=8304, ...}) = 0
>old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
>-1, 0) = 0
>x40015000
>read(7, "\17mkx\26\10\377\7\177\0\0\0\6\0\1\0D\0D\0\4\0\1\0\0\5"..., 
>4096) = 409
>6
>_llseek(7, 0, [0], SEEK_SET)= 0
>read(7, "\17mkx\26\10\377\7\177\0\0\0\6\0\1\0D\0D\0\4\0\1\0\0\5"..., 
>4096) = 409
>6
>_llseek(7, 4096, [4096], SEEK_SET)  = 0
>_llseek(7, 4096, [4096], SEEK_SET)  = 0
>_llseek(7, 4096, [4096], SEEK_SET)  = 0
>_llseek(7, 4096, [4096], SEEK_SET)  = 0
>read(7, "\2\1\0\21\10\0CTRL+ALT\0\0\252\377\0\0\0\0\0\0\0\0\0\0"..., 
>4096) = 409
>6
>_llseek(7, 8192, [8192], SEEK_SET)  = 0
>_llseek(7, 8192, [8192], SEEK_SET)  = 0
>read(7, "Label\0\0\0\3\6&\2\270\20\0\0\214\1d\0\0\0\0\0\v\0Scro"..., 
>4096) = 112
>close(7)= 0
>munmap(0x40015000, 4096)= 0
>ioctl(5, 0x4b32, 0) = 0
>--- SIGSEGV (Segmentation fault) ---

>
>This is a pre-release version of XFree86, and is not supported in any
>way.  Bugs may be reported to [EMAIL PROTECTED] and patches submitted
>to [EMAIL PROTECTED]  Before reporting bugs in pre-release versions,
>please check the latest version in the XFree86 CVS repository
>(http://www.XFree86.Org/cvs).
>
>XFree86 Version 4.2.99.901 (4.3.0 RC 1)
>Release Date: 4 February 2003
>X Protocol Version 11, Revision 0, Release 6.6
>Build Operating System: Linux 2.4.7-10custom i686 [ELF] 
>Build Date: 05 February 2003
>   Before reporting problems, check http://www.XFree86.Org/
>   to make sure that you have the latest version.
>Module Loader present
>Markers: (--) probed, (**) from config file, (==) default setting,
> (++) from command line, (!!) notice, (II) informational,
> (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
>(==) Log file: "/var/log/XFree86.0.log", Time: Sun Feb  9 12:00:52 2003
>(==) Using config file: "/etc/X11/XF86Config-4"
>(==) ServerLayout "DIET-PC X11 Server"
>(**) |-->Screen "Screen" (0)
>(**) |   |-->Monitor "Monitor"
>(**) |   |-->Device "Video Card"
>(**) |-->Input Device "Mouse"
>(**) |-->Input Device "Keyboard"
>(**) Option "Protocol" "Standard"
>(**) Option "AutoRepeat" "250 30"
>(==) Keyboard: CustomKeycode disabled
>(++) FontPath set to 
>"/usr/X11R6/lib/X11/fonts/misc:unscaled,/usr/X11R6/lib/X11/fonts/75dpi:unscaled,tcp/fontserver:7100"
>(**) RgbPath set to "/usr/X11R6/lib/X11/rgb"
>(==) ModulePath set to "/usr/X11R6/lib/modules"
>(**) Option "AllowNonLocalXvidtune" "on"
>(**) Option "BlankTime" "5"
>(**) Option "StandbyTime" "10"
>(**) Option "SuspendTime" "20"
>(**) Option "OffTime" "40"
>(++) using VT number 2
>
>(II) Open APM successful
>(II) Module ABI versions:
>   XFree86 ANSI C Emulation: 0.2
>   XFree86 Video Driver: 0.6
>   XFree86 XInput driver : 0.4
>   XFree86 Server Extension : 0.2
>   XFree86 Font Renderer : 0.4
>(II) Loader running on linux
>(II) LoadModule: "bitmap"
>(II) Loading /usr/X11R6/lib/modules/fonts/libbitmap.a
>(II) Module bitmap: vendor="The XFree86 Project"
>   compiled for 4.2.99.901, module version = 1.0.0
>   Module class: XFree86 Font Renderer
>   ABI class: XFree86 Font Renderer, version 0.4
>(II) Loading font Bitmap
>(II) LoadModule: "pcidata"
>(II) Loading /usr/X

[XFree86] Compiled keymaps in 4.2.99.901 Linux-ix86-glibc22 binary snapshot- SIGSEGV

2003-02-08 Thread Paul Whittaker
I am getting a segmentation fault in /usr/X11R6/bin/XFree86 (4.2.99.901 
Linux-ix86-glibc22 binary snapshot) when using "-xkbmap default" in 
conjunction with a /usr/X11R6/lib/X11/xkb/compiled/default.xkm file 
prepared using "xkbcomp -xkm :0" against a 4.2.99.901 display using the 
following keyboard InputDevice options:

Option  "XkbRules"  "xfree86"
Option  "XkbModel"  "pc105"
Option  "XkbLayout" "us"

Host O/S is a custom Linux distribution (DIET-PC[.sourceforge.net]) 
based on Linux 2.4.20.  Host hardware are Pentium-I series units with 
onboard S3 Trio64 and Trio64-V2 chipsets.  Problem occurs using s3 
(Trio64) and vesa (both) drivers (BTW, any chance of Trio64-V2 support 
in s3 driver any time soon?).  The problem does not occur in XFree86 
4.2.1.  The problem does not occur if "-xkbmap default" is omitted.

The full command line is:

/usr/X11R6/bin/XFree86 -quiet -xkbmap default -auth /.Xauthority -fp 
/usr/X11R6/lib/X11/fonts/misc:unscaled,/usr/X11R6/lib/X11/fonts/75dpi:unscaled,tcp/fontserver:7100 
-query xdmserver dpms vt2 :0

/var/log/XFree86.0.log is attached.  The last few system calls before 
the SIGSEGV in strace output are:

open("/usr/X11R6/lib/X11/xkb/compiled/default.xkm", O_RDONLY) = 7
fstat64(7, {st_mode=S_IFREG|0644, st_size=8304, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
-1, 0) = 0
x40015000
read(7, "\17mkx\26\10\377\7\177\0\0\0\6\0\1\0D\0D\0\4\0\1\0\0\5"..., 
4096) = 409
6
_llseek(7, 0, [0], SEEK_SET)= 0
read(7, "\17mkx\26\10\377\7\177\0\0\0\6\0\1\0D\0D\0\4\0\1\0\0\5"..., 
4096) = 409
6
_llseek(7, 4096, [4096], SEEK_SET)  = 0
_llseek(7, 4096, [4096], SEEK_SET)  = 0
_llseek(7, 4096, [4096], SEEK_SET)  = 0
_llseek(7, 4096, [4096], SEEK_SET)  = 0
read(7, "\2\1\0\21\10\0CTRL+ALT\0\0\252\377\0\0\0\0\0\0\0\0\0\0"..., 
4096) = 409
6
_llseek(7, 8192, [8192], SEEK_SET)  = 0
_llseek(7, 8192, [8192], SEEK_SET)  = 0
read(7, "Label\0\0\0\3\6&\2\270\20\0\0\214\1d\0\0\0\0\0\v\0Scro"..., 
4096) = 112
close(7)= 0
munmap(0x40015000, 4096)= 0
ioctl(5, 0x4b32, 0) = 0
--- SIGSEGV (Segmentation fault) ---

This is a pre-release version of XFree86, and is not supported in any
way.  Bugs may be reported to [EMAIL PROTECTED] and patches submitted
to [EMAIL PROTECTED]  Before reporting bugs in pre-release versions,
please check the latest version in the XFree86 CVS repository
(http://www.XFree86.Org/cvs).

XFree86 Version 4.2.99.901 (4.3.0 RC 1)
Release Date: 4 February 2003
X Protocol Version 11, Revision 0, Release 6.6
Build Operating System: Linux 2.4.7-10custom i686 [ELF] 
Build Date: 05 February 2003
Before reporting problems, check http://www.XFree86.Org/
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
 (++) from command line, (!!) notice, (II) informational,
 (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/XFree86.0.log", Time: Sun Feb  9 12:00:52 2003
(==) Using config file: "/etc/X11/XF86Config-4"
(==) ServerLayout "DIET-PC X11 Server"
(**) |-->Screen "Screen" (0)
(**) |   |-->Monitor "Monitor"
(**) |   |-->Device "Video Card"
(**) |-->Input Device "Mouse"
(**) |-->Input Device "Keyboard"
(**) Option "Protocol" "Standard"
(**) Option "AutoRepeat" "250 30"
(==) Keyboard: CustomKeycode disabled
(++) FontPath set to 
"/usr/X11R6/lib/X11/fonts/misc:unscaled,/usr/X11R6/lib/X11/fonts/75dpi:unscaled,tcp/fontserver:7100"
(**) RgbPath set to "/usr/X11R6/lib/X11/rgb"
(==) ModulePath set to "/usr/X11R6/lib/modules"
(**) Option "AllowNonLocalXvidtune" "on"
(**) Option "BlankTime" "5"
(**) Option "StandbyTime" "10"
(**) Option "SuspendTime" "20"
(**) Option "OffTime" "40"
(++) using VT number 2

(II) Open APM successful
(II) Module ABI versions:
XFree86 ANSI C Emulation: 0.2
XFree86 Video Driver: 0.6
XFree86 XInput driver : 0.4
XFree86 Server Extension : 0.2
XFree86 Font Renderer : 0.4
(II) Loader running on linux
(II) LoadModule: "bitmap"
(II) Loading /usr/X11R6/lib/modules/fonts/libbitmap.a
(II) Module bitmap: vendor="The XFree86 Project"
compiled for 4.2.99.901, module version = 1.0.0
Module class: XFree86 Font Renderer
ABI class: XFree86 Font Renderer, version 0.4
(II) Loading font Bitmap
(II) LoadModule: "pcidata"
(II) Loading /usr/X11R6/lib/modules/libpcidata.a
(II) Module pcidata: vendor="The XFree86 Project"
compiled for 4.2.99.901, module version = 1.0.0
ABI class: XFree86 Video Driver, version 0.6
(II) PCI: Probing config type using method 1
(II) PCI: Config type is 1
(II) PCI: stages = 0x03, oldVal1 = 0x, mode1Res1 = 0x8000
(II) PCI: PCI scan (all values are in hex)
(II) PCI: 00:00:0: chip 1004,0005 card , rev 01 class 06,00,00 hdr 00
(II) PCI: 00:01:0: chip 1004,0006 c