Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Feb 2004 09:34:45 -0800 (PST)
From:      Brian O'Shea <b_oshea@yahoo.com>
To:        Don Lewis <truckman@FreeBSD.org>
Cc:        mat@cnd.mcgill.ca
Subject:   Re: 5.2.1-RC hangs occasionally when sound files are played using the pcm driver
Message-ID:  <20040226173445.86074.qmail@web10506.mail.yahoo.com>
In-Reply-To: <200402240543.i1O5ho7E072966@gw.catspoiler.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <truckman@FreeBSD.org> wrote:
> On 23 Feb, Brian O'Shea wrote:
> > --- Don Lewis <truckman@FreeBSD.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040226173445.86074.qmail>