From owner-freebsd-bugs Fri Mar 16 15:40: 9 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id D89BA37B71A for ; Fri, 16 Mar 2001 15:40:00 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f2GNe0r04147; Fri, 16 Mar 2001 15:40:00 -0800 (PST) (envelope-from gnats) Received: from piccolo.daconcepts.dyndns.org (wks-166-129-114.kscable.com [24.166.129.114]) by hub.freebsd.org (Postfix) with ESMTP id 842A137B718 for ; Fri, 16 Mar 2001 15:30:18 -0800 (PST) (envelope-from natedac@kscable.com) Received: from localhost (natedac@localhost) by piccolo.daconcepts.dyndns.org (8.11.3/8.11.3) with ESMTP id f2GNPPr01654 for ; Fri, 16 Mar 2001 17:25:25 -0600 (CST) (envelope-from natedac@kscable.com) Message-Id: Date: Fri, 16 Mar 2001 17:25:25 -0600 (CST) From: Nate Dannenberg To: Subject: kern/25859: ESS Sound drivers may eventually crap out if a program crashes Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 25859 >Category: kern >Synopsis: Program crash will kill sound device if it's using it. >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Mar 16 15:40:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: Nate Dannenberg >Release: FreeBSD 4.3-BETA i386 >Organization: n/a >Environment: System: FreeBSD piccolo.daconcepts.dyndns.org 4.3-BETA FreeBSD 4.3-BETA #1: Fri Mar 16 16:32:20 CST 2001 natedac@piccolo.daconcepts.dyndns.org:/usr/src/sys/compile/PICCOLO i386 IBM Aptiva - 550 MHz Athlon, 96M RAM, ESS Solo-1 sound device (other stats of this machine are likely irrelevant). Also happens on Compaq Presario 4764 - P166 MMX, 24M Ram, ESS 1688 Audiodrive. >Description: 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". >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". >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?__\___|____/ >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message