From owner-freebsd-current@FreeBSD.ORG Tue Jan 27 07:27:22 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 3A05316A4CF; Tue, 27 Jan 2004 07:27:22 -0800 (PST) Received: from dd1318.kasserver.com (dd1318.kasserver.com [81.209.148.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D39743D69; Tue, 27 Jan 2004 07:26:29 -0800 (PST) (envelope-from gbergling@0xfce3.net) Received: from nemesis.md.0xfce3.net (port-ip-213-211-224-164.reverse.mdcc-fun.de [213.211.224.164]) by dd1318.kasserver.com (Postfix) with ESMTP id 8B7AD15F04; Tue, 27 Jan 2004 16:25:40 +0100 (CET) Received: from nemesis.md.0xfce3.net (localhost [127.0.0.1]) i0RFQJcl000878; Tue, 27 Jan 2004 16:26:19 +0100 (CET) (envelope-from gbergling@0xfce3.net) Received: (from gordon@localhost) by nemesis.md.0xfce3.net (8.12.10/8.12.10/Submit) id i0RFQIO7000877; Tue, 27 Jan 2004 16:26:18 +0100 (CET) (envelope-from gbergling@0xfce3.net) X-Authentication-Warning: nemesis.ipv6.0xfce3.net: gordon set sender to gbergling@0xfce3.net using -f Date: Tue, 27 Jan 2004 16:26:18 +0100 From: Gordon Bergling To: Don Lewis Message-ID: <20040127152618.GA817@nemesis.md.0xfce3.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="G4iJoqBmSsgzjUCe" Content-Disposition: inline User-Agent: Mutt/1.4.1i cc: cg@freebsd.org cc: freebsd-current@freebsd.org Subject: 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: Tue, 27 Jan 2004 15:27:22 -0000 --G4iJoqBmSsgzjUCe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable mat@cnd.mcgill.ca Bcc:=20 Subject: Re: dev/sound/pcm/* patch testers wanted Reply-To: Gordon Bergling In-Reply-To: <200401262305.i0QN4t7E078963@gw.catspoiler.org> X-Url: X-Operating-System: FreeBSD 5.2-RELEASE i386 X-Host-Uptime: 4:17PM up 4 mins, 3 users, load averages: 0.10, 0.17, 0.08 FCC: ~/Mail/send/send-Jan-2004 Hi Don, On Mon Jan 26, 2004 at 03:04PM -0800, Don Lewis wrote: > On 26 Jan, To: gbergling@0xfce3.net wrote: > > On 26 Jan, Gordon Bergling wrote: > >> On Mon Jan 26, 2004 at 09:25AM -0800, Don Lewis wrote: > >>> On 26 Jan, Gordon Bergling wrote: > >>>=20 > >>> > The "Danger!" message wasn't appeared, but I got the following on t= he > >>> > console. > >>> >=20 > >>> > malloc() of "1024" with the following non-sleepable locks held: > >>> > exclusive sleep mutex pcm0:play:0 (pcm play channel) r =3D 0 (0xc2b= e8a80) > >>> > locked @ > >>> > /storage/os/src/freebsd-current/src/sys/dev/sound/pcm/buffer.c:195 > >>> > malloc() of "4096" with the following non-sleepable locks held: > >>> > exclusive sleep mutex pcm0:play:0 (pcm play channel) r =3D 0 (0xc2b= e8a80) > >>> > locked @ > >>> > /storage/os/src/freebsd-current/src/sys/dev/sound/pcm/buffer.c:195 >=20 > >=20 > > Quick and dirty solutions: > > Switch back to M_NOWAIT even though we don't handle malloc() > > failure gracefully. > >=20 > > Unlock the channel before calling the setblocksize method, but > > an interrupt happening in the middle of sndbuf_resize() would > > not be a good thing. > >=20 > > Add a pointer back to the channel back to the snd_dbuf structure > > so that sndbuf_resize() could do the proper unlocking and > > locking. >=20 > I picked door #3, which had some complications because sndbuf_resize() > was called in some places with the channel locked and some places with > the channel unlocked ... I had tried the new patch and run the same tests which I had run with the first patch. The system panics every time after the 3 copies of mp3blaster was running for a few seconds. The following panics are hand copied. the first panic: | memory modified after free 0xc2bf2400(1200) val=3D1b230f7b @ 0xc2bf2400 | panic: Most recently used by bus | at line 138 in file /usr/src/sys/vm/uma_dbg.c | cpuid=3D0 | Debugger("panic") | Stopped at Debugger+0x55: chgl %ebx,in_Debugger.0 the second panic: (some tests as above, after reboot. ;) ) | bad dir 24194 at offset 46: mangled entry | panic: ufs_dirbad: bad_dir | at line 633 in file /usr/src/sys/ufs/ufs/ufs_loockup.c hope thats help... regards, Gordon --=20 Gordon Bergling http://www.0xFCE3.net/ PGP Fingerprint: 7732 9BB1 5013 AE8B E42C 28E0 93B9 D32B C76F 02A0 RIPE-HDL: MDTP-RIPE "There is no place like 127.0.0.0/8" --G4iJoqBmSsgzjUCe Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAFoMak7nTK8dvAqARAjlqAKCcwbbH1+hREYK93hfkKRtkQS/RNQCfZX+B 0MDDFcfLFQIX0y/s2/SN32s= =Crij -----END PGP SIGNATURE----- --G4iJoqBmSsgzjUCe--