[ANNOUNCEMENT] Updated: Cygwin 1.7.31-1
Corinna Vinschen
corinna-cygwin@cygwin.com
Mon Jul 21 16:37:00 GMT 2014
On Jul 21 14:19, D. Boland wrote:
> Hi Corinna,
>
> Corinna Vinschen wrote:
> >
> > [Now with correct subject, sorry]
> >
> > Hi Cygwin friends and users,
> >
> > I just released Cygwin 1.7.31-1. This is mostely a bugfix release.
> >
>
> $ uname -a
> CYGWIN_NT-5.1 dimension 1.7.31s(0.272/5/3) 20140716 11:15:29 i686 Cygwin
>
> With the snapshot in place, the ftp client hangs indefinitely after entering the
> password. Switching back to my old Cygwin DLL, it works again.
I could easily reproduce it. The cause is our switch from defaulting to
PTHREAD_MUTEX_ERRORCHECK to PTHREAD_MUTEX_NORMAL to align the behaviour
more closely to Linux.
The problem is a mutex which is part of every (p)thread. This mutex is
set to PTHREAD_MUTEX_RECURSIVE for all threads... except for the main
thread.
This is actually a long-standing bug. By defaulting to
PTHREAD_MUTEX_ERRORCHECK the bug was just not visible. Only by
switching to PTHREAD_MUTEX_NORMAL as default it became apparent,
so I'm rather glad this has been catched now. This could have
subtil side-effects in multi-threaded applications.
I'm going to release a fixed 1.7.31-2 in a few minutes.
Thanks for the report,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20140721/5996b573/attachment.sig>
More information about the Cygwin
mailing list