From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 99889 invoked by alias); 12 Nov 2015 12:28:14 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 96710 invoked by uid 89); 12 Nov 2015 12:28:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.1 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 X-HELO: calimero.vinschen.de Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 12 Nov 2015 12:28:11 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 5B987A8062D; Thu, 12 Nov 2015 13:28:09 +0100 (CET) Date: Thu, 12 Nov 2015 12:28:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: 2.3.0: possible Cygwin flock bug (Windows 10 x86_64) Message-ID: <20151112122809.GB1774@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ftEhullJWpWg/VHq" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2015-11/txt/msg00196.txt.bz2 --ftEhullJWpWg/VHq Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1368 Hi Mario, On Nov 11 21:51, Mario Roy wrote: > Greetings, >=20 > During testing of the Perl MCE 1.608 module (uses flock), the examples > scripts hang. Downgrading the base Cygwin package from 2.3.0-1 to > 2.2.1-1 resolves the issue. >=20 > Installation is not required if a Cygwin developer desires to test > file locking via the Perl MCE module. >=20 > https://cpan.metacpan.org/authors/id/M/MA/MARIOROY/MCE-1.608.tar.gz >=20 > 1. extract tar file > 2. cd MCE-1.608/examples > 3. perl foreach.pl 10 >=20 > Hangs with Cygwin 2.3.0-1 > Successful with Cygwin 2.2.1-1 Thanks for the testcase. I found the problem. In 2.2.1 was a=20 use-after-free bug in the file locking code which I fixed in 2.3.0... just wrongly. It fails to work in certain cases when locking collisions occur. I fixed this in the git repo. I uploaded a new developer snapshot to https://cygwin.com/snapshots/ Please give it a try. > The upcoming Perl MCE 1.7 release does away with file locking and > works with 2.3.0-1. Uh, please don't do this. This is a bug in Cygwin 2.3.0, and the right fix is to release Cygwin 2.3.1 end of this week, not to change other packages to workaround this bug. > p.s. Thank you for Cygwin Thanks :) Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --ftEhullJWpWg/VHq Content-Type: application/pgp-signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWRIXZAAoJEPU2Bp2uRE+gjyMP+QHS2RKpihkwDGyt+ZYWNXYH tFk/cFMN6VKhrOXdFpY3jc2PI3LIeF2Yfs4b1gSsM+YuxTXKt4xwMDUZE+uwbiq5 NRqabMb2M1QSfM03iq4nt9dmRZdryy3B2Ebit6/LwL4kUPEQrfNwFQpXlhLgUK/j 5jx969iJ3QNMvtFf8R6GYQTXXbgMzlVL1kZG1o/qE/zRn0JMQkm2T2RNiIo7/Ehw saCR7xQkpIkUkBSwKsUbgk3CDZ8A+WNxnGQLWOWzXli9YrS5Akd740pFIxRF9M1+ JjqTM1SasQcmLbk6vEi9gaK+oNQZImE/cNn2wYkOUApQzkrRXBoJtEOgxin7KD3D 1JxRxtomTAi3adrvvurCIkGHgFDNy7c+vWnPaRdwB64c35DK1wwQLqFy4whxD8Rq wYRW1SZDEiLCatdFqYo+Zw9fNJdzAwpGWa1jAzzgG9T4q2Zmx+FeXB6/I0LMwhWh RPCRzvaAKNE3WEOttsHueEvObwQEpang8wiQzAu3rZVvhpB2JL0sFTC9MFN/Itaa 4nl8BdZr2F1vopyrztcUn/kTFnhOA6EtzzXuNVkBbN15yScofe95/IJSXQ+lDbMj 4jpJ7lVHabhJIl7u2RkL41Id/58YZF8bbLYRzFvF3PwM3J0NQKLsjc+wlc9sjGzZ KO1JTaZPcN3rjFgEZ534 =Z2jx -----END PGP SIGNATURE----- --ftEhullJWpWg/VHq--