From owner-freebsd-current@FreeBSD.ORG Fri Apr 24 09:17:16 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 375B41065674; Fri, 24 Apr 2009 09:17:16 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 0E9788FC1B; Fri, 24 Apr 2009 09:17:16 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [65.122.17.41]) by cyrus.watson.org (Postfix) with ESMTPS id AA98846B2E; Fri, 24 Apr 2009 05:17:15 -0400 (EDT) Date: Fri, 24 Apr 2009 10:17:15 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Gary Jennejohn In-Reply-To: <20090424104900.579dfa41@ernst.jennejohn.org> Message-ID: References: <49F12578.4060609@protected-networks.net> <200904241248.16562.doconnor@gsoft.com.au> <49F16F9E.40306@poildetroll.net> <20090424104900.579dfa41@ernst.jennejohn.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: pluknet , Michael Butler , Pierre Guinoiseau , jhb@FreeBSD.org, freebsd-current@freebsd.org Subject: HEADS UP: rebuild all modules on 8.x (was: Re: 'sysctl -a | less' crashes -current) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 24 Apr 2009 09:17:16 -0000 On Fri, 24 Apr 2009, Gary Jennejohn wrote: > [sysctl -a causes a crash dump] > I saw this yesterday also. It turned out that I had an old kqemu.ko > loaded. Removing it eliminated the crash. > > If you're using modules, especially from ports, then make sure they're > up-to-date with your kernel sources. > > I got the idea for this from a mail which Robert Watson posted. I admit some confusion here: the size of a key data structure changed, and so I changed __FreeBSD_version, which in principle should also prevent old modules from being loaded (or at least, lots of people complain because FreeBSD version bumps prevent old modules from being loaded :-). Anyone who has *not* rebuilt their modules since this change should do so: SVN rev 191267 on 2009-04-19 11:20:57Z by rwatson Garbage collect now-unused struct malloc_type fields, bump __FreeBSD_version as kernel modules will need to be rebuilt. These fields existed to support binary compatibility with kernel modules from before the introduction of libmemstat(3) in FreeBSD 6.x, so they are no longer required. I'll add a note to updating, but am confused about why the safety belts we have in place to force module recompiles in this situation haven't done the trick. Could we be dealing with straggling modules built before that was added, or modules not built with our standard modules build parts? I've CC'd John since he did the __FreeBSD_version-related changes, which I may simply have misunderstood. Robert N M Watson Computer Laboratory University of Cambridge