X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.1 required=5.0	tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <20120208102235.GA2796@qp9482>
References: <33279157.post@talk.nabble.com>	<20120207154359.GA2952@qp9482>	<20120207161428.GB12159@calimero.vinschen.de>	<4F31559B.6060600@cs.utoronto.ca>	<B0ED7173-1AC3-4B4E-8B79-3A9B22652684@Denis-Excoffier.org>	<20120208090824.GA1724@qp9482>	<20120208092711.GF25129@calimero.vinschen.de>	<20120208102235.GA2796@qp9482>
Date: Wed, 8 Feb 2012 07:32:51 -0500
Message-ID: <CA+sc5mkUpuFdtBjBVqZWqvj_n4T8ymxPsNFgpq+vt-TRep7f1g@mail.gmail.com>
Subject: Re: cygwin-1.7.10-1 fork - address space needed by ... already in use
From: Earnie Boyd <earnie@users.sourceforge.net>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@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

On Wed, Feb 8, 2012 at 5:22 AM, Denis Excoffier wrote:
>
> I can reproduce.
>
> On my system (2012-02-07 snapshot instrumented), the following is able
> to exercise the fork failure any time.
>
> I do this from within a dedicated directory named "stc".
> Current shell seems indifferent. Here it is /bin/tcsh and
> i've tried with /bin/bash with the same result.
>
> % cat doit1
> #!/usr/bin/tcsh -f
> setenv PATH "/usr/bin"
> cp /usr/bin/cyggcc_s-1.dll .
> ls
> rm cyggcc_s-1.dll
> %

This is not going to work, period.  When you copy a DLL to the working
directory it will be that DLL that is used instead of the previously
loaded DLL.  It is the way the DLL search order works.  You'll see
failures and perhaps even lock up your OS.  Try this with the CYGWIN
DLL and you'll not be able to ls or rm.

>
> Hope this helps.
>

Ditto,

-- 
Earnie
-- https://sites.google.com/site/earnieboyd

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

