This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ANNOUNCEMENT] Updated: Cygwin 1.7.31-1


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

Attachment: pgpvnrTzKYsy2.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]