From owner-freebsd-current@FreeBSD.ORG Wed Jun 29 20:46:30 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id 6D0941065674 for ; Wed, 29 Jun 2011 20:46:30 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from 65-241-43-4.globalsuite.net (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id B8B761A71F7; Wed, 29 Jun 2011 20:46:29 +0000 (UTC) Message-ID: <4E0B8F25.7090107@FreeBSD.org> Date: Wed, 29 Jun 2011 13:46:29 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.18) Gecko/20110624 Thunderbird/3.1.11 MIME-Version: 1.0 To: Marius Strobl References: <20110629134140.GF14797@alchemy.franken.de> In-Reply-To: <20110629134140.GF14797@alchemy.franken.de> X-Enigmail-Version: 1.1.2 OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: KOT MATPOCKuH , FreeBSD Current Subject: Re: named crashes on assertion in rbtdb.c on sparc64/SMP 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: Wed, 29 Jun 2011 20:46:30 -0000 On 06/29/2011 06:41, Marius Strobl wrote: > On Wed, Jun 29, 2011 at 02:33:06PM +0400, KOT MATPOCKuH wrote: >> 2011/6/29 KOT MATPOCKuH: >>>>> I'm got a problem with named on FreeBSD-CURRENT/sparc64. >>>>> Up to 5 times a day it crashes with these messages: >>>>> 27-Jun-2011 03:42:14.384 general: >>>>> /usr/src/lib/bind/dns/../../../contrib/bind9/lib/dns/rbtdb.c:1614: >>>>> REQUIRE(prev> 0) failed >>>>> 27-Jun-2011 03:42:14.385 general: exiting (due to assertion failure) >>> >>>>> I found a some similar problems on alpha and IA64, which was related >>>>> to problems with isc_atomic_xadd() function in include/isc/atomic.h. >>>>> But I don't understand that there may be incorrect for sparc64 and >>>>> this function was not changed for a minimum 4 years... >>>> Uhm, we once fixed a problem in the MD atomic implementation which >>>> still seems to present in the ISC copy. Could you please test whether >>>> the following patch makes a difference? >>>> http://people.freebsd.org/~marius/sparc64_isc_atomic.h.diff >> >>> I ran named with your patch and and watching him. >> Omg. >> Or I incorrectly rebuilt named, or the problem is not solved. >> I got a crash after about 2 hours after named restarted: >> 29-Jun-2011 13:51:28.855 general: >> /usr/src/lib/bind/dns/../../../contrib/bind9/lib/dns/rbtdb.c:1614: >> REQUIRE(prev> 0) failed >> 29-Jun-2011 13:51:28.856 general: exiting (due to assertion failure) >> > > The remainder of the isc atomic.h looks fine though, so this likely > is a general bug in BIND, especially if it didn't happen before > BIND 9.6.-ESV-R4-P1. Doug should be able to help you. > Doug, could you please nevertheless take care of getting the above > patch into BIND? It's a merge of r148453. Hmm, I thought I had already pushed that rock up the appropriate hill, but maybe not. I've been following this thread, but it's incredibly unlikely that I'll be able to do anything useful with it until Friday. hth, Doug -- Nothin' ever doesn't change, but nothin' changes much. -- OK Go Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/