delorie.com/archives/browse.cgi | search |
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:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; q=dns; s= | |
default; b=JPtoW7GWMFICDCabbUyurX/AtJtry6EPWRmwSvKx4V5/bWsy0BaHw | |
oIhaDI7eH1tFZTFrL/sJwMsW2Aj3LjSrYa4l+9Ywd41RldToDxS03JS3pIQyg0Vh | |
eiRUdLExcCqHJEdkmOoE/uPpR08xMT74FUj0WwEfeLBAvedRpDbsg8= | |
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:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; s=default; | |
bh=WBwprVfMIh94Q3zttgfsLGBDiDU=; b=w+fPcCUr4P1IIT5kLVCXUuzeavBS | |
VL5MZclFYBlCG2+haF2jsOZhXX8QR9NhsM+gRhKOpEcZUPtd1qjF0W+NbFt7095D | |
XX+6exW05yXPp3eVhRC/u/PhU5X9dgSpKjtpFEvsW9w+4EKDMCLGybuK0Oy3TgQk | |
pIzmvHiPadG2i20= | |
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-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-1.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 |
X-HELO: | calimero.vinschen.de |
Date: | Wed, 30 Oct 2013 10:49:04 +0100 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: fork() and NT error 0xC0000135 (STATUS_DLL_NOT_FOUND) |
Message-ID: | <20131030094904.GB28558@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <5F8AAC04F9616747BC4CC0E803D5907D0C40B026 AT MLBXv04 DOT nih DOT gov> <526FED2A DOT 20906 AT cygwin DOT com> <20131029172157 DOT GA6342 AT calimero DOT vinschen DOT de> <5F8AAC04F9616747BC4CC0E803D5907D0C40B088 AT MLBXv04 DOT nih DOT gov> |
MIME-Version: | 1.0 |
In-Reply-To: | <5F8AAC04F9616747BC4CC0E803D5907D0C40B088@MLBXv04.nih.gov> |
User-Agent: | Mutt/1.5.21 (2010-09-15) |
--eJnRUKwClWJh1Khz Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Oct 29 18:13, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote: > > platforms expect /bin and/or /usr/bin to be in your path >=20 > I'm not following... cygrunsrv.exe is started by Windows service control= ler, > and then spawns the server binary. There's no point in this sequence of = actions > to modify PATH. I also believe, PATH is made compliant with what POSIX r= equirement > by that very cygwin1.dll implicitly (and that happens when cygrunsrv gets= launched, > so cygwin1.dll figures out the CYGWIN "root" directory, then evaluates th= e path where > to expect all other CYGWIN dlls). For cygrunsrv, the server binary is sp= ecified as an > absolute path with -p "/opt/path/to/bin/server.exe", which is within the = rudimentary > CYGWIN tree that also has "/bin" (rooted at some Windows directory, C:\Ap= ps\CYGWIN). >=20 > > Two points: > >=20 > > - cygrunsrv adds /bin to $PATH before calling the service executable. > >=20 > > - STATUS_DLL_NOT_FOUND does *not* imply that cygwin1.dll isn't found. > > It could be any other DLL required by the executable but not in $PATH. > >=20 >=20 > Without chdir("/") fork() is able to succeed; and the server binary does= not > depend on any other non-Windows DLLs that are not in the "/bin" CYGWIN di= rectory. >=20 > But with chdir("/") in place, if I insert (when manually simulating the v= ery same > failure from a limited user account) "C:\Apps\CYGWIN\bin" into Windows PA= TH before > calling the server binary, it is able to fork successfully. (Without the= addition, > it fails same way with the same error 0xC00000135 even when run interacti= vely.) Hmm, on second thought, this could be a problem in cygrunsrv. I have a hunch what the problem might be. Are you running 32 or 64 bit Cygwin? If that's ok with you, I'd PM you an URL to a matching, patched cygrunsrv binary for testing. Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --eJnRUKwClWJh1Khz Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) iQIcBAEBAgAGBQJScNYQAAoJEPU2Bp2uRE+gp5AP/i98XgaRpHKB8TCsuJh8/vgH tZaakdQWXmJBS+oXIJnUAzxNjs2JvYO3WrmIyFuZMZ6GlMvt8QX9aAhULCaOUmhY CYbyXrZYFG9zMPa+xZgf7WDHd77Ha7CUUW/0zqyRYjyabuRpkbCgXs+V3MyaI+yW fasdPNNYFKnJr5r1sy+gmLtoLf6FXxD4j+tKScqI5xApvUUeph6mZHiMqIWoCSp/ tB68wb7bXvBdFrgZvwHQU7BxOEbWxfs0XSslSz7xvS1Z5Vhn/r3GFyEK8gYRip0n 8hZwvKPkbe7RW2x/obNeRK7FW0j0G1hsyeANJvKYrvYDEOmPrQSpetjPrEe6oOOC 2KBl0p4K8R99xkPJKb9h0rJh6y2w4Da+wLqt1nnNqAYDYvF5zi+ncPGHnlYTyrJt 1z4m2iDgkwBcU7EyEJA5TkASRMKbbmrplQl24NPqFQUyqgDu3kV7Nten/mC1iixb sUFlsgztktMFQyTDKiqbt/nMYALICMGti788QAIzupHaTl5oRdwtU0V8ce0Eo/rL 3a1Or2XIw7p6jSEOkS+WJ6KtfGX+Z0whtJTgKsoGYz1VZ12nVD1eDmM+bO/YmDj+ IFu5G4l31H0S9A8Dfj3zSHgOBWcpCu4g8R+uxT1A/3S7UyYoiqPEBqzquLC9H0nq QdFRTbmjZdoDyOqLJRDy =QP1e -----END PGP SIGNATURE----- --eJnRUKwClWJh1Khz--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |