From mi@symbion.zaytman.com  Wed Apr 18 23:07:38 2007
Return-Path: <mi@symbion.zaytman.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id B561916A50C
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 18 Apr 2007 23:07:38 +0000 (UTC)
	(envelope-from mi@symbion.zaytman.com)
Received: from smtp02.lnh.mail.rcn.net (smtp02.lnh.mail.rcn.net [207.172.157.102])
	by mx1.freebsd.org (Postfix) with ESMTP id 5451613C45B
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 18 Apr 2007 23:07:38 +0000 (UTC)
	(envelope-from mi@symbion.zaytman.com)
Received: from mr08.lnh.mail.rcn.net ([207.172.157.28])
  by smtp02.lnh.mail.rcn.net with ESMTP; 18 Apr 2007 18:38:33 -0400
Received: from smtp01.lnh.mail.rcn.net (smtp01.lnh.mail.rcn.net [207.172.4.11])
	by mr08.lnh.mail.rcn.net (MOS 3.8.3-GA)
	with ESMTP id IOD86544;
	Wed, 18 Apr 2007 18:38:32 -0400 (EDT)
Received: from 146-115-47-103.c3-0.sbo-ubr1.sbo.ma.cable.rcn.com (HELO symbion.zaytman.com) ([146.115.47.103])
  by smtp01.lnh.mail.rcn.net with ESMTP; 18 Apr 2007 18:38:29 -0400
Received: from symbion.zaytman.com (localhost.zaytman.com [127.0.0.1])
	by symbion.zaytman.com (8.13.8/8.13.8) with ESMTP id l3IMcVVE031977
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 18 Apr 2007 18:38:31 -0400 (EDT)
	(envelope-from mi@symbion.zaytman.com)
Received: (from mi@localhost)
	by symbion.zaytman.com (8.13.8/8.13.8/Submit) id l3IMcVXH031976;
	Wed, 18 Apr 2007 18:38:31 -0400 (EDT)
	(envelope-from mi)
Message-Id: <200704182238.l3IMcVXH031976@symbion.zaytman.com>
Date: Wed, 18 Apr 2007 18:38:31 -0400 (EDT)
From: Mikhail Teterin <mi@aldan.algebra.com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: fstat(1) fails to report certain files
X-Send-Pr-Version: 3.113

>Number:         111835
>Category:       bin
>Synopsis:       fstat(1) fails to report certain files
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 18 23:10:09 GMT 2007
>Closed-Date:    Sat Aug 28 08:49:29 UTC 2010
>Last-Modified:  Sat Aug 28 08:49:29 UTC 2010
>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...

>How-To-Repeat:
>Fix:

Use lsof...
>Release-Note:
>Audit-Trail:

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

 Make sure your world is completely in sync with your kernel.
 
 Kris

From: Mikhail Teterin <mi+kde@aldan.algebra.com>
To: Kris Kennaway <kris@obsecurity.org>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/111835: fstat(1) fails to report certain files
Date: Thu, 19 Apr 2007 07:23:06 -0400

 On Thursday 19 April 2007 03:45, Kris Kennaway wrote:
 = Make sure your world is completely in sync with your kernel.
 
 It is...
 
 	-mi 
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Mon Aug 4 12:14:11 UTC 2008 
State-Changed-Why:  
I had this in the past, and fixed it by setting the following in 
my /etc/sysctl.conf: 

hw.snd.pcm0.vchans=32 

Of course it doesn't resolve the fstat(1) issue, but as Kris said, 
that could be a different issue. 

Is this issue still happening? 


http://www.freebsd.org/cgi/query-pr.cgi?pr=111835 
State-Changed-From-To: feedback->closed 
State-Changed-By: vwe 
State-Changed-When: Sat Aug 28 08:48:50 UTC 2010 
State-Changed-Why:  
feedback timeout 
please note: 6.2-PRE is out of support for quite a while now 

http://www.freebsd.org/cgi/query-pr.cgi?pr=111835 
>Unformatted:
