From owner-freebsd-stable@FreeBSD.ORG Tue Apr 17 18:23:52 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 110B71065670 for ; Tue, 17 Apr 2012 18:23:52 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta03.westchester.pa.mail.comcast.net (qmta03.westchester.pa.mail.comcast.net [76.96.62.32]) by mx1.freebsd.org (Postfix) with ESMTP id BB5ED8FC0A for ; Tue, 17 Apr 2012 18:23:51 +0000 (UTC) Received: from omta13.westchester.pa.mail.comcast.net ([76.96.62.52]) by qmta03.westchester.pa.mail.comcast.net with comcast id z6141i00417dt5G536Nl0c; Tue, 17 Apr 2012 18:22:45 +0000 Received: from koitsu.dyndns.org ([67.180.84.87]) by omta13.westchester.pa.mail.comcast.net with comcast id z6Nk1i0171t3BNj3Z6NleL; Tue, 17 Apr 2012 18:22:45 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id F1F99102C1E; Tue, 17 Apr 2012 11:22:42 -0700 (PDT) Date: Tue, 17 Apr 2012 11:22:42 -0700 From: Jeremy Chadwick To: freebsd-stable@freebsd.org Message-ID: <20120417182242.GA58449@icarus.home.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Subject: top not restoring terminal echo/icanon correctly X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Apr 2012 18:23:52 -0000 (Please keep me CC'd as I'm not subscribed to the list) I'd like to request that folks running RELENG_8 (and RELENG_9, though I do not use it) please check the behaviour of their terminal after each of following commands are run (check terminal after each command): top -a (press "q" after 1 screen refresh) top -b If you find that your input characters in your shell aren't being echo'd back after one of the above commands, blindly type "stty icanon echo" and hit and things should be back to normal. What I'm looking for is confirmation from others of the problem. Also very important: please provide uname -a output, specifically world rebuild date. It greatly matters, because a commit was recently done where now -b functions fine (was previously busted in this way), but now -a behaves like -b did. So src/world date matters. All of this is documented in PR 161739. I urge anyone experiencing this problem to read that PR in full, as I spent many hours today writing a debug routine to confirm that top is sometimes not calling tcsetattr() with the original terminal parameters when it exits, and what the condition seems to be. http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/161739 Finally, if anyone want to tackle the problem (work out the logic bug that is in there which causes it), please be my guest. I have other things going on right now (doctors appointments) so I don't have as much time as I'd like. Thanks everyone. -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, US | | Making life hard for others since 1977. PGP 4BD6C0CB |