X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Sun, 14 Jun 2009 14:29:35 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: LFTP issue
Message-ID: <20090614122935.GM5039@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <2bf229d30906061704k7e01a988gfade6351525de0c3@mail.gmail.com> <jehq251879u9jv2ps1d9ctgno6gsrr3sfs@4ax.com> <2bf229d30906081136y6488953fq2e6342609f0a44f@mail.gmail.com> <20090609001857.GA28339@ednor.casa.cgf.cx> <2bf229d30906081814j1d1f478sd711bc2f6e8aa270@mail.gmail.com> <20090609041118.GB28887@ednor.casa.cgf.cx> <20090614054229.GA6863@ednor.casa.cgf.cx> <2bf229d30906140439p4f5cfa94yfcda38cb91910f97@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <2bf229d30906140439p4f5cfa94yfcda38cb91910f97@mail.gmail.com>
User-Agent: Mutt/1.5.19 (2009-02-20)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Jun 14 07:39, Chris Sutcliffe wrote:
> > Thanks for the strace.  This + our irc chat allowed me to duplicate the
> > problem.  It should be fixed in the next snapshot which is building now.
> 
> Thank you!  Using the "cygwin1-20090614.dll.bz2" snapshot, I don't see
> the hang that I was seeing before.  However, when doing a "ls | grep
> <string>" or "ls | less" on the large directory (2000 items), I now
> see the results duplicated 530 times.

I can reproduce this if the remote dir is big enough, just the numbers
are different.  In one dir with < 500 files it works fine, in another
dir with > 3000 files I get between 70 and 120 repetitions.

And I have another weird effect:

  $ lftp server
  lftp server:>cd large-dir
  cd ok, cwd=/large-dir
  lftp server:/large-dir>ls | less
  ls: less: Permission denied
  lftp server:/large-dir>ls | less
  ls: less: Permission denied
  lftp server:/large-dir>ls | less
  ls: less: Permission denied
  lftp server:/large-dir>ls | less
  ls: less: Permission denied
  lftp server:/large-dir>ls | less
  [...works...]

I can reproduce this with a very high probability.  4 or 5 or 10 times
in a row it fails.  Then, as soon as the first `ls | less' call
succeeds, all subsequent calls succeed as well.  Calling just `ls' once,
helps, too.

Unfortunately I can't reproduce it when running under strace.  In that
case `ls | less' already succeeds the first time, every time I try it :(


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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/

