From owner-freebsd-current@FreeBSD.ORG Tue Jun 28 15:58:05 2011 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 8420C106566B for ; Tue, 28 Jun 2011 15:58:05 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (alchemy.franken.de [194.94.249.214]) by mx1.freebsd.org (Postfix) with ESMTP id 1A39E8FC08 for ; Tue, 28 Jun 2011 15:58:04 +0000 (UTC) Received: from alchemy.franken.de (localhost [127.0.0.1]) by alchemy.franken.de (8.14.4/8.14.4/ALCHEMY.FRANKEN.DE) with ESMTP id p5SFw3hU026701; Tue, 28 Jun 2011 17:58:03 +0200 (CEST) (envelope-from marius@alchemy.franken.de) Received: (from marius@localhost) by alchemy.franken.de (8.14.4/8.14.4/Submit) id p5SFw399026700; Tue, 28 Jun 2011 17:58:03 +0200 (CEST) (envelope-from marius) Date: Tue, 28 Jun 2011 17:58:03 +0200 From: Marius Strobl To: KOT MATPOCKuH Message-ID: <20110628155802.GA26562@alchemy.franken.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: FreeBSD Current Subject: Re: named crashes on assertion in rbtdb.c o? 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: Tue, 28 Jun 2011 15:58:05 -0000 On Mon, Jun 27, 2011 at 07:19:33PM +0400, KOT MATPOCKuH wrote: > Hello! > > 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) > > The problem is still in latest system's bind: > # named -v > BIND 9.6.-ESV-R4-P1 > > This problem exists only on SMP sparc64 system. On my another sparc64, > with 1 processor, I does not have this problem. > > 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... > > How can I help solve this problem? > 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 Marius