From owner-freebsd-hackers@FreeBSD.ORG Mon Feb 23 22:07:27 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 2467E16A4CE for ; Mon, 23 Feb 2004 22:07:27 -0800 (PST) Received: from gw.catspoiler.org (217-ip-163.nccn.net [209.79.217.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1DD543D1D for ; Mon, 23 Feb 2004 22:07:26 -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 i1O6797E073003; Mon, 23 Feb 2004 22:07:14 -0800 (PST) (envelope-from truckman@FreeBSD.org) Message-Id: <200402240607.i1O6797E073003@gw.catspoiler.org> Date: Mon, 23 Feb 2004 22:07:09 -0800 (PST) From: Don Lewis To: b_oshea@yahoo.com In-Reply-To: <20040224025537.18179.qmail@web10503.mail.yahoo.com> 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: Tue, 24 Feb 2004 06:07:27 -0000 On 23 Feb, Brian O'Shea wrote: > --- Brian O'Shea wrote: >> --- Mathew Kanner wrote: >> > >> > Hello Brian, >> > Don Lewis commited changes to the 5.2- tree on 2/14. Could >> > you update and try again, also please do run with witness and >> > invariants, and if possible try to get a crashdump so we can see >> > what's happening. >> >> Sure. I'll try to reproduce it with witness and invariants first, just >> to avoid changing too many conditions at the same time. Failing that, >> I'll update to the latest 5.2 tree and see if the problem goes away. > > makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols > options INVARIANTS #Enable calls of extra sanity checking > options INVARIANT_SUPPORT #Extra sanity checks of internal > structures, required by INVARIANTS > options WITNESS #Enable checks to detect deadlocks and > cycles > #options WITNESS_SKIPSPIN #Don't run witness on spinlocks for > speed > > Ok, the problem seems to happen much more reliably now, but still no > panic (so no crash dump). However, I did notice that for some reason > I had built an SMP kernel. All kernels that I have seen exhibit this pcm > driver hang were apparently SMP kernels...I guess that's the default > in GENERIC, which I copied and adapted for my kernel config. As my system > only has one CPU, I will build a UP kernel and see if that has any > effect. Witness won't trigger a panic. It just prints some information to the console about the error. SMP is now the default and runs fine on UP boxes.