Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Feb 2004 03:40:41 -0800 (PST)
From:      bob frazier <bobf@mrp3.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/63443: intermittent XFree86 'system hang' on startup and shutdown of X server 
Message-ID:  <200402271140.i1RBefex094475@www.freebsd.org>
Resent-Message-ID: <200402271150.i1RBoFqZ070038@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         63443
>Category:       ports
>Synopsis:       intermittent XFree86 'system hang' on startup and shutdown of X server
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 27 03:50:15 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     bob frazier
>Release:        5.2.1-RELEASE
>Organization:
SFT Inc.
>Environment:
FreeBSD beater.SFT 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #0: Wed Feb 25 19:05:29 PST 2004     root@beater.SFT:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
when starting X immediately following a reboot, or when starting X from "50 line mode", 'startx' frequently will cause the system to "lock up" and not respond to anything (mouse, keystrokes, 'ping' from another machine on the network).  Sometimes the screen blanks, sometimes it does not.  Usually when the system hangs it is from 50 line mode, or if another virtual console is in 50 line mode.  Sometimes the X server will hang during shutdown, but I have not reproduced that problem since doing a cvsup and port upgrade from 5.2.1-RC
>How-To-Repeat:
I did this twice in a row

Boot FreeBSD, press alt+F2 to switch to virtual terminal 1, log in root, switch to 50 line mode and run 'top', press alt+F3, log in as root and switch to 50 line mode and run a background processing application (such as 'dnetc'), press alt+F4, log in as something without 'wheel' priveleges, and type 'startx'.  System 'hangs', requiring power down or hard reset.

I've done this 2nd method only once.

Boot as before, log in as a 'non-wheel' user, switch to 50 line mode, and type 'startx'.  Screen switches to 25 line mode, and then system hangs.

In the third case, after running X for a long time, using the 'logout' menu from the sawfish desktop can also cause the system to 'hang' after switching to character mode.
>Fix:
It appears that the 2 major issues are:
a) 50 line mode on the console
b) 50 line mode on ANOTHER virtual console
c) filling up the screen buffer with "something" before starting X.

If I simply log in and do a bunch of 'ls' commmands to fill up the screen buffer, then clear the screen a few times (basically "activity" on the screen), then startx won't crash.  However I have not tried this from 50 line mode, only normal (25 line) mode.


The code I am running was cvsup'd yesterday and I ran 'portupdate' on all installed ports.  Running Gnome/Sawfish + KDE on the X desktop.

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402271140.i1RBefex094475>