From pst@Shockwave.COM  Sat Aug 17 19:34:40 1996
Received: from precipice.shockwave.com (ppp-206-170-5-8.rdcy01.pacbell.net [206.170.5.8])
          by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id TAA07763
          for <FreeBSD-gnats-submit@freebsd.org>; Sat, 17 Aug 1996 19:34:25 -0700 (PDT)
Received: (from pst@localhost) by precipice.shockwave.com (8.7.5/8.7.3) id TAA25729; Sat, 17 Aug 1996 19:33:48 -0700 (PDT)
Message-Id: <199608180233.TAA25729@precipice.shockwave.com>
Date: Sat, 17 Aug 1996 19:33:48 -0700 (PDT)
From: Paul Traina <pst@Shockwave.COM>
Reply-To: pst@Shockwave.COM
To: FreeBSD-gnats-submit@freebsd.org
Subject: syscons does not protect against entering DDB when X11 screen is active
X-Send-Pr-Version: 3.2

>Number:         1508
>Category:       kern
>Synopsis:       syscons should protect against useless DDB entry
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    sos
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 17 19:40:03 PDT 1996
>Closed-Date:    Sat May 23 02:26:40 PDT 1998
>Last-Modified:  Sat May 23 09:18:29 PDT 1998
>Originator:     Paul Traina
>Release:        FreeBSD 2.2-CURRENT i386
>Organization:
Shockwave Engineering
>Environment:

Current system with DDB in kernel.

>Description:

PCVT sets the boolean "cons_unavail" whenever it has been declared the system
console and the X11 screen is the currently active screen (actually, any time
the current screen mode is VT_PROCESS).

Syscons doesn't do this.  This means that if I enter DDB when X11 is active
(due to a trap or due to the keyboard entry sequence) the system locks down
and is totally useless.  I don't even get an honest panic. :-(

Syscons should set this flag when it is responsible for operating the console
and X11 is active, and clear this flag when operating from a non VT_PROCESS
screen.

>How-To-Repeat:

Compile kernel with DDB.
Start X
Generate a kernel debugger trap.
Kiss freebsd goodbye.

>Fix:
	
Take a peek at PCVT sources.  Look for cons_unavail.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->sos 
Responsible-Changed-By: wosch 
Responsible-Changed-When: Sun Sep 15 10:54:03 PDT 1996 
Responsible-Changed-Why:  
syscons is Sren's babe 
State-Changed-From-To: open->closed 
State-Changed-By: phk 
State-Changed-When: Sat May 23 02:26:40 PDT 1998 
State-Changed-Why:  

As part of our PR auditing campaign, this PR has been closed due to it's 
age and lack of activity on the PR.   

There is a good chance that the problem reported have been solved  
as part of other activities. 

If this is not the case, please reopen this PR with fresh information 
on the manifestation of the bug. 

Sorry about the late reaction to this PR. 
>Unformatted:
