Subject: bin/25633: New bind-9-3-... dumps core on sparc
To: None <gnats-bugs@gnats.NetBSD.org>
From: Markus W Kilbinger <kilbi@rad.rwth-aachen.de>
List: netbsd-bugs
Date: 05/19/2004 06:33:59
>Number:         25633
>Category:       bin
>Synopsis:       The newly imported bind-9-3-... (named) dumps core on sparc (my ipx)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 19 04:35:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 2.0E
>Organization:
>Environment:
System: NetBSD 2.0E (KILBISUN) #9: Wed May 19 05:31:05 MEST 2004
        kilbi@qie:/usr/src/sys/arch/sparc/compile/KILBISUN
Architecture: sparc
Machine: sparc
>Description:
	I've just (cross: i386 -> sparc) compiled new kernel and
	userland from yesterdays -current sources. Now, as already
	mentioned for the pkgsrc version

		http://mail-index.netbsd.org/port-sparc/2004/01/11/0000.html

	, /usr/sbin/named dumps core on my sparc ipx, now with the
	following gdb backtrace:

	# gdb /usr/sbin/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 "sparc--netbsdelf"...(no debugging symbols found)...
	Core was generated by `named'.
	Program terminated with signal 11, Segmentation fault.
	Reading symbols from /usr/libexec/ld.elf_so...(no debugging symbols found)...
	done.
	Loaded symbols for /usr/libexec/ld.elf_so
	Reading symbols from /usr/lib/libpthread.so.0...(no debugging symbols found)...
	done.
	Loaded symbols for /usr/lib/libpthread.so.0
	Reading symbols from /usr/lib/libc.so.12...(no debugging symbols found)...done.
	Loaded symbols for /usr/lib/libc.so.12
	#0  0x101bc0bc in pthread__lock_ras_end () from /usr/lib/libpthread.so.0
	(gdb) bt
	#0  0x101bc0bc in pthread__lock_ras_end () from /usr/lib/libpthread.so.0
	#1  0x101bb844 in pthread_mutex_lock () from /usr/lib/libpthread.so.0
	#2  0x101bc038 in pthread_once () from /usr/lib/libpthread.so.0
	#3  0x000dba60 in dns_lib_initmsgcat ()
	#4  0x000db868 in dns_time32_fromtext ()
	#5  0x00024d38 in main ()
	#6  0x00012300 in ___start ()
	(gdb) 

	Older (== non pthread?) bind9 versions (from pkgsrc) run fine
	on my ipx.
>How-To-Repeat:
	Just take an actual kernel/userland and try to start
	(/etc/rc.d/) named on it.
>Fix:
	Not known.
>Release-Note:
>Audit-Trail:
>Unformatted: