From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 10 00:33:24 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A67D16A4B3 for ; Fri, 10 Oct 2003 00:33:24 -0700 (PDT) Received: from mailbo.vtcif.telstra.com.au (mailbo.vtcif.telstra.com.au [202.12.144.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2989E43FDF for ; Fri, 10 Oct 2003 00:33:23 -0700 (PDT) (envelope-from ghd832332157@geckomail.org) Received: by mailbo.vtcif.telstra.com.au (Postfix, from userid 5) id D2354228F1; Fri, 10 Oct 2003 17:33:20 +1000 (EST) Received: from mailbi.vtcif.telstra.com.au(202.12.142.19) via SMTP by mailbo.vtcif.telstra.com.au, id smtpdM_aqrU; Fri Oct 10 17:33:12 2003 Received: from mailbi.vtcif.telstra.com.au (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id 3153B22885 for ; Fri, 10 Oct 2003 17:33:10 +1000 (EST) Received: from mail.cdn.telstra.com.au (mail.cdn.telstra.com.au [144.135.138.138]) by mailbi.vtcif.telstra.com.au (Postfix) with ESMTP id 721792289F for ; Fri, 10 Oct 2003 17:33:08 +1000 (EST) Received: from fuzzy.trl.telstra.com.au (fuzzy.trl.telstra.com.au [137.147.132.229]) by mail.cdn.telstra.com.au (8.8.2/8.6.9) with SMTP id RAA16219 for ; Fri, 10 Oct 2003 17:33:08 +1000 (EST) Received: (qmail 14187 invoked from network); 10 Oct 2003 07:33:08 -0000 Received: from buttercup.trl.telstra.com.au (HELO ?137.147.132.188?) (137.147.132.188) by elvin.trl.telstra.com.au with SMTP; 10 Oct 2003 07:33:08 -0000 From: CJ East To: freebsd-hackers@freebsd.org Content-Type: text/plain Message-Id: <1065771155.977.79.camel@buttercup.trl.telstra.com.au> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Fri, 10 Oct 2003 17:32:36 +1000 Content-Transfer-Encoding: 7bit Subject: Hey :P X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Oct 2003 07:33:24 -0000 Hi all :P My apologies if this is a fixed problem/etc I'm new to FreeBSD so here goes... I'm running a 1-week on 5.1-STABLE world / i386 , but my sound card intermittently stops playing under xmms. PR Kern/40711 looks very similar, it looks to have the same symptoms as my own, however my looking has lead me to snd_pcm.ko module as the root cause. Specifically, I can reproduce the problem (making hw.snd.pcm0.vchans=8) and have taken it as far as sndbuf_remalloc (in /usr/src/sys/dev/sound/pcm/buffer.c), in which one of two malloc calls fail, unwinding all the way to the top where xmms prints it's lovely message. The actual call to malloc looks sane enough to my eyes (131072 bytes, it does this successfully beforehand so I'm guessing no probs there). I'm suspecting that there's a leak somewhere and we've hit a hard limit. (Of course, I'm just stabbing in the dark, so let me know if y'all have another idea) If somebody could let me know where to run with this it would be quite helpful (I'm assuming there's some way of checking the amount allocated to M_DEVBUF, but I've no idea how! :( ) -- I can reproduce the problem (reasonably sporadically, about once an hour or so with xmms playing) I looked at the underlying malloc function but I'm a little retiscent to start putting printf's in there... ;) What's the best course of action somebody? -cje-