Subject: bin/32479: named cores on startup
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <damon@brodiefamily.org>
List: netbsd-bugs
Date: 01/08/2006 16:05:01
>Number:         32479
>Category:       bin
>Synopsis:       named cores on startup
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 08 16:05:00 +0000 2006
>Originator:     Damon Brodie
>Release:        NetBSD 3.99.15
>Organization:
	
>Environment:
	
	
System: NetBSD nomad.brodiefamily.org 3.99.15 NetBSD 3.99.15 (NOMAD) #37: Sat Jan 7 22:34:30 EST 2006 damon@nomad.brodiefamily.org:/usr/src-current/sys/arch/amd64/compile/obj/NOMAD amd64
Architecture: x86_64
Machine: amd64
>Description:

Using sources from yesterday (Jan. 07) I recompiled my kernel and userland.  named started to core on startup.  I added -g to CFLAGS in /etc/mk.conf, and then got this from gdb:

nomad:/etc/namedb# gdb named named.core
GNU gdb 5.3nb1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64--netbsd"...
Core was generated by `named'.
Program terminated with signal 10, Bus error.
Reading symbols from /usr/libexec/ld.elf_so...done.
Loaded symbols for /usr/libexec/ld.elf_so
Reading symbols from /usr/lib/libpthread.so.0...done.
Loaded symbols for /usr/lib/libpthread.so.0
Reading symbols from /usr/lib/libc.so.12...done.
Loaded symbols for /usr/lib/libc.so.12
#0  0x000000020090a0f9 in _setcontext_u () from /usr/lib/libpthread.so.0
(gdb) bt
#0  0x000000020090a0f9 in _setcontext_u () from /usr/lib/libpthread.so.0

This is what I see in /var/log/messages:

Jan  8 10:40:14 nomad named[2880]: starting BIND 9.3.2
Jan  8 10:40:14 nomad named[2880]: found 1 CPU, using 1 worker thread
Jan  8 10:40:14 nomad named[2880]: loading configuration from '/etc/named.conf'
Jan  8 10:40:14 nomad named[2880]: no IPv6 interfaces found
Jan  8 10:40:14 nomad named[2880]: listening on IPv4 interface rtk0, 10.0.0.2#53
Jan  8 10:40:14 nomad named[2880]: listening on IPv4 interface lo0, 127.0.0.1#53


>How-To-Repeat:
	on an amd64, with current sources restart and see that named is not running.
>Fix:
	unknown

>Unformatted: