From jfesler@heaven.gigo.com  Sun Mar 16 02:21:44 1997
Received: from heaven.gigo.com (jfesler@ppp.gigo.com [207.173.132.1])
          by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id CAA19018
          for <FreeBSD-gnats-submit@freebsd.org>; Sun, 16 Mar 1997 02:21:42 -0800 (PST)
Received: (from jfesler@localhost)
	by heaven.gigo.com (8.8.5/8.8.5) id CAA00399;
	Sun, 16 Mar 1997 02:21:37 -0800 (PST)
Message-Id: <199703161021.CAA00399@heaven.gigo.com>
Date: Sun, 16 Mar 1997 02:21:37 -0800 (PST)
From: Jason Fesler <jfesler@gigo.com>
Reply-To: jfesler@gigo.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: "watch" causes a reboot when not given a tty name
X-Send-Pr-Version: 3.2

>Number:         3004
>Category:       bin
>Synopsis:       "watch" causes a reboot when not given a tty name
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          duplicate
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 16 02:30:02 PST 1997
>Closed-Date:    Sun Mar 16 09:53:40 PST 1997
>Last-Modified:  Sun Mar 16 10:20:02 PST 1997
>Originator:     Jason Fesler
>Release:        FreeBSD 2.2-970311-GAMMA i386
>Organization:
Humanity Against Late-Night Infomercials
>Environment:

        This has been duplicated on both an old 486 (home system)
        as well as on a 586 at the shop (quake game server).
        I have not tested it on any of the 'important' machines.

>Description:

	"watch" can cause the system to reboot without any trace
        of information in the logs.  I don't have dumps being written
        to disk at the moment (at home, I don't have the space..).
        If this is not repeatable, I can turn on dumps and send 
        one of them..    
 
>How-To-Repeat:

        prompt}  watch
        (screen clears)
        Snoop started.
        Enter device name []:
         
        At this point, merely hit carriage return to reboot.

>Fix:

        Unknown [I don't have full sources at home]

>Release-Note:
>Audit-Trail:

From: Ollivier Robert <roberto@keltia.freenix.fr>
To: jfesler@gigo.com
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/3004: "watch" causes a reboot when not given a tty name
Date: Sun, 16 Mar 1997 14:20:23 +0100

 According to Jason Fesler:
 > >Description:
 > 
 > 	"watch" can cause the system to reboot without any trace
 >         of information in the logs.  I don't have dumps being written
 >         to disk at the moment (at home, I don't have the space..).
 >         If this is not repeatable, I can turn on dumps and send 
 >         one of them..    
 
 It has been fixed in the current sources. 2.2 also have the fix (Jrg put
 it in the 2.2 branch). The problem was that watch tried to enable snoop
 mode on /dev/tty.
 
 -- 
 Ollivier ROBERT -=- FreeBSD: There are no limits -=- roberto@keltia.freenix.fr
    FreeBSD keltia.freenix.fr 3.0-CURRENT #39: Sun Feb  2 22:12:44 CET 1997
State-Changed-From-To: open->closed 
State-Changed-By: mpp 
State-Changed-When: Sun Mar 16 09:53:40 PST 1997 
State-Changed-Why:  
Duplicate of PR#1687. 

From: Mike Pritchard <mpp>
To: roberto@keltia.freenix.fr
Cc: freebsd-gnats-submit
Subject: Re: bin/3004: "watch" causes a reboot when not given a tty name
Date: Sun, 16 Mar 1997 10:17:09 -0800 (PST)

 Ollivier Robert wrote:
 > 
 > The following reply was made to PR bin/3004; it has been noted by GNATS.
 > 
 > From: Ollivier Robert <roberto@keltia.freenix.fr>
 > To: jfesler@gigo.com
 > Cc: FreeBSD-gnats-submit@freebsd.org
 > Subject: Re: bin/3004: "watch" causes a reboot when not given a tty name
 > Date: Sun, 16 Mar 1997 14:20:23 +0100
 > 
 >  According to Jason Fesler:
 >  > >Description:
 >  > 
 >  > 	"watch" can cause the system to reboot without any trace
 >  >         of information in the logs.  I don't have dumps being written
 >  >         to disk at the moment (at home, I don't have the space..).
 >  >         If this is not repeatable, I can turn on dumps and send 
 >  >         one of them..    
 >  
 >  It has been fixed in the current sources. 2.2 also have the fix (Jrg put
 >  it in the 2.2 branch). The problem was that watch tried to enable snoop
 >  mode on /dev/tty.
 
 That was a userland fix, wasn't it?  It still doesn't address the
 fact that there is something funny in the kernel that causes a crash
 when it is handed something bogus.
 -- 
 Mike Pritchard
 mpp@FreeBSD.org
 "Go that way.  Really fast.  If something gets in your way, turn"
>Unformatted:
