delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/11/12/07:28:28

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=qGgqLwENGY4CfZ5Q8nQiX1Uy5lG75khxWrnhVUiENrkEUDTqjGtfd
O2T37Az6Ns5NA6HaSv9ASLnNep2Jj1L1oQpjtdAEE+iREcWJHK1ZV1gCYpgXayYQ
iLcBQodHmZajq/ZVeRp7Koy7cXWgyHparI1On0eidflQQ5O+79IQLk=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=ljkcHBUecnoYtSjTC/oC+vcUGXA=; b=VmmRWOTudAtDKUd/4mU0CjpMbLix
emZAx/5Litv8wuLPeLc1WLebaNwk7DUU1Lp6bt4ucGYKWpzqdSiulxwOJ6tNzwB3
whU07SQodw/WGyaFMUEhSNMK8BMhsqCBtgm9y20kPu1aSknQGgRgf5ohSq6tLB1o
R/myg1KKoDJ/wdM=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
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
Date: Thu, 12 Nov 2015 13:28:09 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: 2.3.0: possible Cygwin flock bug (Windows 10 x86_64)
Message-ID: <20151112122809.GB1774@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <CACnvoQfd04snMS5OHu_WuqH+csXBWvXwUCutip9xZb6Hvi9ueg AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <CACnvoQfd04snMS5OHu_WuqH+csXBWvXwUCutip9xZb6Hvi9ueg@mail.gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)

--ftEhullJWpWg/VHq
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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

-----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--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019