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:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=iqBtaeVGuTUCSzIk 5IauKnlzS+L4ZRFFQ550b/n9E+8m/bIhbiHm1tUPnqqw7v9wOjr5KNd1LgkHinZK ASiC3Ut8HRoVC+3grwZLl04iHI5uPAbDuwJxDQ+SaCrlFnLMKxuE/ZTHrcCSAZkq Ao3RmHAWzPUtlJ44PzQXPzLDrBo= 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:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=default; bh=yyE38pIztlTHh2c/vMVNgz m8D/0=; b=isSi3oPBzteHYd6gqn9d5sHsm3jFXEWa4W+Rf80x1auY1i5USlvidB TA+ueIQn7W+Bg6JOsWoUmvpNvm4dnOA/LsEy9jU0iQDuX0rzLQtr3229eoh26OMZ vzFWHF/wcmIHqyirmPsHJJKZBXQTzrRpVSC37FMuPqQ5Bk736Q4WQ= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-0.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.1 spammy=H*F:D*yandex.ru, H*M:yandex, errno, terrible X-HELO: forward105j.mail.yandex.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1575037202; bh=2WL3xtG63v+Bp96qs6iWtjCyn1sW6kZrbjtrN/QwjWc=; h=In-Reply-To:Subject:To:Reply-To:From:Message-ID:References:Date; b=PJouaEqtUMC9LQ6Xp4PMBxNtEmfRIUN1iknvNDZQ4N8vwZqz0A7k9DRHv5l4mayAA tkiCdyanYD6WY4xXTjRWXTtWaqKFXLPVhXu5g+lyhum7oDmL/2UEE/pBkk/WcdSmtR ZHr0NqhO3bbUpJkLA2u8PtO9cPYGQHHlgrmpVItk= Authentication-Results: mxback21o.mail.yandex.net; dkim=pass header.i=@yandex.ru Date: Fri, 29 Nov 2019 17:09:37 +0300 From: Andrey Repin Reply-To: cygwin AT cygwin DOT com Message-ID: <126481108.20191129170937@yandex.ru> To: All , cygwin AT cygwin DOT com Subject: Re: 1.7.1: Bind 9.6.0-P1 on Vista: could not listen on UDP socket: not enough free resources (patch attached) In-Reply-To: <20100522204508.GB21401@cyclonus.mozone.net> References: <4B796E07 DOT 6080203 AT hp DOT com> <20100518211356 DOT GA18141 AT cyclonus DOT mozone DOT net> <20100522120111 DOT GA21401 AT cyclonus DOT mozone DOT net> <20100522154808 DOT GA14004 AT ednor DOT casa DOT cgf DOT cx> <20100522204508 DOT GB21401 AT cyclonus DOT mozone DOT net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Greetings, All! >> >The workaround I found was to recompile the sources, but making sure >> >that -DFD_SETSIZE=16384 is defined during the configure stage. Patch >> >attached below. >> > >> >Can someone please update the port with this bumped up FD_SETSIZE patch? >> >> If FD_SETSIZE is used to control what goes into one of the fd_set arguments >> to select() this won't work too well. >> >> fd's are allocated monotonically starting with 0 so if accept() is really >> returning something greater than 63 someone should figure out why. > Actually digging into it, named requires at least a minimum of 128. It > then, as a result, issues fcntl(fd, FD_DUPFD, reserved), where reserved is > the minimum value of 128 if the socket is determined to be a udp one. > If fd's greater than 64 were truely invalid then duping the fd with the > reserved range greater than 64 should have resulted in -1 with errno of > EBADF just like select did. > Besides, I believe the only deficiency here is that bind's configure > isn't smart enough to auto correct the FD_SETSIZE when it detects it's > under cygwin. Other utilities more than likely already do this part > automatically for you during the configure stage... > Anyhow, I did a private build using cygport and the patch attached in my > previous response, and the resulting named (and utilities/libraries) are > working quite well. This is still a problem, just hit it today. :( Setting sockets to any number above 128 crashes named.exe. -- With best regards, Andrey Repin Friday, November 29, 2019 17:08:06 Sorry for my terrible english... -- 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