X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-3.5 required=5.0	tests=BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
From: Lenci Damien <dlenci@sopragroup.com>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: Re: problem with fork() and temp dlls
Date: Fri, 29 Jun 2012 12:07:39 +0000
Message-ID: <20044_1340971660_4FED9A8B_20044_5174_1_B03025C959FD1A4796D42DC68C9C0823046C6544@wancyexmbx01.ancy.fr.sopra>
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q5TC8Wl5002547

>>>Looks like fork problems to me.  Perhaps you need to rebase the DLLs you're
>>>building?  See the link below for more info:

>>I've already done that, sorry I should have mentioned it. 

>just to crosscheck, did you ran only
>   rebaseall
>or
>   rebaseall -T list_of_my_built_files
>
>
>rebaseall, as standard, is not aware of dll's not reported in the
>/etc/setup/*.gz lists.
>

I ran only rebaseall but it works with the "original" dll, and I just can't run a rebaseall between the creation and the load of the temporary file.
BTW, the error is not the same as the usual "unable to Remap xxxx to same address as parent".
Here, its "unable to map xxxx" with error 126 which means the dll has not been found (indeed, the file is deleted), imo, the child process just shouldn't search for it as it's already loaded by its parent.

Damien Lenci 



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


