Subject: Re: segfault with pthread and detached attribute
From: Corinna Vinschen <[email-masked]>
To: [email-masked]
Cc: Samuel Thibault <[email-masked]>, [email-masked]
Date: Sat, 6 Aug 2005 16:56:51 +0200

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:[email-masked]
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/