Skip Menu |
 

This queue is for tickets about the AnyEvent-FileLock CPAN distribution.

Report information
The Basics
Id: 123196
Status: resolved
Priority: 0/
Queue: AnyEvent-FileLock

People
Owner: Nobody in particular
Requestors: CHORNY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.04
Fixed in: (no value)



Subject: AnyEvent-FileLock.t hangs on Windows
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Message-ID: <rt-4.0.18-5521-1507212774-1389.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 370
Download (untitled) / with headers
text/plain 370b
1..4 ok 1 - use AnyEvent::FileLock; # Subtest: file handle as locking target ok 1 - got lock 1..1 ok 2 - file handle as locking target # Subtest: retry to get lock EV: error in callback (ignoring): Can't use an undefined value as a symbol reference at t/AnyEvent-FileLock.t line 41. (hangs) version 0.03 did not hang. -- Alexandr Ciornii, http://chorny.net
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-5521-1507212774-1389.0-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-5521-1507212774-1389.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-31980-1507232535-588.123196-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 542
Download (untitled) / with headers
text/plain 542b
On Thu Oct 05 10:12:55 2017, CHORNY wrote: Show quoted text
> 1..4 > ok 1 - use AnyEvent::FileLock; > # Subtest: file handle as locking target > ok 1 - got lock > 1..1 > ok 2 - file handle as locking target > # Subtest: retry to get lock > EV: error in callback (ignoring): Can't use an undefined value as a > symbol reference at t/AnyEvent-FileLock.t line 41. > (hangs) > > > > version 0.03 did not hang.
I have just uploaded version 0.05 with should fix the issue. Could you test it? https://metacpan.org/release/SALVA/AnyEvent-FileLock-0.05
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-31980-1507232535-588.123196-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-5521-1507212774-1389.0-0-0 [...] rt.cpan.org> <rt-4.0.18-31980-1507232535-588.123196-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-16770-1507236852-41.123196-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 223
Download (untitled) / with headers
text/plain 223b
On Thu Oct 05 15:42:15 2017, SALVA wrote: Show quoted text
> I have just uploaded version 0.05 with should fix the issue. Could you > test it?
It does not pass tests, but it does not hang anymore. -- Alexandr Ciornii, http://chorny.net
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-5521-1507212774-1389.0-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-5521-1507212774-1389.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-6257-1507643862-1947.123196-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 250
Download (untitled) / with headers
text/plain 250b
That issue was caused by locks not being reentrant on Windows. A new version that doesn't run the failing tests on Windows is now available from CPAN: https://metacpan.org/release/SALVA/AnyEvent-FileLock-0.06 Thank you for reporting the issue!!!


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.