From nobody@FreeBSD.org  Thu Mar 16 06:26:50 2000
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21])
	by hub.freebsd.org (Postfix) with ESMTP id 0A4F537BA01
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 16 Mar 2000 06:26:50 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.9.3/8.9.2) id GAA09650;
	Thu, 16 Mar 2000 06:26:49 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Message-Id: <200003161426.GAA09650@freefall.freebsd.org>
Date: Thu, 16 Mar 2000 06:26:49 -0800 (PST)
From: sperber@informatik.uni-tuebingen.de
Sender: nobody@FreeBSD.org
To: freebsd-gnats-submit@FreeBSD.org
Subject: nis in /etc/host.conf breaks network programs
X-Send-Pr-Version: www-1.0

>Number:         17406
>Category:       conf
>Synopsis:       nis in /etc/host.conf breaks network programs
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 16 06:30:01 PST 2000
>Closed-Date:    Sat Jul 21 17:40:04 PDT 2001
>Last-Modified:  Sat Jul 21 17:40:34 PDT 2001
>Originator:     Mike Sperber
>Release:        4.0-RELEASE/i386
>Organization:
University of Tbingen
>Environment:
FreeBSD sams.informatik.uni-tuebingen.de 4.0-RELEASE FreeBSD 4.0-RELEASE #0: Wed Mar 15 02:16:55 GMT 2000     jkh@monster.cdrom.com:/usr/src/sys/compile/GENERIC  i386

>Description:
Putting nis anywhere in /etc/host.conf makes basically every network
program (like ftp or telnet) segfault upon startup.
>How-To-Repeat:
Put nis in /etc/host.conf, do ftp ftp.freebsd.org.
>Fix:


>Release-Note:
>Audit-Trail:

From: Sheldon Hearn <sheldonh@uunet.co.za>
To: sperber@informatik.uni-tuebingen.de
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: conf/17406: nis in /etc/host.conf breaks network programs 
Date: Thu, 16 Mar 2000 16:48:05 +0200

 On Thu, 16 Mar 2000 06:26:49 PST, sperber@informatik.uni-tuebingen.de wrote:
 
 > Putting nis anywhere in /etc/host.conf makes basically every network
 > program (like ftp or telnet) segfault upon startup.
 
 Do you have nisdomain set in /etc/rc.conf?
 
 Is nis_client_enable and / or nis_server_enable set to YES in
 /etc/rc.conf ?
 
 Ciao,
 Sheldon.
 

From: sperber@informatik.uni-tuebingen.de (Michael Sperber [Mr. Preprocessor])
To: Sheldon Hearn <sheldonh@uunet.co.za>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: conf/17406: nis in /etc/host.conf breaks network programs
Date: 16 Mar 2000 15:59:30 +0100

 >>>>> "Sheldon" == Sheldon Hearn <sheldonh@uunet.co.za> writes:
 
 Sheldon> On Thu, 16 Mar 2000 06:26:49 PST, sperber@informatik.uni-tuebingen.de wrote:
 
 >> Putting nis anywhere in /etc/host.conf makes basically every network
 >> program (like ftp or telnet) segfault upon startup.
 
 Sheldon> Do you have nisdomain set in /etc/rc.conf?
 
 Sheldon> Is nis_client_enable and / or nis_server_enable set to YES in
 Sheldon> /etc/rc.conf ?
 
 Yes on both counts:
 
 nisdomainname="wsi"
 nis_client_enable="YES"
 
 The configuration is the same as on our boxes still running
 3.2-RELEASE, where everything works fine.
 
 -- 
 Cheers =8-} Mike
 Friede, Vlkerverstndigung und berhaupt blabla
 

