Subject: BIND for secondary zone dumps core.
To: BSD Current Users <current-users@netbsd.org>
From: Greywolf <greywolf@starwolf.com>
List: current-users
Date: 07/08/2001 12:16:46
Greetings,

Before I send-pr this, I would like a sanity check.

I'm trying to act as a secondary DNS server for a friend of mine, but I
am running into difficulties in that every single time I try to even
initiate a transfer, my named dumps core.

Needless to say, this puts MY name server out of action until such time
as it can be restarted, which is not really acceptable.

I am enclosing my zone file, with addresses (hey, if I'm a trusting
fool, I figure I'm in good company), just because I really really need
the help on this.  I am also enclosing the output from the run.

With the "caressofsteel.net" uncommented as a secondary (slave) zone,
it initializes everything, runs into the secondary stuff, initiates a
zone transfer and then dumps core.

And yes, I am enabled on his end as a secondary server (I can ls his
domain from my box).

His box is also a NetBSD/sparc machine.

What's going wrong here, and why is it dumping core?  I'll be glad to
add someone else as an allow-transfer and allow-query on my side so
that you can be a test secondary and see if it dumps core for you as well.

My system:
NetBSD starwolf.com 1.5W NetBSD 1.5W (STARWOLF) #0: Mon Jun 4 13:45:14 PDT
	2001 greywolf@starwolf.com:/export/src/sys/arch/sparc/compile/STARWOLF
	sparc

Inclusions:	1.  Error output from 'named -d 1 -f'
		2.  /etc/named.conf

--- Error output from named -d 1 -f
starwolf# named -d 1 -f
Debug level 1
Version = named 8.2.3 Sat May 12 02:12:27 CST 2001
	toor@proxima:/usr/obj/usr.sbin/bind/named.sparc
conffile = /etc/named.conf
starting (/etc/named.conf).  named 8.2.3 Sat May 12 02:12:27 CST 2001
	toor@proxima:/usr/obj/usr.sbin/bind/named.sparc
ns_init(/etc/named.conf)
Adding 64 template zones
evSetTimer(ctx 0x105000, func 0x3079c, uap 0x0, due 994622674.434299000, inter 3600.000000000)
evSetTimer(ctx 0x105000, func 0x49d34, uap 0x0, due 994622674.436436000, inter 3600.000000000)
evSetTimer(ctx 0x105000, func 0x44658, uap 0x0, due 994622674.438120000, inter 3600.000000000)
evSetTimer(ctx 0x105000, func 0x30824, uap 0x0, due 994622674.439734000, inter 3600.000000000)
update_zone_info('.', 3)
source = root.cache
reloading hint zone
db_load(root.cache, , 1, Nil, Normal)
purge_zone(,1)
hint zone "" (IN) loaded (serial 0)
zone[1] type 3: '.' z_time 0, z_refresh 0
update_zone_info('localhost', 1)
source = localhost
purge_zone(localhost,1)
reloading zone
db_load(localhost, localhost, 2, Nil, Normal)
purge_zone(localhost,1)
master zone "localhost" (IN) loaded (serial 2001070700)
zone[2] type 1: 'localhost' z_time 0, z_refresh 0
update_zone_info('0.0.127.in-addr.arpa', 1)
source = localhost.rev
purge_zone(0.0.127.in-addr.arpa,1)
reloading zone
db_load(localhost.rev, 0.0.127.in-addr.arpa, 3, Nil, Normal)
purge_zone(0.0.127.in-addr.arpa,1)
master zone "0.0.127.in-addr.arpa" (IN) loaded (serial 2001070700)
zone[3] type 1: '0.0.127.in-addr.arpa' z_time 0, z_refresh 0
update_zone_info('starwolf.com', 1)
source = starwolf.com
purge_zone(starwolf.com,1)
reloading zone
db_load(starwolf.com, starwolf.com, 4, Nil, Normal)
purge_zone(starwolf.com,1)
master zone "starwolf.com" (IN) loaded (serial 2001061300)
zone[4] type 1: 'starwolf.com' z_time 0, z_refresh 0
update_zone_info('74.184.208.in-addr.arpa', 5)
clean_cache_from(74.184.208.in-addr.arpa)
zone[5] type 5: '74.184.208.in-addr.arpa' z_time 0, z_refresh 0
update_zone_info('0/29.74.184.208.in-addr.arpa', 1)
source = 208.184.74-29.rev
purge_zone(0/29.74.184.208.in-addr.arpa,1)
reloading zone
db_load(208.184.74-29.rev, 0/29.74.184.208.in-addr.arpa, 6, Nil, Normal)
purge_zone(0/29.74.184.208.in-addr.arpa,1)
master zone "0/29.74.184.208.in-addr.arpa" (IN) loaded (serial 2001070700)
zone[6] type 1: '0/29.74.184.208.in-addr.arpa' z_time 0, z_refresh 0
update_zone_info('caressofsteel.net', 2)
addrcnt = 1
evSetTimer(ctx 0x105000, func 0x302e0, uap 0xc45c4, due 994619074.000000000, inter 0.000000000)
next maintenance for zone 'caressofsteel.net' in 0 sec
zone[7] type 2: 'caressofsteel.net' z_time 994619074, z_refresh 600
evSelectFD(ctx 0x105000, fd 5, mask 0x1, func 0x64db0, uap 0xd42f4)
update_pid_file()
getnetconf(generation 994619074)
getnetconf: considering le0 [208.184.74.2]
ifp->addr [208.184.74.2].53 d_dfd 20
evSelectFD(ctx 0x105000, fd 20, mask 0x1, func 0x2c428, uap 0xcd5a0)
evSelectFD(ctx 0x105000, fd 21, mask 0x1, func 0x64db0, uap 0xd4214)
listening on [208.184.74.2].53 (le0)
getnetconf: considering lo0 [127.0.0.1]
ifp->addr [127.0.0.1].53 d_dfd 22
evSelectFD(ctx 0x105000, fd 22, mask 0x1, func 0x2c428, uap 0xcd60c)
evSelectFD(ctx 0x105000, fd 23, mask 0x1, func 0x64db0, uap 0xd4310)
listening on [127.0.0.1].53 (lo0)
fwd ds 4 addr [0.0.0.0].64835
Forwarding source address is [0.0.0.0].64835
evSelectFD(ctx 0x105000, fd 4, mask 0x1, func 0x2c428, uap 0x0)
evSetTimer(ctx 0x105000, func 0x562fc, uap 0xcf408, due 994619084.935416000, inter 0.000000000)
evSetTimer(ctx 0x105000, func 0x562fc, uap 0xcf1c8, due 994619083.937601000, inter 0.000000000)
evSetTimer(ctx 0x105000, func 0x562fc, uap 0xcf258, due 994619091.939775000, inter 0.000000000)
evSetTimer(ctx 0x105000, func 0x562fc, uap 0xcf300, due 994619101.962680000, inter 0.000000000)
exit ns_init()
Ready to answer queries.
prime_cache: priming = 0, root = 0
evSetTimer(ctx 0x105000, func 0x2897c, uap 0x0, due 994619079.000000000, inter 0.000000000)
sysquery: send -> [208.184.74.3].53 dfd=4 nsid=1679 id=0 retry=994619079
do_zone_maint for zone caressofsteel.net (class IN)
zone_maint('caressofsteel.net'); now 994619075
qserial_query(caressofsteel.net)
evSetTimer(ctx 0x105000, func 0x2897c, uap 0x0, due 994619079.000000000, inter 0.000000000)
sysquery: send -> [208.147.76.111].53 dfd=4 nsid=33560 id=0 retry=994619079
qserial_query(caressofsteel.net) QUEUED
evSetTimer(ctx 0x105000, func 0x302e0, uap 0xc45c4, due 994619499.000000000, inter 0.000000000)
next maintenance for zone 'caressofsteel.net' in 424 sec
datagram from [208.147.76.111].53, fd 4, len 203
Segmentation fault - core dumped
starwolf# 
#--- end Error Output from 'named -d 1 -f'

--- /etc/named.conf ---
# @(#)named.boot 5.1 (Berkeley) 6/30/90
# options
options {
	directory "/etc/named";
	check-names master warn;
	notify yes;

	forwarders {
		64.139.39.222;	# cybernetix
		148.59.19.11;	# msen
		216.200.176.4;	# ns1@megapath
		208.184.74.3;	# starjumper
		# Add invisible.yi.org here
	};

	allow-transfer {
		64.139.39.222;	# cybernetix
#		148.59.19.11;	# msen
		216.200.176.4;	# ns1@megapath
		208.184.74.0/29;# starwolf-net
		127.1;		# localhost
		# Add invisible.yi.org here
	};		
};
# logging options
logging {
	category lame-servers { null; };
	category cname { null; };
};
# Root Zone cache (hints)
zone "." { 
	type hint; 
	file "root.cache";
};

# basic
zone "localhost" in { 
	type master; file "localhost";
};
zone "0.0.127.in-addr.arpa" in {
	type master; file "localhost.rev";
};

# starwolf
zone "starwolf.com" in {
	type master; file "starwolf.com";
};

# reverse lookups
zone "74.184.208.in-addr.arpa" in {
	type forward;
	forward only;
	forwarders {
		216.200.176.4;
		216.34.237.2;
	};
}; 

zone "0/29.74.184.208.in-addr.arpa" in {
	type master;
	file "208.184.74-29.rev";
};

# Secondary zones
# Ghostrider - caressofsteel.net

/* zone "caressofsteel.net" in {
	type slave;
	file "caressofsteel.net";
	ixfr-base "caressofsteel.net.ixfr";
	masters {
		208.147.76.111;
	};
	transfer-source 208.147.76.111;
	allow-update {
		208.147.76.111;
	};
	allow-transfer {
		127.0.0.1;
		208.184.74.2;
		208.147.76.111;
	};
	allow-query {
		any;
	};
}; */

#zone "110-114.76.147.208.in-addr.arpa" {
#	type slave;
#	masters { 
#		208.147.76.111;
#	};
#	file "208.147.76.110-114.sec";
#};
#---end /etc/named.conf---


				--*greywolf;
--
NetBSD: Scalability Does Matter.