This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
Re: gcc static constructor multi-threading flaw
- From: Joe Buehler <jbuehler at hekimian dot com>
- To: cygwin-developers at cygwin dot com
- Date: Thu, 06 Mar 2003 11:16:07 -0500
- Subject: Re: gcc static constructor multi-threading flaw
- Organization: Spirent Communications, Inc.
- References: <3E4D06B8.5010306@hekimian.com> <20030305050809.GB29712@redhat.com>
- Reply-to: jbuehler at hekimian dot com
Christopher Faylor wrote:
Since neither gcc nor newlib have responded to this problem, I've
added a wrapper in cygwin. It will be in 1.3.21.
By the way, if I recall correctly, the real fix *has* to be made in gcc.
There is still a race in the gcc-generated code that can cause
double-destruction at process exit.
Your fix should eliminate the core dumps caused by atexit data structure
corruption, though.
--
Joe Buehler