From owner-freebsd-current@FreeBSD.ORG Wed Feb 18 08:44:03 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 9776F16A4CE for ; Wed, 18 Feb 2004 08:44:03 -0800 (PST) Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id E268243D1D for ; Wed, 18 Feb 2004 08:44:02 -0800 (PST) (envelope-from andreas.kohn@gmx.net) Received: (qmail 2277 invoked by uid 65534); 18 Feb 2004 16:44:01 -0000 Received: from unknown (EHLO [212.204.44.203]) (212.204.44.203) by mail.gmx.net (mp023) with SMTP; 18 Feb 2004 17:44:01 +0100 X-Authenticated: #2431876 From: Andreas Kohn To: Daniel Papasian In-Reply-To: References: <1077099032.1231.12.camel@klamath.syndrom23.de> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-R9JWetPgI5D9Hf4e1UOF" Message-Id: <1077122639.794.21.camel@klamath.syndrom23.de> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Wed, 18 Feb 2004 17:44:00 +0100 cc: current@FreeBSD.org Subject: Re: [PANIC] page fault -> bremfree: removing a buffer not on a queue 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: Wed, 18 Feb 2004 16:44:03 -0000 --=-R9JWetPgI5D9Hf4e1UOF Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hello, Thank you for your reply! On Wed, 2004-02-18 at 16:28, Daniel Papasian wrote: > On Wed, 18 Feb 2004, Andreas Kohn wrote: > > Hello, > > > > yesterday my computer crashed with this panic: > > > > > > > syncing disks, buffers remaining... panic: bremfree: removing a buffer > > not on a queue >=20 > Okay, I'm not the only one who has had this panic. I've been looking at > it, but without essentially zero prior knowledge of the filesystem and no > computer around with a filesystem I can afford to have corrupted, > personally I'm afraid to take any sort of action. /me too. Until I have a proper backup I don't think I will try to push that box too hard. >=20 > > Before the panic happened, I was compiling/linking some software, and > > watching TV (bttv/xawtv). The linking process gave some strange error >=20 > My question is, did you do this on a "dirty" filesystem using > softupdates- that is, one that crashed and came up and fsck was in the > process of reclaiming unused resources? >=20 No, at least I don't think so. I do have occasional panics with bgfsck afterwards, but in this case the box was running for some hours, so there shouldn't have been any fsck activity. Most of the panics I get seem to relate to disk activity + xawtv running, although I hadn't had any spare time to try to find the cause yet. > I believe the easiest solution is to test in bremfree whether there are > less than or equal to 1 locks (BUF_REFCNT) on the buffer and if there > aren't, simply return. But by no means do I believe this solution to be > correct; bremfree should not be called if this is the case, I suspect, bu= t > it is being called in such circumstances in more than one place (my > crashdump, posted earlier to current@, called bremfree at a different > place) >=20 > Unless, of course, the if(BUF_REFCNT(bp) <=3D1) assertion inside of > bremfreel is not correct. >=20 I didn't look deeper into the sources yet, but perhaps someone else can comment on this? > -Dan >=20 Regards, Andreas --=-R9JWetPgI5D9Hf4e1UOF Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQBAM5ZPYucd7Ow1ygwRAilIAKCYBuRGTwjKf0kAs62UlQzWYDOORQCeMceV igJCnkrJE4mOOCUJHaVY3+E= =u4mm -----END PGP SIGNATURE----- --=-R9JWetPgI5D9Hf4e1UOF--