Re: named crashes on assertion in rbtdb.c on sparc64/SMP

From: KOT MATPOCKuH <matpockuh_at_gmail.com>
Date: Wed, 29 Jun 2011 11:41:33 +0400
2011/6/28 Marius Strobl <marius_at_alchemy.franken.de>:

>> 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
Received on Wed Jun 29 2011 - 05:41:34 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:15 UTC