X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:from:date:message-id:subject:to
	:content-type; q=dns; s=default; b=wyrMcb1usa3mP0n7WQ0+J0QDJa0Cu
	PBYhbEQScIM3QUfxUm17yyHDkxqgAgN/WZuI+2OUfNcJqgETEPkeS0/GQoLHhWkb
	WAp0KPch2HOoIK9WO0W8pzu3RMRZxMZoSLJ+cisiLdFwU6fCUNcTj2hp3717QHSH
	3pA5E5vGHMY9As=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:from:date:message-id:subject:to
	:content-type; s=default; bh=XMioKH1XA8NWPl5XAik53+Lh6XE=; b=lNb
	xXAMxDXYHl80fnpJMzjb22PRWpgznDDs/LwioE4j6GsyuX68LkAONUMJPxW3WA8H
	LGS3J5pKfonlMJAzVGeBpww4Mn1KTJz1ByXwC44ZmvZhufTbLYAWfjastih67h/n
	8vxjqDc31+xK0iha0poEzOGIAFcv3+NpxwfkMlPM=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=notebook, Notebook, HX-Received:6e01, wondering
X-HELO: mail-it1-f180.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=gmail.com; s=20161025;        h=mime-version:from:date:message-id:subject:to;        bh=7EE1H4MGmIE7RCayELGsgSlh5duomj9Z+4u/qNkozP8=;        b=YGzBuMqzo1UwfGtMSZ/bRcC76DKp+sbC9c6qppsHcYIF2vNhz//OzyszQEGrtTDphH         0ZyrJY9WR2YAGooNRYHldbma0gWenqDn7UWv+hdZSSDTg2FvRa4eaJFGhvmeITkvaraO         KZbGjJ5IWchjvLBHJ3yQxTjF/uHWFPFsbPweZOolUKmY1yYl5Dv8esmuXTZQLls593kA         E/mReuVYazwSis7xw+YKiTZKoY4hNvGreRNEvhVDlsbau2urx3SOe8m2TTFfoWlf3qSs         IeaDVlNn7ukslwC/r6gVTPXLu81gXr2UMUsEW8HCXd3xsR146QhF41VdI4e3fB8T4JC1         hwNw==
MIME-Version: 1.0
From: "E. Madison Bray" <erik.m.bray@gmail.com>
Date: Tue, 23 Apr 2019 14:17:15 +0200
Message-ID: <CAOTD34a_LJP5kk==DzkHz89PFjjPFcXWM1eDFVx+4uNf6XbCjw@mail.gmail.com>
Subject: EPERM on bind() ?
To: cygwin@cygwin.com
Content-Type: text/plain; charset="UTF-8"
X-IsSubscribed: yes

Hello,

I have had some users of the Jupyter Notebook [1] on Cygwin report an
crash on startup where, when the Notebook server tries to bind() to
the port it will listen on (TCP 8888) the bind() fails and errno is
set to EPERM, which is not an expected errno from bind().

Looking at the Cygwin sources, in net.cc I see that in
set_winsock_errno, EPERM is returned by default if there is some WSA
error for which there is no POSIX equivalent mapped.  Fine--EPERM is
as good as any other fallback I suppose (?) in that it unambiguously
indicates some unknown WSA error.

I'm just wondering if anyone has any idea what might cause such an
error.  Some third-party firewall or BLODA?  I can't reproduce it
myself.  Trying to bind to a port already in use correctly returns
EADDRINUSE.


[1] https://jupyter.org/

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

