delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/01/29/12:18:31

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <00b701c2c7ba$3bed5810$78d96f83@pomello>
From: "Max Bowsher" <maxb AT ukf DOT net>
To: "Lapo Luchini" <lapo AT lapo DOT it>
Cc: <cygwin AT cygwin DOT com>
References: <00d001c2c6d3$156b2e20$78d96f83 AT pomello> <3E37FFA8 DOT 5040701 AT lapo DOT it>
Subject: Re: rsync hang - strace output - any ideas?
Date: Wed, 29 Jan 2003 17:16:59 -0000
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

Lapo Luchini wrote:
> Max Bowsher wrote:
>
>> I was running the rsync testsuite, and an rsync process hung.
>> I did "strace -p <pid>", and got 1 line of trace:
>>    4       4 [sig] rsync 2540 wait_sig: looping
>>
>> Does this mean anything to any Cygwin gurus?
>>
> What release are you using exactly?

2.5.6

> In 2.5.5-2 I added a small patch (don't remember the author, see the
> included README) that adds a sleepms(30) to try to avoid a (possible?)
> bug in signaling between parent and child in Cygwin.
> Some heavy user say that also with that sleepms(30) they sometime hang
> and that sleepms(100) "relsolved" that better, but this degrades
> performances.

I ran the rsync testsuite in a loop, and eventually got a hang, gdb-ed it,
got the backtrace and posted it here (cygwin AT cygwin DOT com). Based on that, I
do not think that the signalling between parent and child is at fault. As
best I can tell, something is going wrong in socketpair_tcp(), causing rsync
to end up blocked on accept(). It's probably some peculiarity of Winsock.

PS: Did you catch my message regarding pipe vs. socketpair? It might be an
idea to use pipe in 2.5.6-1 unless we can figure out why Cygwin's socketpair
doesn't always work.

Max.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019