rsync bug?? (rsync fails when -C is used).
Paul Cui
ycui1 at bloomberg.com
Thu Jul 19 21:55:07 GMT 2007
hi, All.
I just compiled the latest rsync (2.6.9). but I'm getting an error when
I use the -C option.
eg:
$ rsync -aCv host1:/home/john/data/ /home/john/data
receiving file list ... ERROR: out of memory in add_rule [sender]
rsync error: error allocating core memory buffers (code 22) at util.c(115) [sender=2.6.9]
rsync: connection unexpectedly closed (8 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(453) [receiver=2.6.9]
and if I remove the -C option. everything is fine. the directory structure is very simple with no sym/hard links. and total number of files in there is about 30. running the command on local file system has no problem (replicating local dir with -C option).
I did truss the remote sshd and see the client connected successfully. forked child sshd which forked again and rsync exec'd:
137: execve("/usr/bin/rsync", 0x0004509C, 0x000450F8) argc = 6
137: argv: rsync --server --sender -vlogDtprC . /home/john/data
137: envp: _=/usr/bin/rsync
Both end of rsync is version 2.6.9. and both system are running solaris 9. binary compiled with Sun's cc (not gcc).
The thing that makes me think that this is a bug in rsync is that I also tried
rsync to another solaris 9 machine which is running rsync 2.5.0. and it works
with no problem (with the -C option).
I goggled around.. and most people who are getting this error was dealing with large number of file/directory.
Any info on this would be helpful.
thanks.
More information about the rsync
mailing list