From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 12 23:38:20 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8C9D216A686 for ; Tue, 12 Dec 2006 23:38:20 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 92777442F7 for ; Tue, 12 Dec 2006 23:26:35 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 165971A4D87; Tue, 12 Dec 2006 15:27:52 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 456AC5131D; Tue, 12 Dec 2006 18:27:51 -0500 (EST) Date: Tue, 12 Dec 2006 18:27:51 -0500 From: Kris Kennaway To: Kevin Sanders Message-ID: <20061212232750.GA22669@xor.obsecurity.org> References: <375baf50612121430s9576df7ld2526be77b2fa119@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="TB36FDmn/VVEgNH/" Content-Disposition: inline In-Reply-To: <375baf50612121430s9576df7ld2526be77b2fa119@mail.gmail.com> User-Agent: Mutt/1.4.2.2i Cc: freebsd-hackers@freebsd.org Subject: Re: KASSERT in kernel module outside src/sys X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Dec 2006 23:38:20 -0000 --TB36FDmn/VVEgNH/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 12, 2006 at 02:30:41PM -0800, Kevin Sanders wrote: > I'm trying to use KASSERT in my own kernel module and I can't get it > to assert even with a KASSERT(0, "test panic"). Is there something > else I need to do besides add options INVARIANTS to my kernel config > file. Any clues would be appreciated. Modules built by hand do not use the kernel config file (they don't know which one to use). You can build your module along with your kernel using MODULES_OVERRIDE or equivalent, or just add -DINVARIANTS etc to your module makefile. >=20 > Kevin > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >=20 --TB36FDmn/VVEgNH/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFfzr2Wry0BWjoQKURAjVrAJ9doC1rciA+BaunHRXaKzeLiJwMHACgrCmx rBQobq3R6p38lEUKP/RIMh4= =nDjX -----END PGP SIGNATURE----- --TB36FDmn/VVEgNH/--