From barry@Agouron.COM Tue Mar  2 07:27:37 1999
Return-Path: <barry@Agouron.COM>
Received: from tbone.agouron.com (tbone.agouron.com [198.182.177.3])
	by hub.freebsd.org (Postfix) with ESMTP id 0A4BE15186
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  2 Mar 1999 07:26:04 -0800 (PST)
	(envelope-from barry@Agouron.COM)
Received: (from gproxy@localhost)
	by tbone.agouron.com (8.9.1a/8.8.7) id HAA19922
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 2 Mar 1999 07:25:47 -0800 (PST)
Received: from dns5.agouron.com(10.0.7.206)
 via SMTP by hub.FreeBSD.ORG, id smtpdAAAa004rB; Tue Mar  2 07:25:44 1999
Received: (from root@localhost)
	by dns5.agouron.com (8.8.8/8.8.8) id HAA11430;
	Tue, 2 Mar 1999 07:25:40 -0800 (PST)
	(envelope-from barry)
Message-Id: <199903021525.HAA11430@dns5.agouron.com>
Date: Tue, 2 Mar 1999 07:25:40 -0800 (PST)
From: barry@lustig.com
Sender: barry@Agouron.COM
Reply-To: barry@lustig.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: Failures in ypserv
X-Send-Pr-Version: 3.2

>Number:         10353
>Category:       bin
>Synopsis:       ypserv gets segmentation violation
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    jon
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar  2 07:30:01 PST 1999
>Closed-Date:    Wed Oct 05 05:42:01 GMT 2005
>Last-Modified:  Wed Oct 05 05:42:01 GMT 2005
>Originator:     Barry Lustig
>Release:        FreeBSD 2.2.8-STABLE i386
>Organization:
Barry Lustig & Associates, Inc.
>Environment:
System is acting as a ypserver in a mixed environment of Solaris, IRIX, AIX, and FreeBSD systems. 

>Description:
ypserv is continually core dumping with a segmentation violation.  xprt is
NULL.  I've added the code from current to check whether xprt is NULL, but 
am still running into segv's at the same point.

dns5(14)# gdb /usr/sbin/ypserv-d /ypserv-d.core
Core was generated by `ypserv-d'.
Program terminated with signal 11, Segmentation fault.
#0  0x8be58955 in ?? ()
(gdb) bt
#0  0x8be58955 in ?? ()
#1  0x7972 in svc_getreqset (readfds=0xefbfd940)
    at /usr/src/lib/libc/../libc/rpc/svc.c:435
#2  0x4e31 in yp_svc_run () at /usr/src/usr.sbin/ypserv/yp_main.c:145
#3  0x53e0 in main (argc=1, argv=0xefbfd9b8)
    at /usr/src/usr.sbin/ypserv/yp_main.c:335
(gdb) up
#1  0x7972 in svc_getreqset (readfds=0xefbfd940)
    at /usr/src/lib/libc/../libc/rpc/svc.c:435
435                             if (SVC_RECV(xprt, &msg)) {

ypserv's forked children do not always exit.


>How-To-Repeat:

	Run ypserv.

>Fix:
	
	


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: mikeh 
State-Changed-When: Thu Jun 14 21:07:28 PDT 2001 
State-Changed-Why:  
Is this still a problem with 4-stable? 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=10353 
State-Changed-From-To: feedback->suspended 
State-Changed-By: mikeh 
State-Changed-When: Tue Jun 26 16:22:08 PDT 2001 
State-Changed-Why:  
Submitter is unable to test latest version, however I can't find if 
this has ever been fixed. Put into suspended mode until I or someone 
else can track this down. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=10353 
Responsible-Changed-From-To: freebsd-bugs->mikeh 
Responsible-Changed-By: mikeh 
Responsible-Changed-When: Tue Jun 26 16:24:24 PDT 2001 
Responsible-Changed-Why:  
Might as well take it while I'm here. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=10353 
Responsible-Changed-From-To: mikeh->freebsd-bugs 
Responsible-Changed-By: mikeh 
Responsible-Changed-When: Wed Dec 12 17:54:12 PST 2001 
Responsible-Changed-Why:  
I haven't been able to look at this since the time I've taken, and don't have the resources to reproduce it. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=10353 
State-Changed-From-To: suspended->open 
State-Changed-By: jon 
State-Changed-When: Fri Jul 19 06:59:25 PDT 2002 
State-Changed-Why:  
been trying very hard to track down this bug for a while now, might as well take it officially... 


Responsible-Changed-From-To: freebsd-bugs->jon 
Responsible-Changed-By: jon 
Responsible-Changed-When: Fri Jul 19 06:59:25 PDT 2002 
Responsible-Changed-Why:  
been trying very hard to track down this bug for a while now, might as well take it officially... 

http://www.freebsd.org/cgi/query-pr.cgi?pr=10353 
State-Changed-From-To: open->closed 
State-Changed-By: rodrigc 
State-Changed-When: Wed Oct 5 05:36:50 GMT 2005 
State-Changed-Why:  
The code in libc/rpc has been refactored since this original 
PR, and doesn't seem to be reproduced in -CURRENT. 

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