From kelly@rosemary.fsl.noaa.gov  Sat Mar  9 06:45:06 1996
Received: from rosemary.fsl.noaa.gov (rosemary.fsl.noaa.gov [137.75.8.41])
          by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id GAA28874
          for <FreeBSD-gnats-submit@freebsd.org>; Sat, 9 Mar 1996 06:45:03 -0800 (PST)
Received: (from kelly@localhost) by rosemary.fsl.noaa.gov (8.6.12/8.6.9) id HAA03571; Sat, 9 Mar 1996 07:44:57 -0700
Message-Id: <199603091444.HAA03571@rosemary.fsl.noaa.gov>
Date: Sat, 9 Mar 1996 07:44:57 -0700
From: Sean Kelly <kelly@fsl.noaa.gov>
Reply-To: kelly@fsl.noaa.gov
To: FreeBSD-gnats-submit@freebsd.org
Subject: /usr/bin/fstat doesn't display open, active pure text
X-Send-Pr-Version: 3.2

>Number:         1070
>Category:       bin
>Synopsis:       /usr/bin/fstat doesn't display open, active pure text
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar  9 06:50:01 PST 1996
>Closed-Date:    Sat Aug 24 06:46:37 PDT 1996
>Last-Modified:  Sat Aug 24 06:47:09 PDT 1996
>Originator:     Sean Kelly <kelly@fsl.noaa.gov>
>Release:        FreeBSD 2.1-STABLE i386
>Organization:
Forecast Systems Laboratory
>Environment:

	FreeBSD 2.1 installed via anon FTP in January '96.  Fairly
	stock machine, as hosts go.  More info avail on request.

>Description:

	The fstat man page claims it'll display active pure text
	inodes for running processes.  Under the FD column, it shows
	the file number in the per-process open file table or one of
	the following special names: wd, for current working
	directory; tr, for kernel trace file; root, for root inode;
	and text for pure text inode.

        After 1000 runs of fstat looking at a busy system, the `text'
	entry never appeared.  Not necessarily proof, but an inductive
	argument is within reach.

>How-To-Repeat:

	Run fstat | grep text and see no output until you're blue in
	the face.

>Fix:
	
	Don't really know.  fstat.c has some special handling for the
	CDIR, TRACE, and RDIR entries but none for the text.  That
	might be it, but it also just might expect the text entry (-1)
	to appear in filedesc table.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: peter 
State-Changed-When: Sat Aug 24 06:46:37 PDT 1996 
State-Changed-Why:  
Fixed in rev 1.6 of fstat.c in -current. 
>Unformatted:
