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: pthread_join not returning

On Mon, Sep 06, 2004 at 01:27:40PM -0700, Yitzchak Scott-Thoennes wrote:
>I've reported this before as affecting perl's threads; now I've got a
>C test program (attached) that shows the problem.  I know almost
>nothing about pthreads, so I apologize if there is an error in the
>code, but it should represent more or less what perl is doing to
>create and join a thread.
>This correctly proceeds to the end on 1.5.10-3 and the 20040604
>snapshot; with the 20040622 snapshot and later other ones and
>1.5.11-1, the whole process terminates in pthread_join.
>Hope this helps track this down; please let me know if the developers
>aren't seeing this problem or if there's anything more I can do to help.

I see the behavior but it isn't doing what you think it's doing.

The program is exiting correctly, it just isn't displaying "done".  This
is undoubtedly due to some changes in newlib that I thought were worked
around in cygwin.  stdout is probably getting closed inappropriately.

I'll see if I can rectify this behavior and release a 1.5.12 ASAP.

Thanks, btw, for the simple test case (TM).  FWIW, if you had previously
submitted this test case and demonstrated that this problem as more than
a perl problem it probably would have been fixed in time for 1.5.11.


Unsubscribe info:
Problem reports:

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