Bug 497584 - ypxfr spits out invalid pointer errors
Summary: ypxfr spits out invalid pointer errors
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: ypserv
Version: 4.7
Hardware: All
OS: Linux
urgent
urgent
Target Milestone: rc
: ---
Assignee: Honza Horak
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks: 598924
TreeView+ depends on / blocked
 
Reported: 2009-04-24 20:45 UTC by Jeff Bastian
Modified: 2018-11-14 20:04 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-14 20:41:21 UTC
Target Upstream Version:
Embargoed:


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

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


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