From owner-freebsd-bugs@FreeBSD.ORG Mon Mar 20 19:50:19 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C963516A41F for ; Mon, 20 Mar 2006 19:50:19 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27BE543D55 for ; Mon, 20 Mar 2006 19:50:19 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k2KJoJJN021722 for ; Mon, 20 Mar 2006 19:50:19 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k2KJoIgT021721; Mon, 20 Mar 2006 19:50:18 GMT (envelope-from gnats) Resent-Date: Mon, 20 Mar 2006 19:50:18 GMT Resent-Message-Id: <200603201950.k2KJoIgT021721@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "J. Hunt" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 750B316A400 for ; Mon, 20 Mar 2006 19:44:50 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4AF1743D48 for ; Mon, 20 Mar 2006 19:44:50 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k2KJiokR035917 for ; Mon, 20 Mar 2006 19:44:50 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k2KJioJw035916; Mon, 20 Mar 2006 19:44:50 GMT (envelope-from nobody) Message-Id: <200603201944.k2KJioJw035916@www.freebsd.org> Date: Mon, 20 Mar 2006 19:44:50 GMT From: "J. Hunt" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: misc/94750: watch utility faults when tty disconnects X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Mar 2006 19:50:19 -0000 >Number: 94750 >Category: misc >Synopsis: watch utility faults when tty disconnects >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Mar 20 19:50:18 GMT 2006 >Closed-Date: >Last-Modified: >Originator: J. Hunt >Release: FreeBSD 6.0-RELEASE >Organization: >Environment: FreeBSD .diconconnections.com 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov 3 09:36:13 UTC 2005 root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC i386 >Description: When using the "watch" utility with options "-co" all works fine until the tty session disconnects. "watch" then proceeds to use 100% of the processor. If the tty reconnects, "watch" crashes and terminates. This is not true in FreeBSD 5.4. >How-To-Repeat: Use a fresh install of 6.0-RELEASE. SSH to localhost and connect to a tty, for example, /dev/ttyp0. From the console (or any other terminal) type "watch -co /dev/ttyp0". After confirming that watch works, disconnect the ssh session and verify with another tty (perhaps /dev/ttyv1 or any other terminal that is observing and is not ttyp0) that watch begins to use 100% of the CPU (top shows this). Upon reconnect to the watched tty (in this example /dev/ttyp0), watch will crash. >Fix: >Release-Note: >Audit-Trail: >Unformatted: