Bug 25859

Summary: Program crash will kill sound device if it's using it.
Product: Base System Reporter: Nate Dannenberg <natedac>
Component: kernAssignee: cg
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Nate Dannenberg 2001-03-16 23:40:00 UTC
If a program crashes while it's writing to the sound device, the kernel
fails to close the device, rendering it dead.  Instread of closing the
device, you are given the kernel message "pcm0: play interrupt timeout,
channel dead".

Fix: 

If you use the kernel sound modules instead of compiling the driver into
the kernel, it seems to work better.  The kernel won't allow me to unload
the modules while the sound device is actively in use, but I haven't had
the opportunity to try this method to clean up after a sound application
crashes.

-- 
 /~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~___~~~~~\
|  natedac@kscable.com              //Z@|___  |
|  http://home.kscable.com/natedac |'(__ [_<  |
 \_C64/C128_-_What's_*YOUR*_hobby?__\___|____/
How-To-Repeat: 
Run any sound-capable program such as mpg123, and find some way to
forcibly crash it would allowing it to exit cleanly.  It should leave the
sound device hosed, and further attempts to play sounds should report that
the device is "busy".
Comment 1 Kris Kennaway freebsd_committer freebsd_triage 2001-03-24 05:47:20 UTC
Responsible Changed
From-To: freebsd-bugs->cg

cameron is Mr sound
Comment 2 Nate Dannenberg 2001-03-26 00:41:37 UTC
Please close this report.  Like the XFree86 4.x problem, I somehow managed to create two separate reports.  The other version should 
remain, it's the one I'll be paying attention to, and it's more up to date :-)

-- 
 /~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~___~~~~~\
|  natedac@kscable.com              //Z@|___  |
|  http://home.kscable.com/natedac |'(__ [_<  |
 \_C64/C128_-_What's_*YOUR*_hobby?__\___|____/
Comment 3 greid freebsd_committer freebsd_triage 2001-04-08 23:19:57 UTC
State Changed
From-To: open->closed

Closed at submitter's request