From owner-freebsd-current@FreeBSD.ORG Wed Jun 29 10:33:07 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 B3ACD106566B for ; Wed, 29 Jun 2011 10:33:07 +0000 (UTC) (envelope-from matpockuh@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 901C68FC0C for ; Wed, 29 Jun 2011 10:33:07 +0000 (UTC) Received: by pzk27 with SMTP id 27so1007910pzk.13 for ; Wed, 29 Jun 2011 03:33:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=5MXFc4qQMRJk4hd3EVboJA6kAkJKmFY3+1gGeuMXE7Y=; b=xBsUfpfdsGufshJllef2lvYKQhBvc50rKOxP8idSaxWcZt2JA6zAty2GEKasydCXB4 3pvRfuwwrngXKCdDLQ8MWXCy248tA/eDuu3BfLT48MLX2qqf60cH+u7nRJYJimDDxNMC HUQTkkRDQSdL58dAYA3fNgOAmitpG3it2C1JE= MIME-Version: 1.0 Received: by 10.68.52.196 with SMTP id v4mr966418pbo.508.1309343586737; Wed, 29 Jun 2011 03:33:06 -0700 (PDT) Received: by 10.68.56.104 with HTTP; Wed, 29 Jun 2011 03:33:06 -0700 (PDT) In-Reply-To: References: Date: Wed, 29 Jun 2011 14:33:06 +0400 Message-ID: From: KOT MATPOCKuH To: Marius Strobl Content-Type: text/plain; charset=ISO-8859-1 Cc: 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 10:33:07 -0000 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) -- MATPOCKuH