From owner-freebsd-multimedia@FreeBSD.ORG Sun Nov 6 13:20:02 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 67D4716A426 for ; Sun, 6 Nov 2005 13:20:02 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id A789243D45 for ; Sun, 6 Nov 2005 13:20:01 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 8445D6CC25; Sun, 6 Nov 2005 21:22:07 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (TOMOYO.MYBSD.ORG.MY [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 60552-02; Sun, 6 Nov 2005 21:22:06 +0800 (MYT) Received: from kasumi.MyBSD.org.my (kasumi.MyBSD.org.my [IPv6:2001:328:2002:aa2::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 101496CC22; Sun, 6 Nov 2005 21:22:06 +0800 (MYT) Date: Sun, 6 Nov 2005 21:19:57 +0800 From: Ariff Abdullah To: Watanabe Kazuhiro Message-Id: <20051106211957.67ec42d5.skywizard@MyBSD.org.my> In-Reply-To: <20051106124900.0941D24D2E@mail.asahi-net.or.jp> References: <20051106124900.0941D24D2E@mail.asahi-net.or.jp> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Amavisd AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: [patch] calling mss_unlock() twice (causes kernel panic) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Nov 2005 13:20:02 -0000 On Sun, 06 Nov 2005 21:48:46 +0900 Watanabe Kazuhiro wrote: > Hi, everyone. > > I have an AOpen AW37Pro soundcard which uses the Crystal CX4235 > soundchip. > > When I try to record on FreeBSD-7-current/i386 (CVSup'ed Nov. 5) > with wavrec (a part of ports/audio/wavplay), it causes kernel panic. > > panic: lock (sleep mutex) pcm2 not locked @ > /FreeBSD/FreeBSD-current/src/sys/modules/sound/driver/mss/../../../ > ../dev/sound/isa/mss.c:189 cpuid = 0 > KDB: enter: panic > [thread pid 30 tid 100035 ] > Stopped at kdb_enter+0x2b: nop > db> trace > Tracing pid 30 tid 100035 td 0xc21b4480 > kdb_enter(c086b04b) at kdb_enter+0x2b > panic(c086f5f4,c0886f8e,c22d9860,c0acc397,bd) at panic+0x127 > witness_unlock(c22ef4c0,8,c0acc397,bd) at witness_unlock+0xc0 > _mtx_unlock_flags(c22ef4c0,0,c0acc397,bd,cbfefcd4) at > _mtx_unlock_flags+0x5b > mss_unlock(c231bd80,20983d18,c22ef440,c21cd880,0) at mss_unlock+0x17 > mss_intr(c2318b00) at mss_intr+0x129 > ithread_execute_handlers(c22e8000,c21cd880) at > ithread_execute_handlers+0xe6 > ithread_loop(c22d9940,cbfefd38,c22d9940,c062cefc,0) at > ithread_loop+0x67 fork_exit(c062cefc,c22d9940,cbfefd38) at > fork_exit+0xa4 fork_trampoline() at fork_trampoline+0x8 > --- trap 0x1, eip = 0, esp = 0xcbfefd6c, ebp = 0 --- > db> > Oops.. that was really a typo. Thanks, I'll fix it. -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4)