Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jul 2017 16:32:39 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-usb@FreeBSD.org
Subject:   [Bug 220949] When the only USB soundcard is disconnected, defunct /dev/dsp0 is left, kernel warnings, programs hang
Message-ID:  <bug-220949-17@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D220949

            Bug ID: 220949
           Summary: When the only USB soundcard is disconnected, defunct
                    /dev/dsp0 is left, kernel warnings, programs hang
           Product: Base System
           Version: 11.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: usb
          Assignee: freebsd-usb@FreeBSD.org
          Reporter: yuri@rawbw.com

I have a USB webcam that is also a soundcard with only a microphone, and no
speaker. When there are no other audio devices, disconnecting this USB webc=
am
causes system dysfunction.

There are a lot of repeating messages in log:
> Jul 23 09:14:21 yv kernel: pcm0: unregister: mixer busy
> Jul 23 09:14:21 yv kernel: pcm0: Waiting for sound application to exit!
> Jul 23 09:14:23 yv kernel: pcm0: unregister: mixer busy
> Jul 23 09:14:23 yv kernel: pcm0: Waiting for sound application to exit!

Programs that have this device open hanged and became unkillable with kill =
-9.

'kldunload snd_uaudio.ko' also hangs in unkillable state.

USB is hot-pluggable. Device is supposed to disappear and reappear without =
any
long-term effects.

IMO, /dev/dspN should disappear when device is removed. Programs that have =
it
opened should behave gracefully. They should only get errors from it and not
hang.

USB webcam: HD Pro Webcam C920 (vendor 0x046d, product 0x6860)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-220949-17>