From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15756 invoked by alias); 22 Aug 2011 03:57:24 -0000 Received: (qmail 15744 invoked by uid 22791); 22 Aug 2011 03:57:23 -0000 X-SWARE-Spam-Status: No, hits=-0.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail1.sea5.speakeasy.net (HELO mail1.sea5.speakeasy.net) (69.17.117.39) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 22 Aug 2011 03:57:09 +0000 Received: (qmail 27717 invoked from network); 22 Aug 2011 03:57:08 -0000 Received: from 24-113-112-30.wavecable.com (HELO [192.168.2.2]) (tomdean@[24.113.112.30]) (envelope-sender ) by mail1.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 22 Aug 2011 03:57:08 -0000 Subject: Re: 1.7.9: static const std::string initialization lost in child process when using fork, dlopen From: "Thomas D. Dean" Reply-To: tomdean@speakeasy.org To: cygwin@cygwin.com In-Reply-To: <20110822014409.GA7051@ednor.casa.cgf.cx> 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> Content-Type: text/plain; charset="UTF-8" Date: Mon, 22 Aug 2011 03:57:00 -0000 Message-ID: <1313985428.31093.48.camel@asus> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-08/txt/msg00420.txt.bz2 On Sun, 2011-08-21 at 21:44 -0400, Christopher Faylor wrote: > On Sun, Aug 21, 2011 at 04:56:31PM -0700, Thomas D. Dean wrote: > >On Sun, 2011-08-21 at 18:19 -0400, Christopher Faylor wrote: > >> 're reporting. > >> > >> If you don't want to try a snapshot for some reason then you could also > >> try setting the base address of the DLL by using the --auto-image-base > >> option when linking the DLL. > > > >I used > > > >g++ -Wall -I. -shared -g -c dll.cpp -o dll.o > >g++ -Wall -shared -o libdll.dll dll.o > >g++ -Wall -I. -g -c dlltest.cpp -o dlltest.o > >g++ -Wall -o dlltest dlltest.o -L. -ldll -Wl,--enable-auto-image-base > > > >I still have the stackdump problem. > > > >I used hd to look at the files I created with emacs and there are no > >strange characters. > > I certainly understand that you didn't mean to include strange > characters. The web archives show strange characters. Lets move on. You are confusing me with the original poster. I just attempted to duplicate either of your results. > > 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... tomdean -- 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