From owner-freebsd-current@FreeBSD.ORG Wed Aug 14 14:56:36 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A42A7161; Wed, 14 Aug 2013 14:56:36 +0000 (UTC) (envelope-from andy@neu.net) Received: from mail.neu.net (neu.net [199.48.129.194]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7745B2075; Wed, 14 Aug 2013 14:56:36 +0000 (UTC) Received: from neu.net (neu.net [199.48.129.194]) by mail.neu.net (8.14.6/8.14.5) with ESMTP id r7EEuSUi024068; Wed, 14 Aug 2013 10:56:28 -0400 (EDT) (envelope-from andy@neu.net) Date: Wed, 14 Aug 2013 10:56:28 -0400 (EDT) From: AN To: Gavin Atkinson Subject: Re: make[6]: stopped in /usr/src/lib/bind/dns In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: clamav-milter 0.97.8 at my.mail.server X-Virus-Status: Clean X-Spam-Status: No, score=-0.0 required=4.5 tests=RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mail.neu.net Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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: Wed, 14 Aug 2013 14:56:36 -0000 On Wed, 14 Aug 2013, Gavin Atkinson wrote: > On Mon, 12 Aug 2013, AN wrote: >> FreeBSD FBSD10 10.0-CURRENT FreeBSD 10.0-CURRENT #78 r253966: Mon Aug 5 >> 14:42:05 CDT 2013 root@FBSD10:/usr/obj/usr/src/sys/MYKERNEL amd64 >> >> # svn info >> Path: . >> Working Copy Root Path: /usr/src >> URL: svn://svn.freebsd.org/base/head >> Relative URL: ^/head >> Repository Root: svn://svn.freebsd.org/base >> Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f >> Revision: 254252 >> Node Kind: directory >> Schedule: normal >> Last Changed Author: ed >> Last Changed Rev: 254252 >> Last Changed Date: 2013-08-12 13:17:45 -0500 (Mon, 12 Aug 2013) > > [...] > >> /usr/src/lib/bind/dns/../../../contrib/bind9/lib/dns/zone.c:14682:11: warning: >> null character ignored >> [-Wnull-character] >> isc_time_ >> ^ >> /usr/src/lib/bind/dns/../../../contrib/bind9/lib/dns/zone.c:14682:12: warning: >> null character ignored >> [-Wnull-character] >> isc_time_ >> ^ >> /usr/src/lib/bind/dns/../../../contrib/bind9/lib/dns/zone.c:14682:13: warning: >> null character ignored >> [-Wnull-character] >> isc_time_ >> ^ > [...] >> /usr/src/lib/bind/dns/../../../contrib/bind9/lib/dns/zone.c:14682:23: warning: >> null character ignored >> [-Wnull-character] >> >> isc_time_ >> >> ^ > > OK, this doesn't look good. Somehow, that file appears to contain a load > of \0 characters. > > Looking into where exactly in the file this appears (lines 14678-14688): > > set_resigntime(zone); > UNLOCK_ZONE(zone); > } > > isc_time_settoepoch(&zone->refreshkeytime); > > /* > * If we're doing key maintenance, set the key refresh timer to > * the next scheduled key event or to one hour in the future, > * whichever is sooner. > */ > > The null characters start exactly at 0x60000 into the file, a page > boundary: > > 005ffd0 6e 74 69 6d 65 28 7a 6f 6e 65 29 3b 0a 09 09 55 |ntime(zone);...U| > 005ffe0 4e 4c 4f 43 4b 5f 5a 4f 4e 45 28 7a 6f 6e 65 29 |NLOCK_ZONE(zone)| > 005fff0 3b 0a 09 7d 0a 0a 09 69 73 63 5f 74 69 6d 65 5f |;..}...isc_time_| > 0060000 73 65 74 74 6f 65 70 6f 63 68 28 26 7a 6f 6e 65 |settoepoch(&zone| > 0060010 2d 3e 72 65 66 72 65 73 68 6b 65 79 74 69 6d 65 |->refreshkeytime| > 0060020 29 3b 0a 0a 09 2f 2a 0a 09 20 2a 20 49 66 20 77 |);.../*.. * If w| > > So, at least one whole page has been replaced by a page of zeros. This > feels like it could actually be a VM issue, though it could also be > storage. What drives are you using on this system (AHCI? SSD?), and are > you using anything like e.g. geom_mirror? A full dmesg may be useful. > > Gavin > Hi Gavin: Thanks for your reply. I am using AHCI on a single disk. I believe what happened was that I had some disk corruption recently, fixed by a full fsck in single user mode. After fixing that and rebooting I started to see this problem. I was able to fix it by deleting /usr/src and doing a fresh svn co. Now buildworld compiles successfully. So, it was a local problem on this machine and not anything with the source code as I did not see anyone else report this problem. Thanks again for your help, sorry for the noise. Andy