From nobody  Mon Dec  7 17:42:39 1998
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.8/8.8.8) id RAA19170;
          Mon, 7 Dec 1998 17:42:39 -0800 (PST)
          (envelope-from nobody)
Message-Id: <199812080142.RAA19170@hub.freebsd.org>
Date: Mon, 7 Dec 1998 17:42:39 -0800 (PST)
From: mevans@ecsnet.com
To: freebsd-gnats-submit@freebsd.org
Subject: Tk/TCL Programs freeze keyboard when they exit.
X-Send-Pr-Version: www-1.0

>Number:         9003
>Category:       kern
>Synopsis:       Tk/TCL Programs freeze keyboard when they exit.
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    ache
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec  7 17:50:00 PST 1998
>Closed-Date:    Sun Mar 14 03:13:33 PST 1999
>Last-Modified:  Sun Mar 14 03:14:44 PST 1999
>Originator:     Mark R. Evans
>Release:        3.0-CURRENT
>Organization:
The ECS Network
>Environment:
FreeBSD alpha.ecsnet.com 3.0-CURRENT FreeBSD 3.0-CURRENT #13: Mon Dec  7 19:24:29 CST 1998     mevans@alpha.ecsnet.com:/usr/src/sys/compile/ALPHA  i386
>Description:
Any X based Tk/Tcl program will cause the keyboard to freeze 
under X Windows when the Tk/Tcl program exits.  I have tracked the
problem to a change made to /usr/src/sys/kern/tty.c on Nov 22 by bde
where he made the following change:

o Handle c_ispeed = 0 to c_ispeed = c_ospeed conversion here instead
of in drivers and fix drivers that write to tp->t_termios.

The system does NOT freeze, a Ctrl-Backspace will exit X and the system 
now responds as normal.  Duplicated under X 3.3.2 and 3.3.3.
>How-To-Repeat:
Run any Tk/TCL based program (either the 4.x or 8.x versions).  Exit the
program and the keyboard will lock under X.  May be hardware dependent.
I have duplicated on two different systems:  Pentium 233 w/64meg RAM, 
IDE HD, SVGA X Driver.  Pentium II 300 w/128meg RAM, IDE HD, SCSI HD,
SVGA X Driver.  Both systems have Matrox display adapters.
>Fix:
Backed out the change to tty.c and everything works fine.  Could be that
updates to drivers (which ones?) may be required before tty.c change 
can become effective?
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: bde 
State-Changed-When: Tue Dec 8 02:21:55 PST 1998 
State-Changed-Why:  
Should be fixed in tty.c rev.1.109. 
State-Changed-From-To: feedback->closed 
State-Changed-By: sheldonh 
State-Changed-When: Sun Mar 14 03:13:33 PST 1999 
State-Changed-Why:  
Originator confirmed fix, thanks. 


Responsible-Changed-From-To: freebsd-bugs->ache 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Sun Mar 14 03:13:33 PST 1999 
Responsible-Changed-Why:  
He committed the fix. 
>Unformatted:
