delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/10/29/13:22:22

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=bGOfwL3KN/lSobcrBjre6sA9vBI5Iqe3j5mZCUFxaR1Kc4aZfnrj4
tapIOFfXi50lmB6F9oOaFJEoj1tBGDH9z3H3wNypNWTcYj932q+9i0wPr8/+EIAC
ykypFeulvHTdGCS8XYPRXnj2gyOLQh4XyC3EwU4f76tisp/3kE9wZg=
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=oDS3RC//oFHxGy9dSCt4CJlifZE=; b=Fe6Mwy6co7HSppf9/yj6nN+VzxeY
WR4JUxQTUFdQc4RcIMt4ky0k6jasZkzyWvBkKh9bqqDYqdbeGyQcfW7vDKNfluN2
/QpoAJ5c9KywGpa3zxRNiYL7mmqzllwGXsVoAZ62/+LBGBTUvWJHoT9dPGmX2MPH
bjrLtL4bvyTB+Jg=
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.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2
X-HELO: calimero.vinschen.de
Date: Tue, 29 Oct 2013 18:21:57 +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: <20131029172157.GA6342@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>
MIME-Version: 1.0
In-Reply-To: <526FED2A.20906@cygwin.com>
User-Agent: Mutt/1.5.21 (2010-09-15)

--Q68bSM7Ycu6FN28Q
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Oct 29 13:15, Larry Hall (Cygwin) wrote:
> On 10/29/2013 12:13 PM, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote:
> >Hello All,
> >
> >I can't find a similar problem reported earlier, so please excuse the qu=
estion
> >if it looks familiar.
> >
> >We have a software package that installs like a miniature CYGWIN deploym=
ent
> >(basically, only cygwin1.dll and just a few other libraries in /bin
> >along with cygrunsrv.exe), and there are no shells.
> >
> >cygrunsrv.exe is used to register and launch a Windows service with a bi=
nary
> >located under "/opt/..." (which is a ported UNIX server).  The binary is=
 started
> >just fine, but when it tries to fork(), it gets the error 0xC0000135 (w/=
 errno=3D11,
> >EAGAIN).  I traced it down to the fact that before fork() there is chdir=
("/") in
> >that server binary.  Can it be the reason for the failed fork() that it =
can no longer
> >find cygwin1.dll?  Unfortunately, I can't extend Windows PATH to include=
 the
> >CYGWIN /bin directory (because the cygrunsrv runs under an unmanaged ser=
vice
> >account).  Is there any other fix?
>=20
> I'll go out on a limb and say that all UNIX/POSIX platforms expect /bin
> and/or /usr/bin to be in your path if you're not specifying an absolute
> path when invoking your binaries.  This is not an unusual expectation
> and isn't confined to the UNIX/POSIX world.  There isn't any "fix" that
> will be forthcoming in the Cygwin DLL that will change this expectation,
> though there may be others on this list that have some clever workarounds
> that you could try.

Two points:

- cygrunsrv adds /bin to $PATH before calling the service executable.

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


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--Q68bSM7Ycu6FN28Q
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)

iQIcBAEBAgAGBQJSb+61AAoJEPU2Bp2uRE+gO+AP/iWkBZpgu82ZT82v2Q1viAbE
wh0WnSLG9DTStpxCKxjtf4HSjksZ6MGgO61kiRGK9hu2Jr0iVu1YADpKHqlywuEx
mvEj+Jmk2QB7F64RB/w03SRcJA16JsR+y4MrDgj0RWV31mme3qXBSRPQAPLlDh5s
evE1uulq5VLXDVRpt+eoNO8rPzhIyQxZE5601RG7ARRez1z5QYH+ETUBYYsijavk
Pmz3f6m3I6F3gajecXQGXRuhmpuuDzB0npyp9TnjNYkNSxcM3IccZvAFmKyxrroC
4q+xHEFzEgpTpE+9AnjJgIdPYyphheH1OFWgp8+fHXcOBpZNlfl3r+S46f+OQEmd
7p35TRM2LzOawSaYhi0OFuHXbldnmW68CYsJ0S/+NHDefcsqqk2s2gazmX+iyOKQ
7i5Lojnfdz9G7qB8keWZSPaso3wt+SRlw5z006Kv14LG7T6NC3vWMoejKldcuEFe
sNubfC5FnHzAuj6XRceC816wunoJQnOcaLOr8apz/Z62fGWDOLKlBDYGoE+4zpoJ
85xaW62oipTe5voNXO3LPWkQ603Js9K9xthm0FrutC9aQcCVP9Cg3xR8dHUCr7mv
siRgjX9s1z5zIyDJsRNTauRdjTy60UatX7Jq26JhFJZ/M/287QgEhfuAa53zOpB8
P6fcgIMz7TSv5mHlBRHB
=KsbW
-----END PGP SIGNATURE-----

--Q68bSM7Ycu6FN28Q--

- Raw text -


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