From owner-freebsd-current Thu Jul 15 11:33:27 1999 Delivered-To: freebsd-current@freebsd.org Received: from janus.syracuse.net (janus.syracuse.net [205.232.47.15]) by hub.freebsd.org (Postfix) with ESMTP id 19A4A14D61 for ; Thu, 15 Jul 1999 11:33:24 -0700 (PDT) (envelope-from green@FreeBSD.org) Received: from localhost (green@localhost) by janus.syracuse.net (8.9.2/8.8.7) with ESMTP id OAA38946; Thu, 15 Jul 1999 14:33:22 -0400 (EDT) X-Authentication-Warning: janus.syracuse.net: green owned process doing -bs Date: Thu, 15 Jul 1999 14:33:21 -0400 (EDT) From: "Brian F. Feldman" X-Sender: green@janus.syracuse.net To: Luoqi Chen Cc: Dom.Mitchell@palmerharvey.co.uk, current@FreeBSD.org Subject: Re: panic: zone: entry in free In-Reply-To: <199907151618.MAA03390@lor.watermarkgroup.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 15 Jul 1999, Luoqi Chen wrote: > > I realise that will stop the panic from looking at the source code, but > > surely it's just covering up the problem and waiting for it to happen > > later? > > > I'm pretty it's caused by the INVARIANTS option, similar incidents have been > reported many times before. The problem with INVARIANTS is that 1. it alters > data structures, 2. kernel modules don't know about this option, so you > have inconsistent kernel and modules. There're three solutions, > > 1, make INVARIANTS less intrusive. So far only vm_zone code is causing > problems, I suggest we rename the option to INVARIANTS_ZONE in this part > of code (the code should be pretty much bug free by now). > > 2, compile modules with the option. The easiest way is probably add > -DINVARIANTS in your /etc/make.conf, you have to remember to take it > out when you remove the option from your config file. I apply the following to freshly checked-out sources: --- src/sys/modules/Makefile.inc.orig Fri Oct 16 00:31:35 1998 +++ src/sys/modules/Makefile.inc Sun Mar 14 23:03:02 1999 @@ -1,3 +1,8 @@ # $Id: Makefile.inc,v 1.1 1998/10/16 04:31:35 peter Exp $ KLDMOD= true +CFLAGS+= -DINVARIANTS +NTUN=4 +PPP_FILTER=1 +VM86=1 +CFLAGS+= -g > > 3, do not use INVARIANTS if you don't need it. :) > > -lq > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > Brian Fundakowski Feldman _ __ ___ ____ ___ ___ ___ green@FreeBSD.org _ __ ___ | _ ) __| \ FreeBSD: The Power to Serve! _ __ | _ \._ \ |) | http://www.FreeBSD.org/ _ |___/___/___/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message