pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: OS X default rsync doesn't start transfer with NetBSD pkgsrc rsync
On 24/12/2012, at 12:44 PM, Thomas Klausner wrote:
> Hi!
>
> I have trouble transferring data with rsync between an OSX (10.8.2)
> and NetBSD-6.99.15/amd64 machine. There is no ssh server running on
> the OSX machine, so I start the rsync from there, but it immediately
> dies.
>
> Here's the output of a run with a few -v:
>
> # rsync -vvvv netbsd-host:notes.txt .
> cmd= machine=netbsd-host user= path=notes.txt
> cmd[0]=ssh cmd[1]=netbsd-host cmd[2]=rsync cmd[3]=--server cmd[4]=--sender
> cmd[5]=-vvvv cmd[6]=. cmd[7]=notes.txt
> opening connection using ssh netbsd-host rsync --server --sender -vvvv .
> notes.txt
> wiz@netbsd-host's password:
> FILE_STRUCT_LEN=24, EXTRA_LEN=4
> (Server) Protocol versions: remote=29, negotiated=29
> (Client) Protocol versions: remote=30, negotiated=29
> server_sender starting pid=24641
> [sender] make_file(notes.txt,*,0)
> recv_file_name(notes.txt)
> overflow: flags=0xe8 l1=3 l2=6553600 lastname=notes.txt
> ERROR: buffer overflow in receive_file_entry [receiver]
> _exit_cleanup(code=22, file=/SourceCache/rsync/rsync-42/rsync/util.c,
> line=121): entered
> rsync error: error allocating core memory buffers (code 22) at
> /SourceCache/rsync/rsync-42/rsync/util.c(121) [receiver=2.6.9]
> _exit_cleanup(code=22, file=/SourceCache/rsync/rsync-42/rsync/util.c,
> line=121): about to call exit(22)
> #
>
> The rsync on OSX is the one coming with the base system, i.e. 2.6.9.
> On NetBSD, it's the latest pkgsrc version, 3.0.9. The difference
> between protocols 29 and 30, AFAICT, is that the hash changed from md4
> to md5; but since "negotiated=29" I thought that shouldn't be a
> problem.
>
> Has anyone else seen this?
>
> Is there a workaround? (I will probably install pkgsrc on the OSX
> eventually but for now I'd prefer a solution with the existing rsync.)
>
> Thanks,
> Thomas
>
Doesn't overflow for me Mac OS X 10.7.5
The other side of the test is OpenBSD 5.2 amd64.
rsync version 3.0.9 protocol version 30
Copyright (C) 1996-2011 by Andrew Tridgell, Wayne Davison, and others.
Web site: http://rsync.samba.org/
Capabilities:
64-bit files, 32-bit inums, 32-bit timestamps, 64-bit long ints,
socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace,
append, no ACLs, no xattrs, no iconv, symtimes
rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you
are welcome to redistribute it under certain conditions. See the GNU
General Public Licence for details.
[kristamari-w1:~/development/code-projects/test] ianm% uname -a
Darwin kristamari-w1 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48
PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64
[kristamari-w1:~/development/code-projects/test] ianm% rsync --version
rsync version 2.6.9 protocol version 29
Copyright (C) 1996-2006 by Andrew Tridgell, Wayne Davison, and others.
<http://rsync.samba.org/>
Capabilities: 64-bit files, socketpairs, hard links, symlinks, batchfiles,
inplace, IPv6, 64-bit system inums, 64-bit internal inums
rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you
are welcome to redistribute it under certain conditions. See the GNU
General Public Licence for details.
[kristamari-w1:~/development/code-projects/test] ianm% rsync -vvvv
xena:test/BCG1000A.zip
cmd= machine=xena user= path=test/BCG1000A.zip
cmd[0]=ssh cmd[1]=xena cmd[2]=rsync cmd[3]=--server cmd[4]=--sender
cmd[5]=-vvvvr cmd[6]=. cmd[7]=test/BCG1000A.zip
opening connection using ssh xena rsync --server --sender -vvvvr .
test/BCG1000A.zip
***** This service is for authorised clients only *****
________________________________________________________________________
WARNING It is a criminal offence to:
i. Obtain access to data without authority
(Penalty 2 years imprisonment)
ii Damage, delete, alter or insert data without authority
(Penalty 10 years imprisonment)
________________________________________________________________________
(Server) Protocol versions: remote=29, negotiated=29
(Client) Protocol versions: remote=30, negotiated=29
[receiver] add_rule(- /*/*)
[sender] add_rule(- /*/*)
server_sender starting pid=21954
[sender] make_file(BCG1000A.zip,*,0)
recv_file_name(BCG1000A.zip)
received 1 names
[receiver] i=0 1 BCG1000A.zip mode=0100644 len=9257 flags=0
-rw-r--r-- 9257 2012/12/24 16:07:22 BCG1000A.zip
recv_file_list done
get_local_name count=1 <NULL>
generator starting pid=1331 count=1
delta-transmission enabled
generate_files phase=1
recv_files(1) starting
[sender] flist start=0, used=1, low=0, high=0
[sender] i=0 test BCG1000A.zip mode=0100644 len=9257 flags=5
send_file_list done
send_files starting
send_files phase=1
recv_files phase=1
generate_files phase=2
send_files phase=2
recv_files phase=2
send files finished
total: matches=0 hash_hits=0 false_alarms=0 data=0
recv_files finished
generate_files phase=3
generate_files finished
sent 30 bytes received 449 bytes 319.33 bytes/sec
total size is 9257 speedup is 19.33
client_run2 waiting on 1332
_exit_cleanup(code=0, file=/SourceCache/rsync/rsync-42/rsync/main.c,
line=1400): entered
_exit_cleanup(code=0, file=/SourceCache/rsync/rsync-42/rsync/main.c,
line=1400): about to call exit(0)
Ian McWilliam
Home |
Main Index |
Thread Index |
Old Index