From owner-freebsd-questions@FreeBSD.ORG Mon Sep 22 14:26:53 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B4B9316A4B3 for ; Mon, 22 Sep 2003 14:26:53 -0700 (PDT) Received: from endeavour.localnet.radiotube.org (tromso-dhcp-235-22.bluecom.no [62.101.235.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 11E3643FFD for ; Mon, 22 Sep 2003 14:26:50 -0700 (PDT) (envelope-from sigsegv@leakingmemory.org) Received: from [127.0.0.1] (localhost [127.0.0.1])h8MLQkW2021143; Mon, 22 Sep 2003 23:26:47 +0200 (CEST) (envelope-from sigsegv@leakingmemory.org) From: Jan-Espen Pettersen To: Nicholas Holley In-Reply-To: <3F6E82B4.9020602@imap.cc> References: <3F6E82B4.9020602@imap.cc> Content-Type: text/plain Message-Id: <1064266006.2216.19.camel@endeavour.localnet.radiotube.org> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4 Date: Mon, 22 Sep 2003 23:26:46 +0200 Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org cc: sigsegv@leakingmemory.org Subject: Re: soundcard stopping? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: sigsegv@leakingmemory.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2003 21:26:53 -0000 On Mon, 2003-09-22 at 07:03, Nicholas Holley wrote: > I'm running an up to date version of Freebsd 5.1, and I'm having > problems with my soundcard. I have an Asus a7n8x deluxe. The kernel has > pcm support compiled in and the sound card works mostly, but > occasionally the soundcard will not work properly. > > For example: > > - xmms will be playing fine for an hour and then stop with the > generic error about the soundcard being unavailable > - I'll pause mplayer and unpause it only to have it crash due to the > soundcard being unavailable > - snes9x will stop playing the sound after a short amount of > playtime > > Most of the time, I see an error along the lines of an "illegal error". > With mplayer and xmms, usually a couple of tries and the sound will work > again. "fstat | grep dsp" will never output anything when the sound > isn't working so I don't think anything else is blocking the soundcard > plus I have 4 virtual channels set up so that shouldn't be possible anyway. > > The problem is hard to cause or predict so I can't really provide more > specific situations, but I'm hoping that this has happened to someone > else before. I think this has something to do with malloc(9) returning NULL. (with M_NOWAIT flag) Therefore dsp operations which requires memory allocation or realloc will fail if there is not enough memory free to immediately fullfill the alloc requests. The driver will then return ENOMEM. I've seen debug messages here indicating a return value of 12 (ENOMEM) from, I think it was some feeder init functions, but can't recall and couldn't find it in the logs anymore, sorry.