delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/11/15/11:23:23

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Mon, 15 Nov 2010 17:22:42 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: ioctl() on socket fd's take 3 seconds on 1.7.7
Message-ID: <20101115162242.GF17405@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <ibb083$e9c$1 AT dough DOT gmane DOT org>
MIME-Version: 1.0
In-Reply-To: <ibb083$e9c$1@dough.gmane.org>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

On Nov  9 09:20, Jason Curl wrote:
>   166   65418 [main] ipcheck 5580 ioctl: fd 3, cmd 80087364
> --- Process 5580, exception C0000005 at 610C8C86

Crash in Cygwin, but the address doesn't help much, unfortunately.

> Interestingly enough, the program works. That is, it finds all
> interfaces and returns correct values (except interface names are
> UUIDs instead of something more friendly like "eth0" that existed in
> 1.5.26).

For a reason.  The UUID names are the only officially *unique* interface
names available in Windows.  The ethX names in Cygwin 1.5 were faked,
based on the order in which the interfaces appear in a Windows call.
This order is not guaranteed to stay intact during the uptime of a
machine.  Cygwin also provides an ioctl called SIOCGIFFRNDLYNAM, which
provides the interface name shown in the Windows network adapter
settings window.

> My antivirus has been closed (not simply deactivated) with no change
> in behaviour.
> 
> It will be a little later when I'm able to generate a working test case.

T'would be nice.  Please make it short and simple and, if possible, in
plain C.


Thanks,
Corinna

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

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

- Raw text -


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