Bug 2481 - Xfree86 (S3V server) crashes randomly on server reset (gdm)
Summary: Xfree86 (S3V server) crashes randomly on server reset (gdm)
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: XFree86
Version: 6.0
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Preston Brown
QA Contact:
: 4132 (view as bug list)
Depends On:
TreeView+ depends on / blocked
Reported: 1999-05-02 11:42 UTC by thurley
Modified: 2008-05-01 15:37 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 1999-09-23 15:40:40 UTC

Attachments (Terms of Use)

Description thurley 1999-05-02 11:42:01 UTC
Under Redhat 5.2, XFree86-, the X server will
sometimes (maybe one time in ten) crash upon a server
reset.  Hardware is an S3 Virge DX with 2MB ram, running in
1024x768 16bpp.  Kernel 2.2.7, SMP system.  The X server is
otherwise extremely stable through starting, stopping, and
heavy vc switching.

This manifests when gdm resets the display after a logout.
Normally, after logout, the running X server is killed
(screen goes blank), a new X server is started (screen shows
default X background with an X cursor), the new X server is
reset (screen goes blank, screen comes back) and then the
Init/Default and the greeter are run.

When the bug decides to happen, the system does not recover
when the new X server is reset.  The graphics mode is there,
as my monitor reports a proper sync, but the screen remains
blank.  Occasionally, the screen will show blue vertical
lines from top to bottom; this is rare though.  The keyboard
is totally dead.  I have not had the oppurtunity to test a
network connection.  After waiting for a reasonable amount
of time then hitting the reset switch, the fsck at boot has
on two occasions shown some fs damage (stuff ends up in
/lost+found) of recently-modified files; this may imply that
the crash is pretty hard.

Diving into the source, around line 200 in gdmserver.c, it
does this reset by sending a HUP signal to the X server.
The comment suggests that XCloseDisplay could be used, so I
tried changing
kill(d->servpid, SIGHUP);

but the crash still happens (though it seems, _perhaps_, to
happen less often; only once so far).  Removing this line
entirely, as you would expect, prevents crashes but messes
gdm up pretty badly.

Thanks, let me know if you need more information.

Comment 1 thurley 1999-05-18 06:54:59 UTC
Just upgraded to RH6, and the problem persists.  It is almost certain
that the source change of using XCloseDisplay instead of a HUP signal
reduces the number of crashes.  With the source change under RH6, it
has not yet occured but I believe it eventually will.

Comment 2 Jay Turner 1999-06-30 16:57:59 UTC
This issue has been forwarded to a developer for further action.

Comment 3 Preston Brown 1999-08-31 17:57:59 UTC
*** Bug 4132 has been marked as a duplicate of this bug. ***

This lock up happens 100% of the time when I select a screen
saver called 'Halo' under Gnome's desktop settings.
This lock up also happens occasionally when I reposition my
terminal window.
However, when the colour is reduced from 16b to 8b (YUCKS!)
everything works fine.
If I want 16b colour, I have to make do with 87Hz Interlaced
mode for my monitor (YUCKS!).
I have a monitor capable of doing 1600x1200@70Hz NI.
Any suggestions/help??


------- Additional Comments From   09/03/99 09:07 -------
I have had this exact problem with a Virge VX 4MB card using rpm
XFree86-S3V- and earlier. I switched from using gdm to kdm
and thought the problem had gone away, but my machine just locked up
as I was logging out and kdm was grabbing control of the console
again. This time the screen was covered with all sorts of random color
stripes. I seem to have better results if I kill my X server
(ctrl-alt-bksp) rather than logging out of KDE gracefully.

Comment 4 Preston Brown 1999-09-23 15:40:59 UTC
Several fixes for Virge cards were made in XFree86 3.3.4/3.3.5.
Please re-open this bug if you continue to have crashes with the new
XFree86 packages which are available as errata.

Comment 5 maavl 1999-11-25 11:52:59 UTC
This seems to be a very persistent bug in the S3V server. I can report to have
seen it happen frequently on two entirely different linux boxes whose only point
in common is the S3Virge graphics card. Typical phenomenon is a screen with
vertical stripes, ususally blue and reddish, after logging out from X. Seems to
completely lock up the machine, as for instance terminals logged in on a serial
port are dead as well; I guess the kernel really hangs. One can still use the
reset button (but not a keyboard chord reset), and that's about all that still
works. Oh yes, if you are playing an audio CD to the sound card, that still goes
on (but that also is the case on a shutdown without poweroff, so I assume it
bypasses the CPU altogether). By the way, I always just use xdm. I hoped it
would go away in an update of the X server, but alas, I've had it happen with
XFree86-S3V-3.3.5-3.i386.rpm as well. Because of this problem I don't actually
log out from X very often; I prefer to start multiple X screens, and at the end
kill them all by doing a reboot. The latter procedure has never crashed the
machine; this might help locating where the crash really happens.

Note You need to log in before you can comment on or make changes to this bug.