From masafumi@tky007.tth.expo96.ad.jp  Sat Sep 28 03:08:44 1996
Received: from mail.tky007.tth.expo96.ad.jp (masafumi@tky007.tth.expo96.ad.jp [133.246.32.58])
          by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id DAA07042
          for <FreeBSD-gnats-submit@freebsd.org>; Sat, 28 Sep 1996 03:08:42 -0700 (PDT)
Received: (from masafumi@localhost) by mail.tky007.tth.expo96.ad.jp (8.7.6/3.4W4-SMTP) id TAA01317; Sat, 28 Sep 1996 19:07:45 +0900 (JST)
Message-Id: <199609281007.TAA01317@mail.tky007.tth.expo96.ad.jp>
Date: Sat, 28 Sep 1996 19:07:45 +0900 (JST)
From: Masafumi NAKANE <masafumi@tky007.tth.expo96.ad.jp>
Reply-To: max@wide.ad.jp
To: FreeBSD-gnats-submit@freebsd.org
Subject: watch makes kernel crash
X-Send-Pr-Version: 3.2

>Number:         1687
>Category:       bin
>Synopsis:       watch makes kernel crash
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 28 03:10:02 PDT 1996
>Closed-Date:    Mon Mar 17 08:55:08 PST 1997
>Last-Modified:  Mon Mar 17 08:55:38 PST 1997
>Originator:     Masafumi NAKANE
>Release:        FreeBSD 2.2-CURRENT i386
>Organization:
>Environment:

	

>Description:

	
If you execute watch without an argument and just hit return to the
question asked, it causes kernel to crash.
>How-To-Repeat:
% su
# watch
Snoop started.
Enter device name []: <--- Hit return here.

	

>Fix:
	
	

>Release-Note:
>Audit-Trail:

From: roberto@keltia.freenix.fr (Ollivier Robert)
To: max@wide.ad.jp
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/1687: watch makes kernel crash
Date: Sat, 28 Sep 1996 18:33:47 +0200

 According to Masafumi NAKANE:
 > # watch
 > Snoop started.
 > Enter device name []: <--- Hit return here.
 
 It is blowing up because watch try to snoop /dev/tty. I guess watch should
 refuse an empty string.
 -- 
 Ollivier ROBERT    -=- The daemon is FREE! -=-    roberto@keltia.freenix.fr
 FreeBSD keltia.freenix.fr 2.2-CURRENT #0: Sat Sep 21 00:18:27 MET DST 1996
State-Changed-From-To: open->analyzed 
State-Changed-By: mpp 
State-Changed-When: Fri Feb 21 16:43:54 PST 1997 
State-Changed-Why:  
roberto analyzed this a little bit in the audit trail. 
State-Changed-From-To: analyzed->closed 
State-Changed-By: mpp 
State-Changed-When: Mon Mar 17 08:55:08 PST 1997 
State-Changed-Why:  
Fixed in rev 1.17 of sys/kern/tty_snoop.c. 
>Unformatted:
