From owner-freebsd-current@FreeBSD.ORG Sun Jan 4 14:24:34 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4951516A4CE for ; Sun, 4 Jan 2004 14:24:34 -0800 (PST) Received: from gw.catspoiler.org (217-ip-163.nccn.net [209.79.217.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4DA2343D48 for ; Sun, 4 Jan 2004 14:24:33 -0800 (PST) (envelope-from truckman@FreeBSD.org) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.12.9p2/8.12.9) with ESMTP id i04MOP7E009799; Sun, 4 Jan 2004 14:24:29 -0800 (PST) (envelope-from truckman@FreeBSD.org) Message-Id: <200401042224.i04MOP7E009799@gw.catspoiler.org> Date: Sun, 4 Jan 2004 14:24:25 -0800 (PST) From: Don Lewis To: shoesoft@gmx.net In-Reply-To: <1073227819.1764.13.camel@shoeserv.freebsd> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii cc: current@FreeBSD.org Subject: Re: page fault panic tracked down (selwakeuppri()) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jan 2004 22:24:34 -0000 On 4 Jan, Stefan Ehmann wrote: > On Sat, 2004-01-03 at 05:01, Don Lewis wrote: >> I wouldn't rule out the dsp, since you audio player software may be >> calling select() on the fd for the audio device. You might want to back >> out Bruce's quick hack and change the second argument to selwakeuppri() >> to -1 in chn_wakeup() in dev/sound/pcm/channel.c. >> >> Is your kernel compiled with the INVARIANTS and INVARIANTS_SUPPORT >> options? >> >> Something else that I noticed is that the CHN_LOCKASSERT macro has an >> empty definition in dev/sound/pcm/channel.h. You might want to try >> defining it as >> mtx_assert((struct mtx *)((c)->lock), MA_OWNED) >> >> I still don't see any obvious cause for this problem. > > I took out the debug options because it was just too slow. Put back > INVARIANTS (but no WITNESS) now and speed is nice again. This problem is more likely to be caught by INVARIANTS than WITNESS. > Applied your suggested changes which resulted in a panic. No > assertations were triggered though. Bummer!