From nobody@FreeBSD.org  Wed Jan  6 22:13:50 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 367AF106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  6 Jan 2010 22:13:50 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 25B9D8FC14
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  6 Jan 2010 22:13:50 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o06MDnSo029043
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 6 Jan 2010 22:13:49 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o06MDnPf029042;
	Wed, 6 Jan 2010 22:13:49 GMT
	(envelope-from nobody)
Message-Id: <201001062213.o06MDnPf029042@www.freebsd.org>
Date: Wed, 6 Jan 2010 22:13:49 GMT
From: Erich Enke <erich.enke@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: 30th console switch hangs computer completely, no panic
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         142390
>Category:       kern
>Synopsis:       [keyboard] 30th console switch hangs computer completely, no panic
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 06 22:20:01 UTC 2010
>Closed-Date:    
>Last-Modified:  Thu Jan 07 00:06:19 UTC 2010
>Originator:     Erich Enke
>Release:        7.2_RELEASE
>Organization:
>Environment:
FreeBSD hotsoup 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fir May  1 08:49:13 UTC 2009
        root@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
I just installed FREEBSD 7.2 RELEASE on this thing yesterday.  I've
compiled and installed xorg, plus a few other programs, but other than
that, it's vanilla.

At first it seemed that it was hanging when shutting down Xorg, or
switching from Xorg, until I ran the simple test below, several times.
EVERY SINGLE TIME I boot, I can switch consoles 29 times, but the 30th
time hangs my machine utterly.  It doesn't respond to ping or ssh.
Unplugging and replugging in my keyboard has no effect.  There is no
kernel panic.  There's nothing in /var/log/messages about the hang.

I can't use 8.0 RELEASE yet, because of the rum0 issues.  rum0 works
fine for me on 7.2, but has link timeouts in 8.0, so upgrading is not
an option for me.
>How-To-Repeat:
1) Freshly boot computer, no x environment
2) Switch to a different console.  Repeat.  It doesn't matter the order.
   Pick any of the virtual consoles to switch to.   Pressing the key for
   the console you're on doesn't count.  It has to switch the console.
3) On the 29th switch, it still works.  You can input with the keyboard
   and such.
4) The 30th time you try to switch consoles, the block cursor disappears,
   but the screen doesn't actually switch.
>Fix:
I'm not sure where to begin in debugging this problem.  It is 100%
reproducible, though, and I'd be surprised if a significant number of
other people out there don't have this issue.  I'm pretty experienced
in various linuxes and NetBSD, but I'm fairly new to FreeBSD.  Programmer
by profession, though, and I'm willing to help.
>Release-Note:
>Audit-Trail:
>Unformatted:
