Date: Thu, 19 Apr 2007 07:50:10 GMT From: Kris Kennaway <kris@obsecurity.org> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/111835: fstat(1) fails to report certain files Message-ID: <200704190750.l3J7oAJA071639@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/111835; it has been noted by GNATS. From: Kris Kennaway <kris@obsecurity.org> To: Mikhail Teterin <mi@aldan.algebra.com> Cc: FreeBSD-gnats-submit@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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200704190750.l3J7oAJA071639>