1.7.9: static const std::string initialization lost in child process when using fork, dlopen

Christopher Faylor cgf-use-the-mailinglist-please@cygwin.com
Mon Aug 22 05:11:00 GMT 2011

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.


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

More information about the Cygwin mailing list