Subject: kern/37402: [4.0] fstat file descriptor info broken
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Andreas Wrede <andreas@planix.com>
List: netbsd-bugs
Date: 11/18/2007 17:00:01
>Number:         37402
>Category:       kern
>Synopsis:       fstat return bogus file descriptor info
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 18 17:00:00 +0000 2007
>Originator:     Andreas Wrede
>Release:        NetBSD 4.0_RC4
>Organization:
Andreas Wrede              Planix, Inc.
andreas@planix.com         Networking, System Administration, Consulting
http://www.planix.com      Toronto, Ontario, Canada

"The steady state of disks is full."
                               -- Ken Thompson
>Environment:
	
	
System: NetBSD whome.planix.com 4.0_RC4 NetBSD 4.0_RC4 (PLANIX.MPACPI) #329: Fri Nov 16 07:09:00 EST 2007 root@whome.planix.com:/u2/netbsd-4.0/obj.i386/sys/arch/i386/compile/PLANIX.MPACPI i386

Architecture: i386
Machine: i386

>Description:
fstat prints garbage for file descriptors. The break occurs somewhere between Map 27, 2007 (BETA2)  and Oct 15, 2007 (RC2).  

>How-To-Repeat:
$ ps -axp $$
 PID TTY   STAT    TIME COMMAND
1431 ttyp0 Ss   0:00.02 -ksh 
$ fstat -p $$
USER     CMD          PID   FD MOUNT       INUM MODE         SZ|DV R/W
andreas  ksh         1431   wd -         -   ?(c20a4cd    -
andreas  ksh         1431    6 -         -        none    -
andreas  ksh         1431    7 -         -        none    -
andreas  ksh         1431    8 -         -        none    -	

>Fix:
unknown

>Unformatted: