This is the mail archive of the cygwin 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]
Other format: [Raw text]

Re: Use of Dual Core causes random failures building OpenJDK


On Fri, Nov 20, 2009 at 12:20:52PM +0100, Corinna Vinschen wrote:
>On Nov 20 06:04, mike marchywka wrote:
>> On 11/19/09, Larry Hall (Cygwin) <reply-to-list-only-lh@cygwin.com> wrote:
>>>Wow! I had a hunch that BLODA could be the cause of the file related
>>>problems but it never occurred to me that it could be screwing up
>>>environment variables too.
>>
>>Anyone care to determine if env updates are not thread safe?
>
>It's indeed not thread safe.  Looks like we need some locking...

What's "it" in this case?  putenv?

  The putenv() function is not required to be reentrant, and the one in
  libc4, libc5 and glibc 2.0 is not, but the glibc 2.1 version is

I agree that it would be nice to make it safer but is there really code
here which is updating the environment in separate threads?

cgf

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


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