PATCH/RFC: Another stab at the Cygwin hang problem

Lapo Luchini lapo at lapo.it
Sat Jul 12 22:07:55 EST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

jw schultz wrote:

 >I've attached an altered patch.  I've only dealt with this
 >one location which produced errors doing a ssh pull.
 >
OK, I created a test package with your patch included, so that anyone
willing to test but not wililng to compile can use it.
Please notice that it is build against the experimental cygwin DLL release
1.5.0, with support for 64-bit files.
If used on a system with an older DLL it can do "bad things"...
and maybe can do bad things anyway, I take no responsability as this is a
*TEST* package.
(not that I am responsable anyway =P)

http://www.lapo.it/tmp/rsync-2.5.6-3.tar.bz2
http://www.lapo.it/tmp/rsync-2.5.6-3-src.tar.bz2

Please notice moreover that overall in seven "make check" I got the
following failures (once each one).
I'd say this patch gives problems ^_^

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0 - not licensed for commercial use: www.pgp.com

iQA/AwUBPw/5+2iYgizI8lL7EQJnWwCdGFxTPjDT8voCXgonG9CYS5h/JGwAmgJ0
cCjDDP03tmNHYBaPEsfeSgnm
=Xkyb
-----END PGP SIGNATURE-----


----- unsafe-links log follows
Testing for symlinks using 'test -h'
+ echo rsync with relative path and just -a
rsync with relative path and just -a
+ /tmp/rsync-2.5.6/rsync.exe -avv from/safe/ to
building file list ...
expand file_list to 4000 bytes, did move
done
created directory to
delta-transmission disabled for local transfer or --whole-file
files/file1
files/file2
links/file1 -> ../files/file1
links/file2 -> ../files/file2
links/unsafefile -> ../../unsafe/unsafefile
total: matches=0  tag_hits=0  false_alarms=0 data=0
wrote 297 bytes  read 52 bytes  232.67 bytes/sec
total size is 342  speedup is 0.98
+ test_symlink to/links/file1
+ is_a_link to/links/file1
+ test -h to/links/file1
+ test_symlink to/links/file2
+ is_a_link to/links/file2
+ test -h to/links/file2
+ test_symlink to/links/unsafefile
+ is_a_link to/links/unsafefile
+ test -h to/links/unsafefile
+ echo rsync with relative path and -a --copy-links
rsync with relative path and -a --copy-links
+ /tmp/rsync-2.5.6/rsync.exe -avv --copy-links from/safe/ to
building file list ...
expand file_list to 4000 bytes, did move
done
delta-transmission disabled for local transfer or --whole-file
files/file1 is uptodate
files/file2 is uptodate
links/file1 is uptodate
links/file2 is uptodate
links/unsafefile
total: matches=0  tag_hits=0  false_alarms=0 data=0
wrote 198 bytes  read 36 bytes  468.00 bytes/sec
total size is 0  speedup is 0.00
+ test_regular to/links/file1
+ [ ! -f to/links/file1 ]
+ test_regular to/links/file2
+ [ ! -f to/links/file2 ]
+ test_regular to/links/unsafefile
+ [ ! -f to/links/unsafefile ]
+ echo rsync with relative path and --copy-unsafe-links
rsync with relative path and --copy-unsafe-links
+ /tmp/rsync-2.5.6/rsync.exe -avv --copy-unsafe-links from/safe/ to
pipe: Address already in use
rsync error: error in IPC code (code 14) at pipe.c(107)
----- unsafe-links log ends
FAIL    unsafe-links

----- hands log follows
Testing for symlinks using 'test -h'
Test basic operation: Running: "/tmp/rsync-2.5.6/rsync.exe -av 
/tmp/rsync-2.5.6/testtmp.hands/from/ /tmp/rsync-2.5.6/testtmp.hands/to"
building file list ... done
./
dir/
dir/subdir/
dir/subdir/subsubdir/
dir/subdir/subsubdir/etc-ltr-list
dir/subdir/subsubdir2/
dir/subdir/subsubdir2/bin-lt-list
dir/text
empty
emptydir/
filelist
nolf
nolf-symlink -> nolf
text
wrote 829890 bytes  read 132 bytes  1660044.00 bytes/sec
total size is 829321  speedup is 1.00
-------------
check how the files compare with diff:

-------------
check how the directory listings compare with diff:

        done.
