Subject: port-i386/3131: i386: ctl-alt-esc calls kdb even with serial console
To: None <gnats-bugs@gnats.netbsd.org>
From: Matthias Drochner <drochner@zelz26.zel.kfa-juelich.de>
List: netbsd-bugs
Date: 01/21/1997 19:22:38
>Number:         3131
>Category:       port-i386
>Synopsis:       i386: ctl-alt-esc calls kdb even with serial console
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 21 10:35:01 1997
>Last-Modified:
>Originator:     Matthias Drochner
>Organization:
	KFA Juelich
>Release:        1.2
>Environment:
	NetBSD/i386 1.2, -current
System: NetBSD zelz26 1.2 NetBSD 1.2 (TULIP) #21: Thu Nov 14 22:05:19 MET 1996 drochner@zelz28:/home/drochner/netbsd/sys/arch/i386/compile/TULIP i386


>Description:
	Pressing ctl-alt-esc calls the kernel debugger. If a serial console
is connected, the debugger is handled from there and the system can only be
restarted from the serial terminal.
That's why the 3-button trick should be disabled if the system console is
not the PC keyboard.
This is experienced with the pcvt driver. The pccons driver seems to suffer
from the same problem.
>How-To-Repeat:
	use a serial console, press ctl-alt-esc
>Fix:
	for pcvt:
*** /tmp/pcvt_kbd.c	Tue Jan 21 19:09:11 1997
--- /tmp/ediffa27983	Tue Jan 21 19:09:11 1997
***************
*** 1388,1394 ****
   	{
   		static u_char in_Debugger;
  
!  		if(!in_Debugger)
   		{
   			in_Debugger = 1;
  #if PCVT_FREEBSD
--- 1388,1394 ----
   	{
   		static u_char in_Debugger;
  
!  		if(!in_Debugger && pcvt_is_console)
   		{
   			in_Debugger = 1;
  #if PCVT_FREEBSD

>Audit-Trail:
>Unformatted: