misc/68122: Device busy (/dev/dsp)- insane, nothing using it

Marcin Gondek drixter at e-utp.net
Sun Jun 20 07:01:52 GMT 2004


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

From: Marcin Gondek <drixter at e-utp.net>
To: "Simon L. Nielsen" <simon at FreeBSD.org>
Cc: freebsd-gnats-submit at 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 at 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 at zaphod:~] fstat /dev/dsp
 > USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W NAME
 > [simon at 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 at 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 at zaphod:~]
 > So, could you try to run fstat /dev/dsp* instead ? I would think
 > something is holding /dev/dsp0.0 open.
 
 
 [root at fido:~]$  fstat /dev/dsp*
 USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W
 NAME
 [root at fido:~]$  fstat /dev/dsp0.0
 USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W
 NAME
 [root at fido:~]$
 
 
 Also:
 [root at fido:~]$ kldunload snd_emu10k1
 kldunload: can't unload file: Device busy
 [root at fido:~]$ tail -n1 /var/log/messages
 Jun 20 08:49:02 fido /kernel: pcm0: unregister: channel pcm0:play:1 busy
 (pid 22573)
 [root at fido:~]$ kill -9 22573
 -su: kill: (22573) - No such process
 [root at fido:~]$ ps aux | grep 22573
 [root at 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 systemów nowej generacji http://www.neutrin.pl
 
 


More information about the freebsd-bugs mailing list