Bug 497584 - ypxfr spits out invalid pointer errors
ypxfr spits out invalid pointer errors
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: ypserv (Show other bugs)
All Linux
urgent Severity urgent
: rc
: ---
Assigned To: Honza Horak
: ZStream
Depends On:
Blocks: 598924
  Show dependency treegraph
Reported: 2009-04-24 16:45 EDT by Jeff Bastian
Modified: 2012-06-14 16:41 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-06-14 16:41:21 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
patch for ypxfr (5.90 KB, patch)
2009-04-24 16:46 EDT, Jeff Bastian
no flags Details | Diff

  None (edit)
Description Jeff Bastian 2009-04-24 16:45:41 EDT
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):

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 16:46:54 EDT
Created attachment 341247 [details]
patch for ypxfr

Note You need to log in before you can comment on or make changes to this bug.