When running X -configure, I get the following output: XFree86 Version 4.2.1 / X Window System (protocol Version 11, revision 0, vendor release 6600) Release Date: 3 September 2002 If the server is older than 6-12 months, or if your card is newer than the above date, look for a newer version before reporting problems. (See http://www.XFree86.Org/) Build Operating System: Linux 2.4.20-gentoo-r1 i686 [ELF] 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: Fri Mar 14 17:45:07 2003 Killed /var/log/XFree86.0.log contains: XFree86 Version 4.2.1 / X Window System (protocol Version 11, revision 0, vendor release 6600) Release Date: 3 September 2002 If the server is older than 6-12 months, or if your card is newer than the above date, look for a newer version before reporting problems. (See http://www.XFree86.Org/) Build Operating System: Linux 2.4.20-gentoo-r1 i686 [ELF] Module Loader present Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (WW) Open APM failed (/dev/apm_bios) (No such file or directory) (II) Module ABI versions: XFree86 ANSI C Emulation: 0.1 XFree86 Video Driver: 0.5 XFree86 XInput driver : 0.3 XFree86 Server Extension : 0.1 XFree86 Font Renderer : 0.3 (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.1, module version = 1.0.0 Module class: XFree86 Font Renderer ABI class: XFree86 Font Renderer, version 0.3 I have a working XF86Config, however running startx or gdm/xdm dies with the following: XIO: fatal IO error 104 (Connection reset by peer) on Xserver ":0.0" after 0 requests (0 known processed) with 0 events remaining. A strace of X -configure is available at http://unmoved.net/gentoo/xfree-4.2.1-strace The same happens with XFree86 4.3.0 and 4.3.0-r1. X dies just after it has flicked to VT7, but before anything is displayed. Machine is a P3/600, fresh install of 1.4-rc3, rsync'd and emerge -u world'ed this morning. Reproducible: Always Steps to Reproduce: 1. startx, or gdm/xdm with known working XF86Config, or 2. X -configure Actual Results: As in Details Expected Results: Started X.
Right .. a copy of your XF86Config and the complete log (usually /var/log/XFree86.0.log) might help.
XF86Config: Section "Module" Load "dbe" # Double buffer extension SubSection "extmod" Option "omit xfree86-dga" # don't initialise the DGA extension EndSubSection Load "type1" Load "freetype" EndSection Section "Files" RgbPath "/usr/X11R6/lib/X11/rgb" FontPath "/usr/X11R6/lib/X11/fonts/local/" FontPath "/usr/X11R6/lib/X11/fonts/misc/" FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled" #FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled" FontPath "/usr/X11R6/lib/X11/fonts/Type1/" FontPath "/usr/X11R6/lib/X11/fonts/Speedo/" #FontPath "/usr/X11R6/lib/X11/fonts/100dpi/" EndSection Section "ServerFlags" Option "NoTrapSignals" Option "DontZap" EndSection Section "InputDevice" Identifier "Keyboard1" Driver "Keyboard" Option "AutoRepeat" "500 30" Option "XkbRules" "xfree86" Option "XkbModel" "pc104" Option "XkbLayout" "gb" EndSection Section "InputDevice" Identifier "Mouse1" Driver "mouse" Option "Protocol" "IMPS/2" Option "Device" "/dev/mouse" EndSection Section "Monitor" Identifier "My Monitor" HorizSync 31.5 - 79.0 VertRefresh 75 EndSection Section "Device" Identifier "Matrox Millennium G400" Driver "mga" #VideoRam 32768 # Insert Clocks lines here if appropriate EndSection Section "Screen" Identifier "Screen 1" Device "Matrox Millennium G400" Monitor "My Monitor" DefaultDepth 24 Subsection "Display" Depth 8 Modes "1152x864" ViewPort 0 0 EndSubsection Subsection "Display" Depth 16 Modes "1152x864" ViewPort 0 0 EndSubsection Subsection "Display" Depth 24 Modes "1152x864" ViewPort 0 0 EndSubsection EndSection Section "ServerLayout" Identifier "Simple Layout" Screen "Screen 1" InputDevice "Mouse1" "CorePointer" InputDevice "Keyboard1" "CoreKeyboard" EndSection .. and XFree86.0.log: XFree86 Version 4.2.1 / X Window System (protocol Version 11, revision 0, vendor release 6600) Release Date: 3 September 2002 If the server is older than 6-12 months, or if your card is newer than the above date, look for a newer version before reporting problems. (See http://www.XFree86.Org/) Build Operating System: Linux 2.4.20 i686 [ELF] 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: Mon Mar 17 14:40:21 2003 (==) Using config file: "/etc/X11/XF86Config" (==) ServerLayout "Simple Layout" (**) |-->Screen "Screen 1" (0) (**) | |-->Monitor "My Monitor" (**) | |-->Device "Matrox Millennium G400" (**) |-->Input Device "Mouse1" (**) |-->Input Device "Keyboard1" (**) Option "AutoRepeat" "500 30" (**) Option "XkbRules" "xfree86" (**) XKB: rules: "xfree86" (**) Option "XkbModel" "pc104" (**) XKB: model: "pc104" (**) Option "XkbLayout" "gb" (**) XKB: layout: "gb" (==) Keyboard: CustomKeycode disabled (**) FontPath set to "/usr/X11R6/lib/X11/fonts/local/,/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/75dpi/:unscaled,/usr/X11R6/lib/X11/fonts/100dpi/:unscaled,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/Speedo/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/" (**) RgbPath set to "/usr/X11R6/lib/X11/rgb" (==) ModulePath set to "/usr/X11R6/lib/modules" (**) Option "NoTrapSignals" (**) Option "DontZap" (--) using VT number 7 (WW) Open APM failed (/dev/apm_bios) (No such file or directory) (II) Module ABI versions: XFree86 ANSI C Emulation: 0.1 XFree86 Video Driver: 0.5 XFree86 XInput driver : 0.3 XFree86 Server Extension : 0.1 XFree86 Font Renderer : 0.3 (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.1, module version = 1.0.0 Module class: XFree86 Font Renderer ABI class: XFree86 Font Renderer, version 0.3
Above config/xfree86.0.log output is after I emerged xfree on another system (identical hardware, running exactly the same versions of all gentoo packages, but with non-gentoo kernel) using -B, and reinstalled on problem machine with emerge -k. If you would prefer me to do a plain emerge on problem box again then ask and I will do so.
Right. Further to the last note, I disabled all grsecurity options in the kernel, and X now starts. However, I was using identical settings (restrict /proc, additional /proc restrictions, and randomised ip id's) to the machine I had compiled the X package on and moved across, so it is not immediately clear why this fixed the issue. Nevertheless, not a bug in the xfree package. Appologies for confusion caused and time wasted.
No problem, glad you sorted it. Sorry, I should actually have asked about grsecurity, as I did have reports in the past of similar things ... slipped the mind :/