This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: G++ guru's please comment - Re: FW: pthread_create problem in Cygwin 1.1.8-2]


On Mon, Apr 09, 2001 at 10:09:54PM +1000, Robert Collins wrote:
>> The error you get is a result of a race condition on a lookup table
>> shared by all threads. The stack is NOT corrupted in any way.
>
>It's not a race condition per se (timing has nothing to do with it, it's
>guaranteed if two or more threads enter a try block concurrently).
>Something in g++ is dsiabled when it's built without thread support, and
>it returns the same base address for the context struct for each thread.
>That function should return a different context regardless IMO, unless
>they are using pthread_key_create, which I have also implemented. There
>is a patch for that in the cygwin patch list archives, and hopefully
>it'll be in CVS soon.

Isn't this patch gated on newlib changes?  If not, I missed it.  I thought
we were still waiting on final word on newlib reorganization.

cgf

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]