From owner-freebsd-current@FreeBSD.ORG Thu Apr 29 22:30:24 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 970011065677 for ; Thu, 29 Apr 2010 22:30:24 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (muon.cran.org.uk [109.74.192.160]) by mx1.freebsd.org (Postfix) with ESMTP id 57C6E8FC08 for ; Thu, 29 Apr 2010 22:30:24 +0000 (UTC) Received: from muon.cran.org.uk (localhost [127.0.0.1]) by muon.cran.org.uk (Postfix) with ESMTP id 3BE2BC400D; Thu, 29 Apr 2010 22:30:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on muon.cran.org.uk X-Spam-Level: X-Spam-Status: No, score=-2.3 required=8.0 tests=AWL,BAYES_00,RDNS_DYNAMIC autolearn=no version=3.2.5 Received: from core.draftnet (87-194-158-129.bethere.co.uk [87.194.158.129]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by muon.cran.org.uk (Postfix) with ESMTPSA; Thu, 29 Apr 2010 22:30:23 +0000 (UTC) From: Bruce Cran To: freebsd-current@freebsd.org Date: Thu, 29 Apr 2010 23:30:06 +0100 User-Agent: KMail/1.13.2 (FreeBSD/9.0-CURRENT; KDE/4.4.2; amd64; ; ) References: <20100429153154.GA70173@darkthrone.kvedulv.de> <201004292241.30915.bruce@cran.org.uk> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201004292330.06455.bruce@cran.org.uk> Cc: Garrett Cooper , Andriy Gapon , Michael Moll Subject: Re: config(8) dumps core 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: Thu, 29 Apr 2010 22:30:24 -0000 On Thursday 29 April 2010 22:46:29 Garrett Cooper wrote: > Does a version prior to last week work, and could you please > attach your kernel configuration file(s) for analysis? I remember coming across the same error during buildkernel last week, but can't remember how, or how I resolved it. I've just built GENERIC from recent sources and can get the assert to occur by running "config -x /boot/kernel/kernel". It looks like it thinks there's more data available than there is. config/main.c gets the size of the configuration by running elfdump: > elfdump -c /boot/kernel/kernel | grep -A 5 kern_conf | tail -2 | cut -d ' ' -f 2 | paste - - - 10053368 2656 The first column is the offset, and the second is the number of bytes, but the embedded configuration only has 2649 bytes. Some of the output from config: > config -x /boot/kernel/kernel options CONFIG_AUTOGENERATED ident GENERIC machine sparc64 cpu SUN4U makeoptions DEBUG=-g options USB_DEBUG options AH_SUPPORT_AR5416 options IEEE80211_SUPPORT_MESH options IEEE80211_AMPDU_AGE [...] device uath device ural device zyd device firewire device sbp device fwe device fwip device dcons device dcons_crom Assertion failed: (r != '\0' && ("Char present in the configuration " "string mustn't be equal to 0")), function kernconfdump, file /usr/src/usr.sbin/config/main.c, line 719. Abort (core dumped) -- Bruce Cran