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: Christopher Faylor <cgf at redhat dot com>
- To: cygwin-developers at cygwin dot com
- Date: Fri, 14 Feb 2003 10:13:14 -0500
- Subject: Re: gcc static constructor multi-threading flaw
- References: <3E4D06B8.5010306@hekimian.com>
- Reply-to: cygwin-developers at cygwin dot com
On Fri, Feb 14, 2003 at 10:09:44AM -0500, Joe Buehler wrote:
>Note that this is not a total fix. As I recall, the code generated by
>gcc is inherently not thread-safe -- it's testing a global to see
>whether to do the constructor/destructor code block, and there is a
>race condition.
If this is a general gcc issue, then you should ping the gcc mailing list.
I'd like to see how the newlib folks respond to your atexit problem,
otherwise. One of the principals is on vacation this week so we'll
see if he has anything to say next week.
cgf