From nobody@FreeBSD.org  Sat Jun 19 20:16:13 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0B2BF16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 19 Jun 2004 20:16:13 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 04D2443D2F
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 19 Jun 2004 20:16:13 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i5JKDwnx043076
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 19 Jun 2004 20:13:58 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i5JKDw1h043075;
	Sat, 19 Jun 2004 20:13:58 GMT
	(envelope-from nobody)
Message-Id: <200406192013.i5JKDw1h043075@www.freebsd.org>
Date: Sat, 19 Jun 2004 20:13:58 GMT
From: Marcin Gondek <drixter@e-utp.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Device busy (/dev/dsp)- insane, nothing using it
X-Send-Pr-Version: www-2.3

>Number:         68122
>Category:       kern
>Synopsis:       [sound] Device busy (/dev/dsp)- insane, nothing using it
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-multimedia
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 19 20:20:23 GMT 2004
>Closed-Date:    Wed Dec 28 19:36:04 GMT 2005
>Last-Modified:  Wed Dec 28 19:36:04 GMT 2005
>Originator:     Marcin Gondek
>Release:        4.9-RELEASE-p10
>Organization:
e-utp.net
>Environment:
FreeBSD fido.e-utp.net 4.9-RELEASE-p10 FreeBSD 4.9-RELEASE-p10 #13: Fri Jun 18 22:54:21 CEST 2004     root@fido.e-utp.net:/usr/src/sys/compile/FIDO  i386

>Description:
Hi

There is something wrong with sound.

Sound was working working, artsd hangs and:
root@fido:~]$ fstat /dev/dsp
USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W NAME
[root@fido:~]$
[root@fido:~]$ lsof -V /dev/dsp
lsof: no file use located: /dev/dsp
[root@fido:~]$ killall -9 artsd
No matching processes were found
[root@fido:~]$ artsd
unix_connect: can't connect to server (unix:/tmp/mcop-root/fido_e-utp_net-6dfc-40d49d8c)
Error while initializing the sound driver:
device /dev/dsp can't be opened (Device busy)
[root@fido:~]$
[root@fido:~]$ kldunload snd_emu10k1
kldunload: can't unload file: Device busy


>How-To-Repeat:
After crash of artsd
>Fix:
Nope
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-i386->freebsd-bugs 
Responsible-Changed-By: simon 
Responsible-Changed-When: Sat Jun 19 21:59:26 GMT 2004 
Responsible-Changed-Why:  
Reassign misfiled PR (does not sound i386 specific). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=68122 

From: "Simon L. Nielsen" <simon@FreeBSD.org>
To: Marcin Gondek <drixter@e-utp.net>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: misc/68122: Device busy (/dev/dsp)- insane, nothing using it
Date: Sun, 20 Jun 2004 00:10:54 +0200

 --z6Eq5LdranGa6ru8
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On 2004.06.19 20:13:58 +0000, Marcin Gondek wrote:
 >
 > >Category:       i386
 
 BTW, this does not seem like a problem a specific i386 so it's better
 to use a more generic category another time.
 
 > root@fido:~]$ fstat /dev/dsp
 > USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W NAME
 
 I don't think you can do it like that... E.g. :
 
 [simon@zaphod:~] fstat /dev/dsp
 USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W NAME
 [simon@zaphod:~] fstat /dev/dsp*
 USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W NAME
 simon    mplayer     1188    6 /dev         38 crw-rw-rw-  dsp0.0  w  /dev/=
 dsp0.0
 [simon@zaphod:~] mplayer /usr/local/OpenOffice.org1.1.0/share/gallery/sound=
 s/untie.wav
 MPlayer 0.92.1-3.3.3  (C) 2000-2003 MPlayer Team
 =2E..
 audio_setup: Can't open audio device /dev/dsp: Device busy
 /dev/dsp: Device busy
 [simon@zaphod:~]
 
 So, could you try to run fstat /dev/dsp* instead ? I would think
 something is holding /dev/dsp0.0 open.
 
 --=20
 Simon L. Nielsen
 FreeBSD Documentation Team
 
 --z6Eq5LdranGa6ru8
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.4 (FreeBSD)
 
 iD8DBQFA1Lnth9pcDSc1mlERApNeAJ4h7hwMZtu7FQkOQokGCOrhjkrdxACfaqsr
 DDD9uY8Ef6zxKQPlxtZMy8w=
 =Z7W2
 -----END PGP SIGNATURE-----
 
 --z6Eq5LdranGa6ru8--

