Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Mon, 6 Sep 2004 23:51:12 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: pthread_join not returning Message-ID: <20040907035112.GA4167@trixie.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20040906202740 DOT GA532 AT efn DOT org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040906202740.GA532@efn.org> User-Agent: Mutt/1.4.1i 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. cgf -- 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/