From andre.albsmeier@mchp.siemens.de  Sat May 19 10:45:02 2001
Return-Path: <andre.albsmeier@mchp.siemens.de>
Received: from david.siemens.de (david.siemens.de [192.35.17.14])
	by hub.freebsd.org (Postfix) with ESMTP id AEA9837B422
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 19 May 2001 10:45:01 -0700 (PDT)
	(envelope-from andre.albsmeier@mchp.siemens.de)
Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14])
	by david.siemens.de (8.11.0/8.11.0) with ESMTP id f4JHj0527882
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 19 May 2001 19:45:00 +0200 (MET DST)
Received: from curry.mchp.siemens.de (curry.mchp.siemens.de [139.25.42.7])
	by mail1.siemens.de (8.11.0/8.11.0) with ESMTP id f4JHj0d03917
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 19 May 2001 19:45:00 +0200 (MET DST)
Received: (from localhost)
	by curry.mchp.siemens.de (8.11.3/8.11.3) id f4JHixF22151
	for FreeBSD-gnats-submit@freebsd.org; Sat, 19 May 2001 19:44:59 +0200 (CEST)
Message-Id: <200105191744.f4JHixo82799@curry.mchp.siemens.de>
Date: Sat, 19 May 2001 19:44:59 +0200 (CEST)
From: Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: yppush fails when updating two or more slaves
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         27457
>Category:       bin
>Synopsis:       yppush fails when updating two or more slaves
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    jdp
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 19 10:50:01 PDT 2001
>Closed-Date:    Wed Jun 6 21:58:59 PDT 2001
>Last-Modified:  Wed Jun 06 22:00:18 PDT 2001
>Originator:     Andre Albsmeier
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
>Environment:

FreeBSD 4.3-STABLE FreeBSD 4.3-STABLE #56: Tue May 15 09:35:09 CEST 2001

One YP server, two (or more) slaves


>Description:

When updating the NIS databases on the slaves by running yppush
in /var/yp on the server, the clients get updated properly. However,
the calling yppush hangs:

root@server:/var/yp>yppush -vv -h spoolfix -h printfix amd.host 
yppush: initiating transfer: amd.host -> pr (transid = 990293135)
yppush: pr has been called
yppush: checking return status: transaction ID: 990293135
yppush: transfer of map amd.host to server pr failed
yppush: status returned by ypxfr: Master's version not newer
yppush: initiating transfer: amd.host -> spoolfix (transid = 990293136)
yppush: spoolfix has been called
yppush: all jobs dispatched
yppush: spoolfix has not responded
yppush: pr has responded
yppush: 1 transfer still pending

[wait 1 to 2 minutes here]

yppush: timed out
yppush: warning: exiting with transfer to spoolfix (transid = 990293136) still pending


In the logfile of one client we see:
May 19 19:25:43 <daemon.notice> spoolfix ypxfr[4428]: callback failed: RPC: Timed out
May 19 19:26:15 <daemon.notice> spoolfix ypxfr[4429]: callback failed: RPC: Timed out

It seems that somehow the callback of the second slave doesn't
make it through to the server.

The problem already appeared as described in PR# 12496. It then
went away until the recent changes to libexec/rtld-elf/rtld.c
made appear it again.


>How-To-Repeat:

Use the newest FreeBSD 4.3-STABLE sources. Put two slave servers into
ypservers. Run yppush as above (with any map).


>Fix:

The following patch is no fix. It circumvents the problem but
I can't explain why :-)

--- libexec/rtld-elf/rtld.c.ORI	Fri May 18 08:05:01 2001
+++ libexec/rtld-elf/rtld.c	Sat May 19 19:39:04 2001
@@ -386,6 +386,8 @@
 
     dbg("initializing key program variables");
     set_program_var("__progname", argv[0] != NULL ? basename(argv[0]) : "");
+    set_program_var("environ", "dummy");
+    set_program_var("environ", "dummy");
     set_program_var("environ", env);
 
     dbg("initializing thread locks");
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: jdp 
State-Changed-When: Wed Jun 6 14:22:49 PDT 2001 
State-Changed-Why:  
I think this should be fixed by revision 1.13 of 
src/usr.sbin/yppush/yppush_main.c.  Once I get confirmation of that 
and have merged the fix to -stable, I will close this PR. 


Responsible-Changed-From-To: freebsd-bugs->jdp 
Responsible-Changed-By: jdp 
Responsible-Changed-When: Wed Jun 6 14:22:49 PDT 2001 
Responsible-Changed-Why:  
I am working on this problem now.  (Duh.) 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=27457 
State-Changed-From-To: feedback->closed 
State-Changed-By: jdp 
State-Changed-When: Wed Jun 6 21:58:59 PDT 2001 
State-Changed-Why:  
Fixed in src/usr.sbin/yppush/yppush_main.c: 

1.13		-current 
1.11.2.1	-stable 

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