From nobody@FreeBSD.org  Sat Mar 25 01:07:27 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 56DCB16A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 25 Mar 2006 01:07:27 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 26D3743D45
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 25 Mar 2006 01:07:27 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k2P17O3m005539
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 25 Mar 2006 01:07:24 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k2P17OBK005538;
	Sat, 25 Mar 2006 01:07:24 GMT
	(envelope-from nobody)
Message-Id: <200603250107.k2P17OBK005538@www.freebsd.org>
Date: Sat, 25 Mar 2006 01:07:24 GMT
From: Christopher Sean Hilton <chris@vindaloo.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: rpd.statd conflict with cups over tcp and udp ports 631
X-Send-Pr-Version: www-2.3

>Number:         94920
>Category:       bin
>Synopsis:       [rpc] rpc.statd(8) conflict with cups over tcp and udp ports 631
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    matteo
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 25 01:10:15 GMT 2006
>Closed-Date:    Thu Apr 12 09:11:18 GMT 2007
>Last-Modified:  Thu Apr 12 09:11:18 GMT 2007
>Originator:     Christopher Sean Hilton
>Release:        5.4-STABLE
>Organization:
>Environment:
FreeBSD endaba.vindaloo.com 5.4-STABLE FreeBSD 5.4-STABLE #0: Thu Jun  9 16:25:22 EDT 2005     chris@endaba:/usr/obj/usr/src/sys/ENDABA  i386

>Description:
rpc.statd can grap tcp and udp ports 631 on startup before the cups daemon starts. This would normally only cause a problem with printing at random on the affected machine. However, if the network contains a cups server which sends out broadcasts on udp port 631 that will hose up the rpc.statd daemon and eventually cause poor NFS performance or a hang.

>How-To-Repeat:
I don't know how rpc.statd determine which port it uses. To me it appears random. You will know if you have the problem if cups complains at startup. Something to the effect of "cupsd: Child exited with status 48" Use sockstat -4 | grep 631 to see if rpc.statd (or rpc.lockd perhaps) is on port 631.
>Fix:
Reboot until rpc.statd doesn't grab port 631. A more permanent fix would be to change the code in rpc.statd (or wherever) to avoid using port 631.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: bms 
State-Changed-When: Fri Feb 9 03:53:54 UTC 2007 
State-Changed-Why:  
duplicate of 100969 

http://www.freebsd.org/cgi/query-pr.cgi?pr=94920 
State-Changed-From-To: closed->open 
State-Changed-By: bms 
State-Changed-When: Fri Feb 9 03:56:22 UTC 2007 
State-Changed-Why:  
whoops, re-open; this is rpc.statd not rpc.lockd 

http://www.freebsd.org/cgi/query-pr.cgi?pr=94920 
State-Changed-From-To: open->analyzed 
State-Changed-By: bms 
State-Changed-When: Fri Feb 9 03:57:07 UTC 2007 
State-Changed-Why:  
rpc.statd needs a -p option added to it just like I did for mountd. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=94920 
Responsible-Changed-From-To: freebsd-bugs->bms 
Responsible-Changed-By: bms 
Responsible-Changed-When: Fri Feb 9 04:04:24 UTC 2007 
Responsible-Changed-Why:  
i'll deal with this -- low hanging fruit. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=94920 
Responsible-Changed-From-To: bms->freebsd-net 
Responsible-Changed-By: bms 
Responsible-Changed-When: Sun Mar 4 15:03:40 UTC 2007 
Responsible-Changed-Why:  
Someone else with Copious Free Time can do this -- not a priority for me. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=94920 
Responsible-Changed-From-To: freebsd-net->matteo 
Responsible-Changed-By: matteo 
Responsible-Changed-When: Wed Mar 28 09:53:28 UTC 2007 
Responsible-Changed-Why:  
I'll work on a similar issue for rpc.lockd and I hope to find a solution for rpc.statd too. 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/94920: commit references a PR
Date: Tue,  3 Apr 2007 21:15:10 +0000 (UTC)

 matteo      2007-04-03 21:15:00 UTC
 
   FreeBSD src repository
 
   Modified files:
     usr.sbin/rpc.statd   rpc.statd.8 statd.c 
   Log:
   Add the "-p" option, which allows to specify a port which the daemon
   should bind to.
   
   PR:             bin/94920
   Reviewed by:    alfred@
   MFC after:      1 week
   
   Revision  Changes    Path
   1.14      +8 -1      src/usr.sbin/rpc.statd/rpc.statd.8
   1.14      +111 -8    src/usr.sbin/rpc.statd/statd.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: analyzed->patched 
State-Changed-By: matteo 
State-Changed-When: Tue Apr 3 21:20:06 UTC 2007 
State-Changed-Why:  
A patch was committed to HEAD, I'll MFC it in a week 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/94920: commit references a PR
Date: Thu, 12 Apr 2007 08:03:48 +0000 (UTC)

 matteo      2007-04-12 08:03:40 UTC
 
   FreeBSD src repository
 
   Modified files:        (Branch: RELENG_6)
     usr.sbin/rpc.statd   rpc.statd.8 statd.c 
   Log:
   MFC:
           rpc.statd.8 rev.1.14
           statd.c rev.1.13-1.14
   
   PR:             bin/94920
   
   Revision  Changes    Path
   1.13.2.1  +8 -1      src/usr.sbin/rpc.statd/rpc.statd.8
   1.12.8.1  +111 -9    src/usr.sbin/rpc.statd/statd.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: matteo 
State-Changed-When: Thu Apr 12 09:10:34 UTC 2007 
State-Changed-Why:  
Fix MFC'ed to RELENG_6 

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