bin/111835: fstat(1) fails to report certain files

Kris Kennaway kris at obsecurity.org
Thu Apr 19 07:50:11 UTC 2007


The following reply was made to PR bin/111835; it has been noted by GNATS.

From: Kris Kennaway <kris at obsecurity.org>
To: Mikhail Teterin <mi at aldan.algebra.com>
Cc: FreeBSD-gnats-submit at FreeBSD.org
Subject: Re: bin/111835: fstat(1) fails to report certain files
Date: Thu, 19 Apr 2007 03:45:30 -0400

 On Wed, Apr 18, 2007 at 06:38:31PM -0400, Mikhail Teterin wrote:
 > 
 > >Number:         111835
 > >Category:       bin
 > >Synopsis:       fstat(1) fails to report certain files
 > >Confidential:   no
 > >Severity:       serious
 > >Priority:       medium
 > >Responsible:    freebsd-bugs
 > >State:          open
 > >Quarter:        
 > >Keywords:       
 > >Date-Required:
 > >Class:          sw-bug
 > >Submitter-Id:   current-users
 > >Arrival-Date:   Wed Apr 18 23:10:09 GMT 2007
 > >Closed-Date:
 > >Last-Modified:
 > >Originator:     Mikhail Teterin
 > >Release:        FreeBSD 6.2-PRERELEASE i386
 > >Organization:
 > Virtual Estates, Inc. http://sybpipe.com/
 > >Environment:
 > System: FreeBSD symbion.zaytman.com 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Tue Nov 7 23:40:58 EST 2006 root at symbion.zaytman.com:/usr/obj/ibm/src/sys/SYMBION i386
 > 
 > >Description:
 > 	I noticed, I could not play sound any more:
 > 		Can't open /dev/dsp!
 > 
 > 	So I tried to check, which process may hold the /dev/dsp* or /dev/audio* using fstat:
 > 
 > 		% fstat /dev/dsp* /dev/audio*
 > 		USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W NAME
 > 		%
 > 
 > 	Puzzled, I decided to give lsof a try:
 > 
 > 		% lsof | grep dsp
 > 		artsd       105   anat   11u    VCHR       0,40 0x2372d3000       40 /dev/dsp0.0
 > 		artsd       105   anat   11u    VCHR       0,40 0x2372d3000       40 /dev/dsp0.0
 > 		artsd       105   anat   11u    VCHR       0,40 0x2372d3000       40 /dev/dsp0.0
 > 
 > 	So, for whatever reason, fstat failed -- and needs to be fixed...
 
 Make sure your world is completely in sync with your kernel.
 
 Kris


More information about the freebsd-bugs mailing list