delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/26/03:06:59

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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: <429574B5.9060607@familiehaase.de>
Date: Thu, 26 May 2005 09:03:17 +0200
From: "Gerrit P. Haase" <gerrit AT familiehaase DOT de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.8) Gecko/20050511
MIME-Version: 1.0
To: Sunil <funtoos AT yahoo DOT com>
CC: cygwin AT cygwin DOT com
Subject: Re: connect()/cygwin_select() hangs in >=1.5.15
References: <20050526032330 DOT 5429 DOT qmail AT web31714 DOT mail DOT mud DOT yahoo DOT com>
In-Reply-To: <20050526032330.5429.qmail@web31714.mail.mud.yahoo.com>
X-IsSubscribed: yes

Sunil wrote:

> This piece of code hangs with cygwin1.dll >=1.5.15
> during connect(), strace is attached. The same code
> runs fine with cygwin1.dll version 1.5.13.
> 
> --------------------------------
>  fd = socket (proto->family, 1,
>        proto->stream_proto_num);
> 
>  if (fd < 0) {
>   ;
>   goto out;
>  }
> 
>  if (options & LINK_CONNECTION_NONBLOCKING) {
> # 553 "linc-connection.c"
>   if (fcntl (fd, 4, 0x4000) < 0)
>    goto out;
> 
>  }
> 
>  if (fcntl (fd, 2, 1) < 0)
>   goto out;
> 
>  { long int __result; do __result = (long int)
> (connect (fd, saddr, saddr_len)); while (__result ==
> -1L && (*__errno()) == 4); rv = __result; };
> # 596 "linc-connection.c"
>  if (rv && (*__errno()) != 119)
>   goto out;
> 
> ---------------------------
> 
> Similar problem with select() hang has been reported
> earlier but nothing came out of it. I don't know if
> its related. I am not sure why errno 119 is seen(see
> panel.log) in this case, but that and the hang are the
> common factors and strace looks similar.
> 
> http://www.cygwin.com/ml/cygwin/2005-04/msg01331.html
> 
> Above code piece is taken from linc-connection.c in
> the orbit2-2.12.2 package. This function is reached by
> the gnome-panel and it hangs inside connect() as is
> evident from the strace in panel.log and all I get is
> a blank gnome-panel.
> 
> As I said, all I have to do to get it to work is to go
> back to 1.5.13 snapshot. I am not sure what changed
> between 1.5.13 and 1.5.15 to cause this.
> 
> Thanks for looking into it.
> Sunil

There were some fixes regarding this, try a pre 1.5.17 snapshot,
please.  I currently use the one from 2005-May-20 and everything
socket related where I encountered problems works ok with that.
     http://cygwin.com/snapshots/


Gerrit
-- 
=^..^=

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

- Raw text -


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