bin/111835: fstat(1) fails to report certain files
Mikhail Teterin
mi at aldan.algebra.com
Wed Apr 18 23:10:10 UTC 2007
>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...
>How-To-Repeat:
>Fix:
Use lsof...
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list