[1.7] pthread_create block
Thomas Stalder
cygwinml@gmail.com
Tue Jun 2 13:54:00 GMT 2009
Hello,
I have tried the patch and my test application seem now working well.
Many thanks
--
Thomas
2009/6/2 Dave Korn <dave.korn.cygwin@googlemail.com>:
> Thomas Stalder wrote:
>
>> Sometimes pthread_create block and never return.
>>
>> I have made a simple program (test.c) to reproduce the problem.
>>
>>> gcc test.c -lpthread -o test
>>> ./test
>> thread id=1
>> thread id=2
>> thread id=3
>> thread id=4
>> ........
>> thread id=3736
>>
>>
>> Sometimes pthread_create block after creating arround 10 threads,
>> sometimes after creating arround 10000 threads or more.
>
> You may have run into the pthread interlocking bug that I'm tracking down in
> this thread on the cygwin-dev list:
>
> http://www.cygwin.com/ml/cygwin-developers/2009-05/threads.html#00084
>
> If you'd like to try building the cygwin DLL yourself from the CVS sources
> with the attached patch applied, you may find it solves your problem; at least
> for me it does. I've been running your test program while writing this email
> and it's got as far as this:
>
> thread id=1260546
> thread id=1260547
>
> ... without a hiccup. Actually, now it's got as far as
>
> thread id=2405875
>
> by the time I diff'd the patch for you. (If you'd prefer, I could send you a
> binary of the DLL built with the patch, off-list; let me know).
>
> cheers,
> DaveK
>
> --
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> Problem reports: http://cygwin.com/problems.html
> Documentation: http://cygwin.com/docs.html
> FAQ: http://cygwin.com/faq/
>
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list