From martijn@smartie.xs4all.nl  Mon Nov 18 14:53:38 2002
Return-Path: <martijn@smartie.xs4all.nl>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id DE46F37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 18 Nov 2002 14:53:38 -0800 (PST)
Received: from smartie.xs4all.nl (smartie.xs4all.nl [213.84.1.157])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E13B543E42
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 18 Nov 2002 14:53:37 -0800 (PST)
	(envelope-from martijn@smartie.xs4all.nl)
Received: from obelix.in-10.sillywalks.org (martijn@localhost.sillywalks.org [127.0.0.1])
	by smartie.xs4all.nl (8.12.6/8.12.6) with ESMTP id gAIMraE0099390
	(version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 18 Nov 2002 23:53:36 +0100 (CET)
	(envelope-from martijn@obelix.in-10.sillywalks.org)
Received: (from martijn@localhost)
	by obelix.in-10.sillywalks.org (8.12.6/8.12.6/Submit) id gAIMrZfO099389;
	Mon, 18 Nov 2002 23:53:35 +0100 (CET)
Message-Id: <200211182253.gAIMrZfO099389@obelix.in-10.sillywalks.org>
Date: Mon, 18 Nov 2002 23:53:35 +0100 (CET)
From: Martijn Pronk <martijn@smartie.xs4all.nl>
Reply-To: Martijn Pronk <martijn@smartie.xs4all.nl>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: rpc.lockd silently dies when rpc.statd is unavailable
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         45461
>Category:       bin
>Synopsis:       rpc.lockd silently dies when rpc.statd is unavailable
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 18 15:00:03 PST 2002
>Closed-Date:    Thu Apr 24 09:45:40 CDT 2003
>Last-Modified:  Thu Apr 24 09:45:40 CDT 2003
>Originator:     Martijn Pronk
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD boekje 5.0-CURRENT FreeBSD 5.0-CURRENT #13: Fri Nov 15 03:55:11 
CET 2002 martijn@boekje:/home/obj/home/src/sys/BOEKJE i386

>Description:
	While trying to do some testing with lockd, on a machine
        that normally does not run lockd + statd, I had some trouble
        testing locking over NFS. I could start rpc.lockd, but it 
        immeadiately stops running. After some retries and manual page
        reading I started looking at the code. The code registers some
        rpc ports, does a fork and then tries to connect to the local
        rpc.statd. If it can't connect to statd it exits whithout logging
        anything. 
        The manpage does mention that rpc.lockd is commonly
        used in conjunction with rpc.statd, but not that it's absolutely
        required.
        If rpc.lockd is enabled from rc.conf this problem is not visible,
        the rc scripts do the dependancies correctly.
>How-To-Repeat:
	Start rpc.lockd while rpc.statd is not running.
>Fix:
	One of the following options:
        1. Document the current behaviour in the manualpage
        2. Let the program shout loudly about the missing rpc.statd
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ghelmer 
State-Changed-When: Thu Apr 24 09:44:28 CDT 2003 
State-Changed-Why:  
Fix (2) implemented - error messages were going to /dev/null, and 
now they are logged. 

Thanks! 

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