Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17741 - Xfree 4.3 loads slowly at 100% CPU then (usually) freezes
Summary: Xfree 4.3 loads slowly at 100% CPU then (usually) freezes
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-18 01:13 UTC by Charles N. Burns
Modified: 2003-12-14 02:13 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Charles N. Burns 2003-03-18 01:13:09 UTC
When I try to run Xfree86 4.3 on my newly installed Gentoo installation, X takes
approx 3-5 minutes to start (though once it started in about 10 seconds). While
X is starting, CPU usage for the "X" process is 100% and the system stays in
text mode with a blank, black screen. After this time, it displays the TWM GUI
normally, but usually locks up. While I can login to the system via SSH, the
local terminal will not respond to CTRL-ALT-Fx, CTRL-ALT-DEL, CTRL-ALT-BS, etc.
On several occasions, I was able to get it to reboot from the local terminal
using the magic sysrq key, but I prefer not having that enabled in my kernel.
Exactly one time, X didn't lock up and I could use TWM normally with the
keyboard. The mouse (A Logitech PS/2 wheel mouse) didn't work, but was powered
(it has an LED). After exiting from X, I was not able to get it to run again. I
tried running XDM and Gnome2, but X doesn't seem to care what app I tell it to run.
On two occasions, I WAS able to CTRL-ALT-F1 and saw the X log. The only thing
abnormal that it reported was this:

Symbol drmCtlUninstHandler from module /usr/X11R6/lib/modules/drivers/mga_drv.o
is unresolved!
Symbol drmGetInterruptFromBusID from module
/usr/X11R6/lib/modules/drivers/mga_drv.o is unresolved!

I did not initially configure the kernel with anything AGP/DRM related but have
tried several combinations, including a recommendation in the forum to turn off
kernel support and use xfree-drm. Other than that, I have made minimal changes
to the kernel other than disabling a few things which absolutely, positively
have nothing to do with X or DRM.
I suspect this has something to do with my USE flags. Here is my make.conf:


USE="X mmx 3dnow sse gtk2 gnome apache2 usb zlib apm xv dga opengl sdl truetype
tiff gif jpeg png mozilla mysql ncurses samba -pcmcia -motif -alsa -nas"
CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=athlon-mp -O2 -fomit-frame-pointer -pipe"
CXXFLAGS="${CFLAGS}"
#ACCEPT_KEYWORDS="~x86"


I haven't tried removing "sdl" and "opengl" (etc) but will report back if it
fixes the problem after recompiling X. (Even then it shouldn't happen). I have
no idea why I even added them as this is to be a server. ::hits self::


On the off chance the system hardware has something to do with this, it is a
home server with a single AthlonMP 1800+, Tyan TigerMP S2460 motherboard (latest
BIOS), Adaptec 29160 disk controller, Seagate X15-36LP drive, 1GB reg ECC RAM
(certified for this board), old Matrox G400 16MB, excessive cooling, overkill
power supply, etc.
This is a fresh stage 1 install of RC3 using the flags above.

X works in both Redhat and Knoppix and has worked the last 15 or so times I've
installed Gentoo, including at least 7 on this same system.
Please specify if any more information is needed or any tests required, though I
am re-emerging X as I type this. (BTW, X is on this system because it will be an
X terminal server, among other things, else I wouldn't bother with it)

Reproducible: Always
Steps to Reproduce:
1. Emerge X 4.3 under the same conditions
2. Run it
Comment 1 Charles N. Burns 2003-03-18 08:23:31 UTC
I recompiled X with --emptytree, removing "xv dga opengl sdl" from the USE variables and no longer get the unresolved symbol errors in mga_drv.o (in fact, there are no errors of any kind shown), but X's behavior is still the same.
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2003-03-18 13:33:59 UTC
Try a different kernel ?
Comment 3 Charles N. Burns 2003-03-18 18:32:49 UTC
I should have mentioned, I *did* try a new kernel when I recompiled X. The system now uses a vanilla kernel with very few changes made to the default config (just those required for Gentoo and adding the necessary drivers, as well as modulizing a few things like USB support).
Comment 4 Troy Dack 2003-03-18 22:18:58 UTC
Are you using gpm on the console?

I had problems with X-4.3 and gpm.  I had gpm repeating it's data for X and XF86Config set up properly (ie: mouse device == /dev/gpmdata) but X still refused to start.

Stopping gpm, setting the mouse device in XF86Config to /dev/psaux (for a PS/2 mouse) and then starting X resulted in everything working.
Comment 5 Charles N. Burns 2003-03-19 00:56:18 UTC
The only packages not mentioned in the install instructions that I have installed include:
Gentoolkit
Gentoo-stats
Xfree and its dependencies
Xfree-drm

I recently installed the unmasked Xfree 4.2x and it seems to work without problem
Comment 6 Seemant Kulleen (RETIRED) gentoo-dev 2003-04-11 12:40:54 UTC
Charles, can you try xfree-4.3.0-r2 please, and report?
Comment 7 Seemant Kulleen (RETIRED) gentoo-dev 2003-04-18 20:17:43 UTC
Charles, closing this bug -- please reopen or e-mail me, if this problem persists with 4.3.0-r2
Comment 8 Charles N. Burns 2003-04-18 21:39:03 UTC
Sorry, wasn't able to test 4.3r2 for some time, because my main Gentoo system is a server (no X). I found that 4.3r2 works perfectly on my mother's Gentoo system. Confirming closed.
Comment 9 Donnie Berkholz (RETIRED) gentoo-dev 2003-12-14 02:13:53 UTC
Looks opened accidentally.