From owner-freebsd-current@FreeBSD.ORG Wed Jun 29 07:41:34 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 432EF106564A for ; Wed, 29 Jun 2011 07:41:34 +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 226B28FC13 for ; Wed, 29 Jun 2011 07:41:34 +0000 (UTC) Received: by pzk27 with SMTP id 27so894763pzk.13 for ; Wed, 29 Jun 2011 00:41:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=i05um+bVq1PuU8Vj2DUXvjEYMYIYoy2B/i7iPbkJKps=; b=VtG39qh+Qx6y56eexiMF+3HR8ZRaqENm2OUaftf+hIATW2vgM+78dQoz8OC5MPrML9 tyS+OOpEhhH1VTmzM1ep8ID3XcwhWyTBYFaABpFiJ1FSR4nX7Wnnv4eCXAtBEHtokWk7 IIV5QZkMiskP4JEZpNBgBT2b5BELPfHUgAJTg= MIME-Version: 1.0 Received: by 10.68.41.165 with SMTP id g5mr759334pbl.106.1309333293661; Wed, 29 Jun 2011 00:41:33 -0700 (PDT) Received: by 10.68.56.104 with HTTP; Wed, 29 Jun 2011 00:41:33 -0700 (PDT) Date: Wed, 29 Jun 2011 11:41:33 +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 07:41:34 -0000 2011/6/28 Marius Strobl : >> 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 Oh, Marius, You are my savior... I ran named with your patch and and watching him. I think this should be sufficient: cd /usr/src/lib/bind/dns make clean make cd /usr/src/usr.sbin/named make clean make make install (and named's restart) -- MATPOCKuH