From owner-freebsd-current@FreeBSD.ORG Fri Jul 8 19:17:21 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 5019F106566C; Fri, 8 Jul 2011 19:17:21 +0000 (UTC) (envelope-from matpockuh@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1BB638FC08; Fri, 8 Jul 2011 19:17:20 +0000 (UTC) Received: by pvg11 with SMTP id 11so1765507pvg.13 for ; Fri, 08 Jul 2011 12:17:20 -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:content-transfer-encoding; bh=WJ8CVFcRnzIQFy0Kb2HlVtdmczfy8P8+nchWGgsywas=; b=shyhP5+UlhDrqqyRGLNRnBjA7od9yL09nkP+5V6Rkx07c/HIoO6JcDUL2VtmP0Ejr6 Xng/X9zxh+uuFHr2chcD+ymUpixpbq3QOExNHIxG9yy0CGwqFxxf07Vm7eE5MZdSMBd/ JX47hQ5V7lHpq2swxMMcXEK3/m0ZseFWqbiUM= MIME-Version: 1.0 Received: by 10.68.41.167 with SMTP id g7mr3284561pbl.173.1310152640279; Fri, 08 Jul 2011 12:17:20 -0700 (PDT) Received: by 10.68.62.97 with HTTP; Fri, 8 Jul 2011 12:17:20 -0700 (PDT) In-Reply-To: <20110708181102.GA95673@alchemy.franken.de> References: <20110629134140.GF14797@alchemy.franken.de> <4E0B8F25.7090107@FreeBSD.org> <20110707100446.GJ14797@alchemy.franken.de> <20110707154958.GK14797@alchemy.franken.de> <20110708181102.GA95673@alchemy.franken.de> Date: Fri, 8 Jul 2011 23:17:20 +0400 Message-ID: From: KOT MATPOCKuH To: Marius Strobl Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Doug Barton , 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: Fri, 08 Jul 2011 19:17:21 -0000 2011/7/8 Marius Strobl : > Please try the following: > a) Instead of the base BIND use the dns/bind96 port. The native build > =A0 of the latter defaults to not using the ISC atomic implementation > =A0 on sparc64 (and arm) and should properly enable the alternative. I > =A0 can at least start named from bind96-9.6.3.1.ESV.R4.3 with the defaul= t > =A0 configuration on -CURRENT without problems. dns/bind96? Why not bind98? As I see dns/bind98 configures without atomic swap operations. I will try to use dns/bind98 at first :) > b) Revert the above patch and try the base bind with the following > =A0 (third) patch: > =A0 http://people.freebsd.org/~marius/sparc64_isc_atomic.h.diff2 > =A0 That one adds the memory barriers required for reference counting > =A0 albeit in a sledgehammer-like fashion as the ISC atomic API doesn't > =A0 allow to distinguish between acquire and release semantics. Hmmm... With this patch build fails: root@sunrise:/usr/src/lib/bind/dns# make cc -O2 -pipe -DVERSION=3D'"9.6.-ESV-R4-P3"' -DHAVE_CONFIG_H -D_REENTRANT -D_THREAD_SAFE -DLIBINTERFACE=3D59 -DLIBREVISION=3D5 -DLIBAGE=3D1 -DOPENSSL -DUSE_MD5 -DWORDS_BIGENDIAN -DNS_LOCALSTATEDIR=3D'"/var"' -DNS_SYSCONFDIR=3D'"/etc/namedb"' -DNAMED_CONFFILE=3D'"/etc/namedb/named.conf"' -DRNDC_CONFFILE=3D'"/etc/namedb/rndc.conf"' -DRNDC_KEYFILE=3D'"/etc/namedb/rndc.key"' -I/usr/src/lib/bind/dns/.. -I/usr/src/lib/bind/dns/../../../contrib/bind9/lib/bind9/include -I/usr/src/lib/bind/dns/../../../contrib/bind9/lib/dns/include/dst -I/usr/src/lib/bind/dns/../../../contrib/bind9/lib/dns/include -I/usr/src/lib/bind/dns/../dns -I/usr/src/lib/bind/dns/../../../contrib/bind9/lib/isccc/include -I/usr/src/lib/bind/dns/../../../contrib/bind9/lib/isccfg/include -I/usr/src/lib/bind/dns/../../../contrib/bind9/lib/isc/unix/include -I/usr/src/lib/bind/dns/../../../contrib/bind9/lib/isc/pthreads/include -I/usr/src/lib/bind/dns/../../../contrib/bind9/lib/isc/include -I/usr/src/lib/bind/dns/../isc -I/usr/src/lib/bind/dns/../../../contrib/bind9/lib/lwres/unix/include -I/usr/src/lib/bind/dns/../../../contrib/bind9/lib/lwres/include -I/usr/src/lib/bind/dns/../lwres -I/usr/src/lib/bind/dns/../../../contrib/bind9/lib/dns/include/dst -I/usr/src/lib/bind/dns/../../../contrib/bind9/lib/dns/include -I/usr/src/lib/bind/dns/../../../contrib/bind9/lib/dns -I/usr/src/lib/bind/dns -I/usr/src/lib/bind/dns/../../../contrib/bind9/lib/isc/sparc64/include -std=3Dgnu99 -c /usr/src/lib/bind/dns/../../../contrib/bind9/lib/dns/acach= e.c {standard input}: Assembler messages: {standard input}:13: Error: Illegal operands: invalid membar mask name {standard input}:2180: Error: Illegal operands: invalid membar mask name *** Error code 1 > Unlikely, the crash caused by the assertion in _malloc_thread_cleanup() > was solved with r223369. Thanks you anyway! --=20 MATPOCKuH