Bug 497584

Summary: ypxfr spits out invalid pointer errors
Product: Red Hat Enterprise Linux 4 Reporter: Jeff Bastian <jbastian>
Component: ypservAssignee: Honza Horak <hhorak>
Status: CLOSED CURRENTRELEASE QA Contact: qe-baseos-daemons
Severity: urgent Docs Contact:
Priority: urgent    
Version: 4.7CC: borgan, jwest, rvokal, sghosh, tao
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-14 20:41:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 598924    
Attachments:
Description Flags
patch for ypxfr none

Description Jeff Bastian 2009-04-24 20:45:41 UTC
Description of problem:
When trying to build a RHEL 4.7 s390x NIS slave server against a Solaris 10 UltraSPARC NIS master, the 'ypinit -s server' step spits out many errors:

[root@nis-slave ~]# /usr/lib64/yp/ypinit -s nis-master.example.com
We will need a few minutes to copy the data from nis-master.example.com.
Transferring audit_user...
*** glibc detected *** free(): invalid pointer: 0x00000200001a1000 ***
/usr/lib64/yp/ypinit: line 37: 31122 Aborted                 $YPBINDIR/ypxfr -f -h $MASTER -c -d $DOMAIN $map
YPINIT: WARNING: Couldn't exec /usr/lib64/yp/ypxfr -f -h server.example.com -c -d nisarch audit_user

This works fine with RHEL 5.3 s390x NIS slave, so I compared the ypxfr source code in RHEL 4.7 against 5.3 and found there aren't many changes.  I backported those changes and now ypinit works fine.  See the attached patch.


Version-Release number of selected component (if applicable):
ypserv-2.13-19.s390x

How reproducible:
every time

Steps to Reproduce:
1. build a Solaris 10 UltraSPARC NIS master
2. try to build a RHEL 4.7 s390x NIS slave
  
Actual results:
'ypinit -s nis-master.example.com' step fails

Expected results:
ypinit successfully initializes the NIS slave

Additional info:

Comment 1 Jeff Bastian 2009-04-24 20:46:54 UTC
Created attachment 341247 [details]
patch for ypxfr