public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
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
Date: Sun, 21 Aug 2011 17:05:00 -0000	[thread overview]
Message-ID: <20110821170532.GB19565@ednor.casa.cgf.cx> (raw)
In-Reply-To: <1558100995.357508.1313927301638.JavaMail.fmail@mwmweb008>

On Sun, Aug 21, 2011 at 01:48:21PM +0200, whans@web.de wrote:
>./test.exe prints only 'parent:Test' - parent works as expected - and gives a
>test.exe.stackdump - after 30 seconds.
>  
>  
>an example gdb session looks like:
>attach <child pid>
>b load
>c                (needs up to 30 seconds for return)
>n
>n
>n
>s                (step into dll's cTest::get method)
>p t             (print cTest::t, _M_p seems to be corrupt)
>$1 = {static npos = <optimized out>,
>   _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<
>No data fields>}, <No data fields>}, _M_p = 0x0}}
>n
>Program received signal SIGSEGV, Segmentation fault.
>0x6c4b95be in cygstdc++-6!_ZNSsC1ERKSs () from /usr/bin/cygstdc++-6.dll
>  
>  Any idea to fix or circumvent this error 

I don't get a coredump.  What I do get, after a 30 second wait, is:

child:Test

Maybe a snapshot will work better for you:  http://cygwin.com/snapshots/

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

      parent reply	other threads:[~2011-08-21 17:05 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-21 11:48 whans
2011-08-21 16:50 ` Christopher Faylor
2011-08-21 17:10   ` Cliff Hones
2011-08-21 18:39     ` Christopher Faylor
2011-08-21 21:15       ` Thomas D. Dean
2011-08-21 22:19         ` Christopher Faylor
2011-08-21 23:15           ` Thomas D. Dean
2011-08-21 23:56           ` Thomas D. Dean
2011-08-22  1:44             ` Christopher Faylor
2011-08-22  3:57               ` Thomas D. Dean
2011-08-22  5:11                 ` Christopher Faylor
2011-08-22  5:52                   ` Thomas D. Dean
2011-08-21 17:05 ` Christopher Faylor [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110821170532.GB19565@ednor.casa.cgf.cx \
    --to=cgf-use-the-mailinglist-please@cygwin.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).