From owner-freebsd-hackers@FreeBSD.ORG Thu Feb 26 09:34:46 2004 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 062B916A4CE for ; Thu, 26 Feb 2004 09:34:46 -0800 (PST) Received: from web10506.mail.yahoo.com (web10506.mail.yahoo.com [216.136.130.156]) by mx1.FreeBSD.org (Postfix) with SMTP id A60C243D3F for ; Thu, 26 Feb 2004 09:34:45 -0800 (PST) (envelope-from b_oshea@yahoo.com) Message-ID: <20040226173445.86074.qmail@web10506.mail.yahoo.com> Received: from [156.153.254.42] by web10506.mail.yahoo.com via HTTP; Thu, 26 Feb 2004 09:34:45 PST Date: Thu, 26 Feb 2004 09:34:45 -0800 (PST) From: Brian O'Shea To: Don Lewis In-Reply-To: <200402240543.i1O5ho7E072966@gw.catspoiler.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-hackers@FreeBSD.org cc: mat@cnd.mcgill.ca Subject: Re: 5.2.1-RC hangs occasionally when sound files are played using the pcm driver 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: Thu, 26 Feb 2004 17:34:46 -0000 Sorry for the late response on this. I've been trying various combinations of kernel options in an attempt to narrow down the problem. --- Don Lewis wrote: > On 23 Feb, Brian O'Shea wrote: > > --- Don Lewis wrote: > >> > >> The cause of deadlocks is more likely to be caught by WITNESS. In this > > > > With WITNESS the hang still occurrs, and still no panic. It's hard to > > tell since the problem tends to happen at random times, but it seems like > > it happens more quickly with the kernel that has WITNESS and INVARIANTS > > enabled. > > Can you see any kernel diagnostic messages, or are you running X? If > you are running X, can you set up a serial console, or can you reproduce > the hang while switched to a text console? I was able to reproduce the problem from a text console, and there were no diagnostic messages when the problem happened, even with the WITNESS code enabled. However, I think I have narrowed the problem down to the SMP kernel where it happens reliably. I have not observed the problem at all on a UP kernel. > Depending on the cause of the problem, you might need to build a kernel > with DDB support and break into DDB from the console while the machine > is hung to figure out the cause. I will try this. > > I'd be willing to test your patch, if that would help. Where can I > > find it? > > The patch below should be applied to a recent version of -CURRENT. At the moment I don't have a -CURRENT system. It might make more sense for me to try to debug this on a scratch system, instead of on the machine that I rely on. I'll try to cobble something together from scraps, and keep you posted. Thanks, -brian > Index: sys/dev/sound/pcm/dsp.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/sound/pcm/dsp.c,v > retrieving revision 1.73 > diff -u -r1.73 dsp.c ... __________________________________ Do you Yahoo!? Get better spam protection with Yahoo! Mail. http://antispam.yahoo.com/tools