NetBSD Problem Report #37247

From martin@duskware.de  Tue Oct 30 08:54:01 2007
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 8C68263B935
	for <gnats-bugs@gnats.netbsd.org>; Tue, 30 Oct 2007 08:54:01 +0000 (UTC)
Message-Id: <20071029210500.EC27B63B935@narn.NetBSD.org>
Date: Mon, 29 Oct 2007 21:05:00 +0000 (UTC)
From: djb_netbsd@charter.net
Reply-To: djb_netbsd@charter.net
To: netbsd-bugs-owner@NetBSD.org
Subject: named hangs, will not read /etc/named.conf
X-Send-Pr-Version: www-1.0

>Number:         37247
>Category:       port-cobalt
>Synopsis:       named hangs, will not read /etc/named.conf
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-cobalt-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 30 08:55:00 +0000 2007
>Closed-Date:    Sat Sep 13 12:03:29 +0000 2008
>Last-Modified:  Sat Sep 13 12:03:29 +0000 2008
>Originator:     Dave J. Barnes
>Release:        NetBSD 4.0_RC3
>Organization:
>Environment:
NetBSD swiss 4.0_RC3 NetBSD 4.0_RC3 (DJB-cobalt 10/06/2007 $) #1: Tue Oct 23 10:17:37 CDT 2007  root@XtraThin:/XtraThin/NetBSD/src/usr/src/sys/arch/cobalt/compile/DJB cobalt

>Description:
29-Oct-2007 16:01:10.764 starting BIND 9.4.1-P1 -g
29-Oct-2007 16:01:10.773 found 1 CPU, using 1 worker thread

Should see "loading configuration file from '/etc/named.conf'" next.

named requires kill -9 to stop.

Fails on cobalt only.  Works fine on i386.
>How-To-Repeat:
Run
"named -g"
on a cobalt box.
>Fix:
?

>Release-Note:

>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-cobalt/37247: named hangs, will not read /etc/named.conf
Date: Tue, 30 Oct 2007 12:22:48 +0100

 --W/nzBZO5zC0uMSeA
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline

 Could you try to apply this patch and rebuild named?

 Martin

 --W/nzBZO5zC0uMSeA
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename=patch

 Index: Makefile.inc
 ===================================================================
 RCS file: /cvsroot/src/usr.sbin/bind/Makefile.inc,v
 retrieving revision 1.25.2.2
 diff -u -r1.25.2.2 Makefile.inc
 --- Makefile.inc	17 May 2007 05:57:54 -0000	1.25.2.2
 +++ Makefile.inc	30 Oct 2007 11:22:02 -0000
 @@ -11,7 +11,8 @@
  NAMED_USE_OPENSSL?=no
  .endif

 -.if (${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64")
 +.if (${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64" \
 +	|| ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb" )
  NAMED_USE_PTHREADS?=no
  .else
  NAMED_USE_PTHREADS?=yes

 --W/nzBZO5zC0uMSeA--

From: christos@zoulas.com (Christos Zoulas)
To: gnats-bugs@NetBSD.org, port-cobalt-maintainer@netbsd.org,
	gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,
	djb_netbsd@charter.net
Cc: 
Subject: Re: port-cobalt/37247: named hangs, will not read /etc/named.conf
Date: Tue, 30 Oct 2007 08:12:17 -0400

 On Oct 30, 11:25am, martin@duskware.de (Martin Husemann) wrote:
 -- Subject: Re: port-cobalt/37247: named hangs, will not read /etc/named.conf

 | The following reply was made to PR port-cobalt/37247; it has been noted by GNATS.
 | 
 | From: Martin Husemann <martin@duskware.de>
 | To: gnats-bugs@NetBSD.org
 | Cc: 
 | Subject: Re: port-cobalt/37247: named hangs, will not read /etc/named.conf
 | Date: Tue, 30 Oct 2007 12:22:48 +0100
 | 
 |  --W/nzBZO5zC0uMSeA
 |  Content-Type: text/plain; charset=us-ascii
 |  Content-Disposition: inline
 |  
 |  Could you try to apply this patch and rebuild named?
 |  
 |  Martin

 That would work, but we should really fix pthreads.

 christos

From: "Jeremy C. Reed" <reed@reedmedia.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-cobalt/37247: named hangs, will not read /etc/named.conf
Date: Tue, 30 Oct 2007 08:34:12 -0500 (CDT)

 I don't know if this is related. But on NetBSD/i386 3.1, named will also 
 hang when I try to kill it. The process still exists and can't be killed. 
 After I send the kill to it (TERM), rndc can't communicate with it. Kill 
 -9 works.

 The above happens when I forget to do "rndc stop" to stop it.

   Jeremy C. Reed

From: "Dave J. Barnes" <djb_netbsd@charter.net>
To: gnats-bugs@NetBSD.org
Cc: martin@duskware.de
Subject: Re: port-cobalt/37247: named hangs, will not read /etc/named.conf
Date: Tue, 30 Oct 2007 21:49:02 -0500

 >  
 >  Could you try to apply this patch and rebuild named?
 >  
 >  Martin
 >   

 That fixed it -- thanks!

 (XtraThin:root) /XtraThin/NetBSD/src/usr/src/usr.sbin/bind/named $ls -al 
 named
 -rwxr-xr-x  1 root  wsrc  2416377 Oct 30 21:14 named
 (XtraThin:root) /XtraThin/NetBSD/src/usr/src/usr.sbin/bind/named $ls -al 
 /usr/sbin/named
 -r-xr-xr-x  2 root  wheel  2417033 Oct 20 15:46 /usr/sbin/named

 (XtraThin:root) /XtraThin/NetBSD/src/usr/src/usr.sbin/bind/named $./named -g
 30-Oct-2007 21:36:26.614 starting BIND 9.4.1-P1 -g
 30-Oct-2007 21:36:26.757 loading configuration from '/etc/named.conf'
 30-Oct-2007 21:36:26.802 no IPv6 interfaces found
 30-Oct-2007 21:36:26.807 listening on IPv4 interface tlp0, 10.0.100.121#53
 30-Oct-2007 21:36:26.839 listening on IPv4 interface tlp1, 10.0.0.121#53
 30-Oct-2007 21:36:26.846 listening on IPv4 interface lo0, 127.0.0.1#53

 NetBSD XtraThin 4.0_RC3 NetBSD 4.0_RC3 (DJB-cobalt 10/06/2007 $) #0: Tue 
 Oct 23 01:06:52 CDT 2007  
 root@XtraThin:/XtraThin/NetBSD/src/usr/src/sys/arch/cobalt/compile/DJB 
 cobalt


State-Changed-From-To: open->closed
State-Changed-By: tsutsui@NetBSD.org
State-Changed-When: Sat, 13 Sep 2008 21:03:29 +0900
State-Changed-Why:
pthread support is disabled on both netbsd-4 and netbsd-4-0.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.