From: Marcin Gondek <drixter@e-utp.net>
To: "Simon L. Nielsen" <simon@FreeBSD.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: misc/68122: Device busy (/dev/dsp)- insane, nothing using it
Date: Sun, 20 Jun 2004 08:53:51 +0200

 On Sun, 2004-06-20 at 00:10, Simon L. Nielsen wrote:
 
 
 > > >Category:       i386
 > BTW, this does not seem like a problem a specific i386 so it's better
 > to use a more generic category another time.
 
 OK.
 
 > > root@fido:~]$ fstat /dev/dsp
 > > USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W NAME
 > I don't think you can do it like that... E.g. 
 > [simon@zaphod:~] fstat /dev/dsp
 > USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W NAME
 > [simon@zaphod:~] fstat /dev/dsp*
 > USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W NAME
 > simon    mplayer     1188    6 /dev         38 crw-rw-rw-  dsp0.0  w  /dev/dsp0.0
 > [simon@zaphod:~] mplayer /usr/local/OpenOffice.org1.1.0/share/gallery/sounds/untie.wav
 > MPlayer 0.92.1-3.3.3  (C) 2000-2003 MPlayer Team
 > ...
 > audio_setup: Can't open audio device /dev/dsp: Device busy
 > /dev/dsp: Device busy
 > [simon@zaphod:~]
 > So, could you try to run fstat /dev/dsp* instead ? I would think
 > something is holding /dev/dsp0.0 open.
 
 
 [root@fido:~]$  fstat /dev/dsp*
 USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W
 NAME
 [root@fido:~]$  fstat /dev/dsp0.0
 USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W
 NAME
 [root@fido:~]$
 
 
 Also:
 [root@fido:~]$ kldunload snd_emu10k1
 kldunload: can't unload file: Device busy
 [root@fido:~]$ tail -n1 /var/log/messages
 Jun 20 08:49:02 fido /kernel: pcm0: unregister: channel pcm0:play:1 busy
 (pid 22573)
 [root@fido:~]$ kill -9 22573
 -su: kill: (22573) - No such process
 [root@fido:~]$ ps aux | grep 22573
 [root@fido:~]$
 
 
 -- 
 ---------------------------------------------------------------
 Marcin Gondek / Drixter * ICQ 99230394 * GG 5576693 * MG8-6BONE
 perl -le's&&\$2)84%2<%X540|.%4&*y^BSD|\!->~X^w: .a-{@-^/print;'
 Neutrin - Vortal systemw nowej generacji http://www.neutrin.pl
 
 
Responsible-Changed-From-To: freebsd-bugs->sound 
Responsible-Changed-By: simon 
Responsible-Changed-When: Sun Jun 20 13:51:55 GMT 2004 
Responsible-Changed-Why:  
This sounds like a real sound related problem, so reassign the PR to 
the sound people. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=68122 

From: "Simon L. Nielsen" <simon@FreeBSD.org>
To: Marcin Gondek <drixter@e-utp.net>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: misc/68122: Device busy (/dev/dsp)- insane, nothing using it
Date: Sun, 20 Jun 2004 15:51:42 +0200

 --4ZLFUWh1odzi/v6L
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On 2004.06.20 08:53:51 +0200, Marcin Gondek wrote:
 > On Sun, 2004-06-20 at 00:10, Simon L. Nielsen wrote:
 
 > > So, could you try to run fstat /dev/dsp* instead ? I would think
 > > something is holding /dev/dsp0.0 open.
 >
 > [root@fido:~]$  fstat /dev/dsp*
 > USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W
 > NAME
 
 Hmm :-( Then I unfortunatly don't know, but I will throw the PR over
 to the sound sound people; hopefully they will know more.
 
 BTW., if possible, you should try 4.10, but I don't know if anything
 has changed in the sound code from 4.9 to 4.10.
 
 --=20
 Simon L. Nielsen
 FreeBSD Documentation Team
 
 --4ZLFUWh1odzi/v6L
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.4 (FreeBSD)
 
 iD8DBQFA1ZZth9pcDSc1mlERAiBjAJ4tQNgEB5dEn4Zrolji/Kj7AMk09gCgqLnP
 h0KGoxShAvqZpcUKvn/fXGc=
 =Rsjp
 -----END PGP SIGNATURE-----
 
 --4ZLFUWh1odzi/v6L--

From: Marcin Gondek <drixter@e-utp.net>
To: "Simon L. Nielsen" <simon@FreeBSD.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: misc/68122: Device busy (/dev/dsp)- insane, nothing using it
Date: Sun, 20 Jun 2004 16:24:37 +0200

 On Sun, 2004-06-20 at 15:51, Simon L. Nielsen wrote:
 
 
 > > [root@fido:~]$  fstat /dev/dsp*
 > > USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W
 > > NAME
 > Hmm :-( Then I unfortunatly don't know, but I will throw the PR over
 > to the sound sound people; hopefully they will know more.
 
 One way to still use music is use dsp0.2 0.3 0.4 without reset.
 but what when they also will blocked?
 
 > BTW., if possible, you should try 4.10, but I don't know if anything
 > has changed in the sound code from 4.9 to 4.10.
 
 4.10 hangs me afer 1 or 2 days, so I downgrade do 4.9
 On the 4.10 I have got the same.
 
 -- 
 ---------------------------------------------------------------
 Marcin Gondek / Drixter * ICQ 99230394 * GG 5576693 * MG8-6BONE
 perl -le's&&\$2)84%2<%X540|.%4&*y^BSD|\!->~X^w: .a-{@-^/print;'
 Neutrin - Vortal systemw nowej generacji http://www.neutrin.pl
 
 

From: Mathew Kanner <mat@cnd.mcgill.ca>
To: Marcin Gondek <drixter@e-utp.net>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: misc/68122: Device busy (/dev/dsp)- insane, nothing using it
Date: Sun, 20 Jun 2004 14:59:17 -0400

 On Jun 20, Marcin Gondek wrote:
 >  [... artsd crashes and leaves the sound driver in an unknown
 >  state...]
 >  
 
 	Hello Marcin,
 	I've looked at your PR.  I think the likely cause is that
 artsd is crashing and causing the sound driver to exit in an
 unusual/untested way.
 	This likely is a bug in the driver.  Since I don't spend much
 time on 4.x and I don't use artsd, I'm not going to try and fix it
 since I can't recreate it.
 	If you feel experimental, try using -current and see if you
 can cause the bug manifest by killings artsd.  With these conditions,
 I'll have an easier time and give it a shot.
 
 	Then again, maybe somebody else knows exactly what's
 going on...
 
 	Thanks,
 	--Mat
 
 -- 
 	sig machine broken

From: Jean-Yves Lefort <jylefort@brutele.be>
To: freebsd-gnats-submit@FreeBSD.org, drixter@e-utp.net
Cc:  
Subject: Re: kern/68122: [sound] Device busy (/dev/dsp)- insane, nothing
 using it
Date: Sat, 2 Apr 2005 20:18:34 +0200

 Looks like this is a duplicate of 48338.
 
 -- 
 Jean-Yves Lefort
 
 jylefort@brutele.be
 http://lefort.be.eu.org/
State-Changed-From-To: open->closed 
State-Changed-By: netchild 
State-Changed-When: Wed Dec 28 19:35:48 UTC 2005 
State-Changed-Why:  
This should be fixed in -current. 

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