X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0	tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,RCVD_IN_DNSWL_NONE,UNPARSEABLE_RELAY
X-Spam-Check-By: sourceware.org
X-Yahoo-SMTP: jenXL62swBAWhMTL3wnej93oaS0ClBQOAKs8jbEbx_o-
Date: Mon, 22 Aug 2011 01:11:36 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: 1.7.9: static const std::string initialization lost in child process when using fork, dlopen
Message-ID: <20110822051136.GB25705@ednor.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <1558100995.357508.1313927301638.JavaMail.fmail@mwmweb008> <20110821165001.GA19565@ednor.casa.cgf.cx> <4E513BF4.90308@hones.org.uk> <20110821183857.GC19565@ednor.casa.cgf.cx> <1313961316.31093.28.camel@asus> <20110821221923.GA30284@ednor.casa.cgf.cx> <1313970991.31093.46.camel@asus> <20110822014409.GA7051@ednor.casa.cgf.cx> <1313985428.31093.48.camel@asus>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <1313985428.31093.48.camel@asus>
User-Agent: Mutt/1.5.20 (2009-06-14)
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 Sun, Aug 21, 2011 at 08:57:08PM -0700, Thomas D. Dean wrote:
>On Sun, 2011-08-21 at 21:44 -0400, Christopher Faylor wrote:
>You are confusing me with the original poster.  I just attempted to
>duplicate either of your results.

You're right.  I was confusing you with the original poster.  The
sentiment is the same, however.  Lets move on.

>> Please read what I said above:  "when linking the DLL", not when
>> linking *with*.  So put the -Wl,--enable-auto-image-base on the
>> line which produces the dll.
>
>I still get the stackdump...
>
>I will watch for a resolution...

I just tried the test case with 1.7.9.  I do sometimes (and sometimes
not) see a "child:Test" from the child but I also get a stackdump.  So
my initial suggestion to use a snapshot is probably the best solution.

cgf

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

