This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: segfault with pthread and detached attribute
- 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
- Date: Sat, 6 Aug 2005 16:56:51 +0200
- Subject: Re: segfault with pthread and detached attribute
- References: <20050806134546.GP6968@bouh.labri.fr>
- Reply-to: cygwin at cygwin dot com
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@cygwin.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/