From owner-freebsd-bugs Sat Aug 17 19:40:11 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id TAA08035 for bugs-outgoing; Sat, 17 Aug 1996 19:40:11 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id TAA08022; Sat, 17 Aug 1996 19:40:04 -0700 (PDT) Resent-Date: Sat, 17 Aug 1996 19:40:04 -0700 (PDT) Resent-Message-Id: <199608180240.TAA08022@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, pst@Shockwave.COM 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 ; 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 Reply-To: pst@Shockwave.COM To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: kern/1508: syscons does not protect against entering DDB when X11 screen is active Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 1508 >Category: kern >Synopsis: syscons should protect against useless DDB entry >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Aug 17 19:40:03 PDT 1996 >Last-Modified: >Originator: Paul Traina >Organization: Shockwave Engineering >Release: FreeBSD 2.2-CURRENT i386 >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. >Audit-Trail: >Unformatted: