delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/06/10:57:02

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: Sat, 6 Aug 2005 16:56:51 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Cc: Samuel Thibault <samuel DOT thibault AT ens-lyon DOT org>, 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 <samuel DOT thibault AT ens-lyon DOT org>, dave AT mielke DOT cc
References: <20050806134546 DOT GP6968 AT bouh DOT labri DOT fr>
Mime-Version: 1.0
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/

- Raw text -


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