delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/06/23:50:09

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 <cgf-no-personal-reply-please AT cygwin DOT com>
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
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019