Test hard links: Running: "/tmp/rsync-2.5.6/rsync.exe -avH 
/tmp/rsync-2.5.6/testtmp.hands/from/ /tmp/rsync-2.5.6/testtmp.hands/to"
building file list ... done
dir/
dir/filelist
filelist => dir/filelist
wrote 21870 bytes  read 36 bytes  43812.00 bytes/sec
total size is 850647  speedup is 38.83
-------------
check how the files compare with diff:

-------------
check how the directory listings compare with diff:

        done.
Test one file: Running: "/tmp/rsync-2.5.6/rsync.exe -avH 
/tmp/rsync-2.5.6/testtmp.hands/from/ /tmp/rsync-2.5.6/testtmp.hands/to"
building file list ... done
./
text
wrote 374971 bytes  read 36 bytes  250004.67 bytes/sec
total size is 850647  speedup is 2.27
-------------
check how the files compare with diff:

-------------
check how the directory listings compare with diff:

        done.
Test extra data: Running: "/tmp/rsync-2.5.6/rsync.exe -avH 
/tmp/rsync-2.5.6/testtmp.hands/from/ /tmp/rsync-2.5.6/testtmp.hands/to"
building file list ... done
pipe failed in do_recv
rsync error: error in socket IO (code 10) at main.c(412)
rsync: connection unexpectedly closed (8 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(165)
----- hands log ends
FAIL    hands


----- hands log follows
Testing for symlinks using 'test -h'
Test basic operation: Running: "/tmp/rsync-2.5.6/rsync.exe -av 
/tmp/rsync-2.5.6/testtmp.hands/from/ /tmp/rsync-2.5.6/testtmp.hands/to"
pipe: Address already in use
rsync error: error in IPC code (code 14) at pipe.c(107)
----- hands log ends
FAIL    hands
----- hardlinks log follows
Testing for symlinks using 'test -h'
+ fromdir=/tmp/rsync-2.5.6/testtmp.hardlinks/from
+ todir=/tmp/rsync-2.5.6/testtmp.hardlinks/to
+ mkdir /tmp/rsync-2.5.6/testtmp.hardlinks/from
+ name1=/tmp/rsync-2.5.6/testtmp.hardlinks/from/name1
+ name2=/tmp/rsync-2.5.6/testtmp.hardlinks/from/name2
+ name3=/tmp/rsync-2.5.6/testtmp.hardlinks/from/name3
+ name4=/tmp/rsync-2.5.6/testtmp.hardlinks/from/name4
+ echo This is the file
+ ln /tmp/rsync-2.5.6/testtmp.hardlinks/from/name1 
/tmp/rsync-2.5.6/testtmp.hardlinks/from/name2
+ ln /tmp/rsync-2.5.6/testtmp.hardlinks/from/name2 
/tmp/rsync-2.5.6/testtmp.hardlinks/from/name3
+ cp /tmp/rsync-2.5.6/testtmp.hardlinks/from/name2 
/tmp/rsync-2.5.6/testtmp.hardlinks/from/name4
+ checkit /tmp/rsync-2.5.6/rsync.exe -aHvv 
"/tmp/rsync-2.5.6/testtmp.hardlinks/from/" 
"/tmp/rsync-2.5.6/testtmp.hardlinks/to/" 
/tmp/rsync-2.5.6/testtmp.hardlinks/from 
/tmp/rsync-2.5.6/testtmp.hardlinks/to
+ failed=
+ echo Running: "/tmp/rsync-2.5.6/rsync.exe -aHvv 
"/tmp/rsync-2.5.6/testtmp.hardlinks/from/" 
"/tmp/rsync-2.5.6/testtmp.hardlinks/to/""
Running: "/tmp/rsync-2.5.6/rsync.exe -aHvv 
"/tmp/rsync-2.5.6/testtmp.hardlinks/from/" 
"/tmp/rsync-2.5.6/testtmp.hardlinks/to/""
+ eval /tmp/rsync-2.5.6/rsync.exe -aHvv 
"/tmp/rsync-2.5.6/testtmp.hardlinks/from/" 
"/tmp/rsync-2.5.6/testtmp.hardlinks/to/"
+ /tmp/rsync-2.5.6/rsync.exe -aHvv 
/tmp/rsync-2.5.6/testtmp.hardlinks/from/ 
/tmp/rsync-2.5.6/testtmp.hardlinks/to/
pipe: Address already in use
rsync error: error in IPC code (code 14) at pipe.c(107)
----- hardlinks log ends
FAIL    hardlinks

-- 
Lapo 'Raist' Luchini
lapo at lapo.it (PGP & X.509 keys available)
http://www.lapo.it (ICQ UIN: 529796)





More information about the rsync mailing list