From owner-freebsd-multimedia Sat Feb 8 10:21:54 2003 Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4077C37B401 for ; Sat, 8 Feb 2003 10:21:53 -0800 (PST) Received: from smtp.mho.com (smtp.mho.net [64.58.4.6]) by mx1.FreeBSD.org (Postfix) with SMTP id 3295543FAF for ; Sat, 8 Feb 2003 10:21:48 -0800 (PST) (envelope-from samsco@mho.net) Received: (qmail 83290 invoked from network); 8 Feb 2003 18:21:42 -0000 Received: from adsl-64-58-12-196.mho.net (HELO mho.net) (64.58.12.196) by smtp.mho.net with SMTP; 8 Feb 2003 18:21:42 -0000 Message-ID: <3E454AA3.6050503@mho.net> Date: Sat, 08 Feb 2003 11:21:23 -0700 From: Scott User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.2b) Gecko/20021105 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-multimedia@freebsd.org, cg@freebsd.org, orion@freebsd.org Subject: panic in dsp_ioctl() Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org All, WIth a fairly recent 5-current and ICH3 sound hardware I'm getting a panic in dsp_ioctl() when running just about anything. The offending section seems to be at line 457 of dsp.c: (kgdb) l *dsp_ioctl+0xb5 0xb935 is in dsp_ioctl (/usr/src/sys/dev/sound/pcm/dsp.c:457). 452 getchns(i_dev, &rdch, &wrch, 0); 453 454 kill = 0; 455 if (wrch && (wrch->flags & CHN_F_DEAD)) 456 kill |= 1; 457 if (rdch && (rdch->flags & CHN_F_DEAD)) 458 kill |= 2; 459 if (kill == 3) { 460 relchns(i_dev, rdch, wrch, 0); 461 splx(s); Since I'm not doing any recording, I would assume that rdch should be NULL and the test would avoid the rdch->flags indirection. However, I'm having a hard time figuring out how rdch actually gets set/initialized in the driver, and the value that winds up in this code path is very bogus. This wasn't a problem with my previous build a few weeks ago. Scott To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message