This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Rsync over SSH dies before it is able to send with lots of files


On Aug 11 07:26, Eric Blake wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> According to Eric Blake on 8/10/2005 7:09 AM:
> > 
> > I still want to figure out why you were getting a crash.  I tried the
> > following:
> > 
> > $ cd /tmp
> > $ mount -m
> > ...
> > mount -f -s -b -X "c:/cygwin/bin" "/bin"
> > $ mkdir lots
> > $ # 45000 invocations of touch is slow, so do 10 files at a time...
> > $ for i in `seq 4500` ; do echo $i ; touch longfilename${i}0
> > longfilename${i}1 longfilename${i}2 longfilename${i}3 longfilename${i}4
> > longfilename${i}5 longfilename${i}6 longfilename${i}7 longfilename${i}8
> > longfilename${i}9 ; done
> > $ echo /cygdrive/c/cygwin/tmp/lots/*
> > ... # Works, echo is a builtin
> > $ /bin/echo /cygdrive/c/cygwin/tmp/lots/*
> > ... # Works for me, since my /bin is mounted executable
> > $ /cygdrive/c/cygwin/bin/echo /cygdrive/c/cygwin/tmp/lots/*
> > bash: /cygdrive/c/cygwin/bin/echo: Argument list too long
> 
> Aha - I found something.  When I first ran the touch command above, I
> stopped at about 8000 files (or about 400k for the subsequent echo command
> line), which gave the nice "Argument list too long" error.  But when I
> increased the number of files to 45000 (or about 2 meg of command line),
> the same command failed with a segfault with bash 3.0, and gave no input
> but left $? at 5 (matching EIO) on the alpha bash 3.1.  I will have to try
> debugging it now, but it seems odd that exec() is dying with E2BIG in one
> case and EIO when the input is even bigger.

Can you reproduce this with the latest Cygwin snapshot?


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]