From: Yoshinobu Inoue <shin@nd.net.fujitsu.co.jp>
To: sperber@informatik.uni-tuebingen.de
Cc: freebsd-gnats-submit@FreeBSD.ORG, sheldonh@uunet.co.za
Subject: Re: conf/17406: nis in /etc/host.conf breaks network programs
Date: Fri, 17 Mar 2000 00:12:24 +0900

 > >Description:
 > Putting nis anywhere in /etc/host.conf makes basically every network
 > program (like ftp or telnet) segfault upon startup.
 > >How-To-Repeat:
 > Put nis in /etc/host.conf, do ftp ftp.freebsd.org.
 > >Fix:
 
 I confirmed that the problem also happens in my environment,
 and the attached patch fixed it in my environment.  Could you
 please try this patch, and try ftp or telnet again after
 rebuilded and reinstalled src/lib/libc?
 
 Thanks,
 Yoshinobu Inoue
 
 Index: name6.c
 ===================================================================
 RCS file: /home/ncvs/src/lib/libc/net/name6.c,v
 retrieving revision 1.6
 diff -u -r1.6 name6.c
 --- name6.c	2000/03/09 22:52:30	1.6
 +++ name6.c	2000/03/16 15:08:32
 @@ -840,7 +840,7 @@
  static struct hostent *
  _nis_ghbyname(const char *name, int af, int *errp)
  {
 -	struct hostent *hp;
 +	struct hostent *hp = NULL;
  
 	if (af == AF_INET) {
 		hp = _gethostbynisname(name, af);
 

From: Sheldon Hearn <sheldonh@uunet.co.za>
To: Yoshinobu Inoue <shin@nd.net.fujitsu.co.jp>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: conf/17406: nis in /etc/host.conf breaks network programs 
Date: Thu, 16 Mar 2000 18:41:28 +0200

 On Fri, 17 Mar 2000 01:39:12 +0900, Yoshinobu Inoue wrote:
 
 > Woops, this seems to be already fixed in name6.c 1.6 to 1.7
 > fix.
 
 That probably needs to be merged to RELENG_4.  Then this PR can be
 closed.  Do you agree?
 
 Ciao,
 Sheldon.
 

From: Yoshinobu Inoue <shin@nd.net.fujitsu.co.jp>
To: sheldonh@uunet.co.za
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: conf/17406: nis in /etc/host.conf breaks network programs 
Date: Fri, 17 Mar 2000 01:51:50 +0900

 > > Woops, this seems to be already fixed in name6.c 1.6 to 1.7
 > > fix.
 > 
 > That probably needs to be merged to RELENG_4.  Then this PR can be
 > closed.  Do you agree?
 
 Yes of course, and it seems to be already merged to RELENG_4.
 
 Thanks,
 
 Yoshinobu Inoue
 

From: Sheldon Hearn <sheldonh@uunet.co.za>
To: Yoshinobu Inoue <shin@nd.net.fujitsu.co.jp>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: conf/17406: nis in /etc/host.conf breaks network programs 
Date: Thu, 16 Mar 2000 19:02:02 +0200

 On Fri, 17 Mar 2000 01:51:50 +0900, Yoshinobu Inoue wrote:
 
 > Yes of course, and it seems to be already merged to RELENG_4.
 
 Okay.  Do you think this warrants an ERRATA.TXT entry?
 
 Ciao,
 Sheldon.
 

From: Yoshinobu Inoue <shin@nd.net.fujitsu.co.jp>
To: sheldonh@uunet.co.za
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: conf/17406: nis in /etc/host.conf breaks network programs 
Date: Fri, 17 Mar 2000 02:19:49 +0900

 > On Fri, 17 Mar 2000 01:51:50 +0900, Yoshinobu Inoue wrote:
 > 
 > > Yes of course, and it seems to be already merged to RELENG_4.
 > 
 > Okay.  Do you think this warrants an ERRATA.TXT entry?
 
 I think so (though I haven't ever written one, and don't know
 exact rule for it).
 
 Have anyone already started writing one? If not, may I try
 one?
 
 Yoshinobu Inoue
 

From: Sheldon Hearn <sheldonh@uunet.co.za>
To: Yoshinobu Inoue <shin@nd.net.fujitsu.co.jp>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: conf/17406: nis in /etc/host.conf breaks network programs 
Date: Fri, 17 Mar 2000 10:43:09 +0200

 On Fri, 17 Mar 2000 02:19:49 +0900, Yoshinobu Inoue wrote:
 
 > Have anyone already started writing one? If not, may I try
 > one?
 
 I haven't and you're welcome to.  Run it by me if you like.
 
 Ciao,
 Sheldon.
 

From: sperber@informatik.uni-tuebingen.de (Michael Sperber [Mr. Preprocessor])
To: Yoshinobu Inoue <shin@nd.net.fujitsu.co.jp>
Cc: freebsd-gnats-submit@freebsd.org, sheldonh@uunet.co.za
Subject: Re: conf/17406: nis in /etc/host.conf breaks network programs
Date: 19 Mar 2000 12:59:23 +0100

 >>>>> "YI" == Yoshinobu Inoue <shin@nd.net.fujitsu.co.jp> writes:
 
 >> >Description:
 >> Putting nis anywhere in /etc/host.conf makes basically every network
 >> program (like ftp or telnet) segfault upon startup.
 >> >How-To-Repeat:
 >> Put nis in /etc/host.conf, do ftp ftp.freebsd.org.
 >> >Fix:
 
 YI> I confirmed that the problem also happens in my environment,
 YI> and the attached patch fixed it in my environment.  Could you
 YI> please try this patch, and try ftp or telnet again after
 YI> rebuilded and reinstalled src/lib/libc?
 
 YI> Thanks,
 YI> Yoshinobu Inoue
 
 YI> Index: name6.c
 YI> ===================================================================
 YI> RCS file: /home/ncvs/src/lib/libc/net/name6.c,v
 YI> retrieving revision 1.6
 YI> diff -u -r1.6 name6.c
 YI> --- name6.c	2000/03/09 22:52:30	1.6
 YI> +++ name6.c	2000/03/16 15:08:32
 YI> @@ -840,7 +840,7 @@
 YI>  static struct hostent *
 YI>  _nis_ghbyname(const char *name, int af, int *errp)
 YI>  {
 YI> -	struct hostent *hp;
 YI> +	struct hostent *hp = NULL;
  
 YI> 	if (af == AF_INET) {
 YI> 		hp = _gethostbynisname(name, af);
 
 That fixes it, indeed.
 
 Thanks!
 
 -- 
 Cheers =8-} Mike
 Friede, Vlkerverstndigung und berhaupt blabla
 
State-Changed-From-To: open->closed 
State-Changed-By: mike 
State-Changed-When: Sat Jul 21 17:40:04 PDT 2001 
State-Changed-Why:  

As per the Audit-Trail, this problem has been solved. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=17406 
>Unformatted:
