From nobody@FreeBSD.org  Thu Jun 13 08:48:04 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	by hub.freebsd.org (Postfix) with ESMTP id 845E1CE
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 13 Jun 2013 08:48:04 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	by mx1.freebsd.org (Postfix) with ESMTP id 77689104E
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 13 Jun 2013 08:48:04 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r5D8m4AF023975
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 13 Jun 2013 08:48:04 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r5D8m4bu023974;
	Thu, 13 Jun 2013 08:48:04 GMT
	(envelope-from nobody)
Message-Id: <201306130848.r5D8m4bu023974@oldred.freebsd.org>
Date: Thu, 13 Jun 2013 08:48:04 GMT
From: Gerasimos Dimitriadis <gedimitr@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: tty gets unresponsive when in scrolling mode and shell killed
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         179530
>Category:       kern
>Synopsis:       [syscons] tty gets unresponsive when in scrolling mode and shell killed
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 13 08:50:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Fri Jun 14 15:20:00 UTC 2013
>Originator:     Gerasimos Dimitriadis
>Release:        9.1
>Organization:
Intracom Telecom
>Environment:
FreeBSD x200-freebsd 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec  4 09:23:10 UTC 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
Under certain circumstances, a virtual terminal gets unresponsive when the shell that is using it gets killed. Specifically, when scroll lock has been pressed and some keystrokes are buffered, then when the shell is killed, the virtual terminal remains unresponsive
>How-To-Repeat:
1. Log into a virtual console
2. Press scroll lock
3. Press some non-special keys, e.g. asdfas
   (Nothing is printed in scrolling mode, but the keystrokes are buffered)
4. Kill the shell that is using this tty
5. Press scroll lock to exit scrolling mode
6. tty remains hanging

>Fix:


>Release-Note:
>Audit-Trail:

From: Jilles Tjoelker <jilles@stack.nl>
To: bug-followup@FreeBSD.org, gedimitr@gmail.com
Cc:  
Subject: Re: kern/179530: [syscons] tty gets unresponsive when in scrolling
 mode and shell killed
Date: Fri, 14 Jun 2013 17:16:23 +0200

 In FreeBSD PR 179530, you wrote:
 > How-To-Repeat:
 > 1. Log into a virtual console
 > 2. Press scroll lock
 > 3. Press some non-special keys, e.g. asdfas
 > (Nothing is printed in scrolling mode, but the keystrokes are buffered)
 > 4. Kill the shell that is using this tty
 > 5. Press scroll lock to exit scrolling mode
 > 6. tty remains hanging
 
 I can reproduce this. The login [pam] process gets stuck in state IEs
 wchan ttyout (while closing the tty).
 
 -- 
 Jilles Tjoelker
>Unformatted:
