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: Sat, 6 Aug 2005 16:56:51 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Cc: Samuel Thibault , dave AT mielke DOT cc Subject: Re: segfault with pthread and detached attribute Message-ID: <20050806145651.GK14783@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com, Samuel Thibault , dave AT mielke DOT cc References: <20050806134546 DOT GP6968 AT bouh DOT labri DOT fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050806134546.GP6968@bouh.labri.fr> User-Agent: Mutt/1.4.2i On Aug 6 15:45, Samuel Thibault wrote: > Hi, > > I had strange hangs and segfaults with a program, and it happens that > detached thread termination may segfault: > [...] > Adding a Sleep(1000); in the f() function before returning prevents from > the crash, so I guess f() returning fast triggers a race condition in > the pthread code. Thanks for the testcase. This is fixed in current CVS, apparently. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- 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/