Bug 5418 - rsync error: error allocating core memory buffers (code 22)
rsync error: error allocating core memory buffers (code 22)
Product: rsync
Classification: Unclassified
Component: core
Other AIX
: P3 major
: ---
Assigned To: Wayne Davison
Rsync QA Contact
Depends on:
  Show dependency treegraph
Reported: 2008-04-25 18:54 UTC by Erik Schnetter
Modified: 2008-07-23 19:27 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Erik Schnetter 2008-04-25 18:54:56 UTC
I am using rsync 3.0.2 (on both ends) to copy a source tree from Mac OS (Intel) to AIX (Power 5).

My command is

rsync --rsync-path=/work/default/eschnett/rsync-3.0.2/bin/rsync --rsh ssh --archive --hard-links --sparse --verbose --progress --partial --stats --compress --exclude _darcs --exclude CVS --exclude doxygen --exclude ".#*" --exclude .DS_Store --exclude .git --exclude .svn --exclude "*~" --delete --delete-excluded CONTRIBUTORS COPYRIGHT Makefile arrangements src lib .gitignore AEIArrangements AEIPhysics bbhfactory bin cactus.config carpet carpet-stable carpet-stable-2 carpet-stable-3 kranc parfiles eschnett@zeke.loni.org:/work/default/eschnett/Calpha

After checking about 8000 files, I receive the error

sending incremental file list
rsync: connection unexpectedly closed (794 bytes received so far) [sender]
rsync error: error allocating core memory buffers (code 22) at io.c(635) [sender=3.0.2]

With two additional --verbose options, the last screen output is

arrangements/AEIDevelopment/BbhIData/src/BbhCollabInitialData/t7600/Nid_gyy_SphereC1.dump is uptodate
send_files(8043, arrangements/AEIDevelopment/BbhIData/src/BbhCollabInitialData/t7600/Nid_gyy_SphereC1.dump)
arrangements/AEIDevelopment/BbhIData/src/BbhCollabInitialData/t7600/Nid_gyy_SphereC10.dump is uptodate
send_files(8044, arrangements/AEIDevelopment/BbhIData/src/BbhCollabInitialData/t7600/Nid_gyy_SphereC10.dump)

Here the transmission hangs.  When I abort with ctrl-C, I receive

^CKilled by signal 2.
rsync error: unexplained error (code 255) at rsync.c(541) [sender=3.0.2]
_exit_cleanup(code=20, file=rsync.c, line=541): about to call exit(255)

This is a show-stopper for using rsync 3.0.1 and 3.0.2 on AIX.  I have no such problems on other platforms which use Linux operating systems and Intel processors.  My current work-around is to fall back to 2.6.2.
Comment 1 Wayne Davison 2008-06-29 22:47:47 UTC
AIX systems are known to have issues with the hard-link code, but no-one has assisted with the debuggin as to why yet.  If anyone can help out, let me know.
Comment 2 Wayne Davison 2008-07-21 02:29:10 UTC
This has been fixed.  See bug 5418 for the patch reference.
Comment 3 Wayne Davison 2008-07-21 02:30:52 UTC
Sorry, I meant to refer to bug 5541.