Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jul 1999 14:33:21 -0400 (EDT)
From:      "Brian F. Feldman" <green@FreeBSD.org>
To:        Luoqi Chen <luoqi@watermarkgroup.com>
Cc:        Dom.Mitchell@palmerharvey.co.uk, current@FreeBSD.org
Subject:   Re: panic: zone: entry in free
Message-ID:  <Pine.BSF.4.10.9907151432480.38370-100000@janus.syracuse.net>
In-Reply-To: <199907151618.MAA03390@lor.watermarkgroup.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9907151432480.38370-100000>