public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: 64bit cygwin 2.4.0-0.4 hangs when pinging unresponsive host
Date: Sat, 28 Nov 2015 19:02:00 -0000	[thread overview]
Message-ID: <20151128155452.GY2755@calimero.vinschen.de> (raw)
In-Reply-To: <56587B21.50002@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1387 bytes --]

On Nov 27 16:47, Marco Atzeri wrote:
> On 27/11/2015 16:07, Corinna Vinschen wrote:
> >>>>  64 $ ping 2.2.2.2
> >>>>PING 2.2.2.2 (2.2.2.2): 56 data bytes
> >>>>
> >>>>----2.2.2.2 PING Statistics----
> >>>>2 packets transmitted, 0 packets received, 100.0% packet loss
> >>>
> >>>
> >>>the problem seems restricted to the 64bit test version of cygwin.
> >>
> >>I think this is pure coincidence.  After some hours debugging this
> >>problem it seems it's a race condition, architecture-independent and
> >>present since quite a while in Cygwin.  In case of ping the race leads
> >>to a blocking socket function missing a signal arrived, thus the
> >>signal is never handled.  This in turn blocks the next signal from being
> >>delivered.
> >>
> >>I have a potential fix, but I have to test it a bit.  The signal code
> >>is pretty complicated...
> >
> >I created a new developer snapshot (https://cygwin.com/snapshots/) and
> >I'm just about writing the release message for the next test release
> >2.4.0-0.5 which both contain a patch for this problem.  Please give
> >any of them a try.
> >
> >
> >Thanks,
> >Corinna
> >
> 
> 
> It works fine for me

Good start.  Thanks for your feedback.


Corinna

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

[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]

      reply	other threads:[~2015-11-28 15:55 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-24 22:30 Mintty 2.2.2: possible hang when breaking (CTRL+C) out of " Jeff Hansen
2015-11-24 23:05 ` Marco Atzeri
2015-11-25 11:03   ` Thomas Wolff
2015-11-25 12:04     ` Marco Atzeri
2015-11-25 19:04       ` Jim Reisert AD1C
2015-11-25 19:52         ` Thomas Wolff
2015-11-25 20:35           ` Jim Reisert AD1C
2015-11-25 20:58             ` Andrey Repin
2015-11-25 21:34             ` Marco Atzeri
2015-11-25 22:53               ` Ken Brown
2015-11-26  1:28                 ` Thomas Wolff
2015-11-25 21:03       ` 64bit cygwin 2.4.0-0.4 hangs when " Marco Atzeri
2015-11-26 20:20         ` Corinna Vinschen
2015-11-27 15:10           ` Corinna Vinschen
2015-11-27 16:04             ` Marco Atzeri
2015-11-28 19:02               ` Corinna Vinschen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151128155452.GY2755@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).