delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/04/23/08:17:40

X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
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 DOT m DOT bray AT gmail DOT 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 AT cygwin DOT com
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

- Raw text -


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