From root@diab.eu.org  Sat Jun  7 02:33:21 2003
Return-Path: <root@diab.eu.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0E65937B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  7 Jun 2003 02:33:21 -0700 (PDT)
Received: from diab.eu.org (sw6.internetdsl.tpnet.pl [80.55.100.6])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 8C29C43F93
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  7 Jun 2003 02:33:18 -0700 (PDT)
	(envelope-from root@diab.eu.org)
Received: by diab.eu.org (Postfix, from userid 0)
	id E7DFF3BD4E; Sat,  7 Jun 2003 11:33:01 +0200 (CEST)
Message-Id: <20030607093301.E7DFF3BD4E@diab.eu.org>
Date: Sat,  7 Jun 2003 11:33:01 +0200 (CEST)
From: Piotr Koper <koper@diab.eu.org>
Reply-To: Piotr Koper <koper@diab.eu.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject:
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         53009
>Category:       bin
>Synopsis:       "ndc restart" segfaults when named is not running
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dougb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 07 02:40:06 PDT 2003
>Closed-Date:    Mon Jun 09 13:37:46 PDT 2003
>Last-Modified:  Mon Jun 09 13:37:46 PDT 2003
>Originator:     Piotr Koper
>Release:        FreeBSD 5.1-BETA i386
>Organization:
>Environment:
System: FreeBSD core.freebsd-lovers.home 5.1-BETA FreeBSD 5.1-BETA #2: Mon May 26 19:26:31 CEST 2003 root@core.freebsd-lovers.home:/usr/src/sys/i386/compile/CORE i386

>Description:

>How-To-Repeat:
8:34 :: root :: ~ $ uname -a
FreeBSD core.freebsd-lovers.home 5.1-BETA FreeBSD 5.1-BETA #2: Mon May 26 19:26:
31 CEST 2003     root@core.freebsd-lovers.home:/usr/src/sys/i386/compile/CORE  i
386
8:34 :: root :: ~ $ /usr/sbin/named -u bind -g bind
8:34 :: root :: ~ $ ps auxww | grep named
bind   539  0.0  3.4  2456 1972  ??  Ss    8:34AM   0:00.01 /usr/sbin/named -u b
ind -g bind
8:34 :: root :: ~ $ ndc stop
8:34 :: root :: ~ $ ps auxww | grep named
root   544  0.0  0.3   296  184  v7  R+    8:34AM   0:00.00 grep named
8:34 :: root :: ~ $ ndc restart
ndc: error: ctl_client: evConnect(fd 3): Connection refused
ndc: error: cannot connect to command channel (/var/run/ndc)
ndc: error: ctl_client: evConnect(fd 3): Connection refused
ndc: error: cannot connect to command channel (/var/run/ndc)
Segmentation fault (core dumped)
8:35 :: root :: ~ $ gdb ndc ndc.core
GNU gdb 5.2.1 (FreeBSD)
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 "i386-undermydesk-freebsd"...
(no debugging symbols found)...
Core was generated by `ndc'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libc.so.5...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libc.so.5
Reading symbols from /usr/libexec/ld-elf.so.1...(no debugging symbols found)...
done.
Loaded symbols for /usr/libexec/ld-elf.so.1
#0  0x08049e3b in getsockname ()
(gdb) bt
#0  0x08049e3b in getsockname ()
#1  0xbfbffbd8 in ?? ()
#2  0x0804a00b in getsockname ()
#3  0x080494c6 in getsockname ()
#4  0x08049145 in getsockname ()
(gdb)
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: ceri 
Responsible-Changed-When: Sat Jun 7 04:12:30 PDT 2003 
Responsible-Changed-Why:  
Reassign misfiled PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=53009 

From: Maxim Konovalov <maxim@macomnet.ru>
To: Piotr Koper <koper@diab.eu.org>
Cc: bug-followup@freebsd.org, dougb@freebsd.org
Subject: Re: bin/53009: "ndc restart" segfaults when named is not running
Date: Mon, 9 Jun 2003 10:10:46 +0400 (MSD)

 Hello,
 
 The bug is already fixed in bind 8.4.1-REL and bind 8.3.6-REL.
 
 -- 
 Maxim Konovalov, maxim@macomnet.ru, maxim@FreeBSD.org
State-Changed-From-To: open->closed 
State-Changed-By: dougb 
State-Changed-When: Mon Jun 9 13:32:43 PDT 2003 
State-Changed-Why:  

I've upgraded the ports to ISC's bug-fix versions, and 
tested ndc locally. This should fix your problem, if it 
doesn't, just reply to this bug report and I'll take 
another look. 


Responsible-Changed-From-To: freebsd-bugs->dougb 
Responsible-Changed-By: dougb 
Responsible-Changed-When: Mon Jun 9 13:32:43 PDT 2003 
Responsible-Changed-Why:  

I'm the bind8/bind84 maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=53009 
>Unformatted:
