Skip Menu |

This queue is for tickets about the Storable-AMF CPAN distribution.

Report information
The Basics
Id: 103009
Status: resolved
Priority: 0/
Queue: Storable-AMF

People
Owner: GRIAN [...] cpan.org
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 1.00
Fixed in: 1.07



Subject: Bleadperl 5.21.10 breaks Storable-AMF-1.05
The last PASS report is perl git commit d9dc8e0c5019810bfa3840ecadb302a2f01e01ae -> http://www.cpantesters.org/cpan/report/160d2798-cba7-11e4-a98a-9e824deff0a9 The first FAIL report is perl git commit d71230e7060d58db20a9853f2cbd19f150b65542 -> http://www.cpantesters.org/cpan/report/59f8d3dc-cddf-11e4-8ce2-9aeb5ea84f05
I think the module’s tests are at fault. 06-aux-utility.t contains this code: for (1..20) { my $a3 = []; @$a3= $a3; $addr = refaddr $a3; ref_clear($a3); #say STDERR refaddr($a3) unless $c{refaddr $a3}++; } { my $a3 = []; @$a3= $a3; is($addr, refaddr $a3); $addr = refaddr $a3; } So it’s checking that the [] in the second block reuses the same address as the [] in the first block. That has never been guaranteed. What exactly is this test’s purpose?
Subject: Re: [rt.cpan.org #103009] Bleadperl 5.21.10 breaks Storable-AMF-1.05
Date: Tue, 31 Mar 2015 15:13:19 +0300
To: bug-Storable-AMF [...] rt.cpan.org
From: Гришаев Анатолий <0body1 [...] rambler.ru>
27.03.2015 23:38, Father Chrysostomos via RT пишет: Show quoted text
> Queue: Storable-AMF > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=103009 > > > I think the module’s tests are at fault. > > 06-aux-utility.t contains this code: > > > for (1..20) > { > my $a3 = []; > @$a3= $a3; > $addr = refaddr $a3; > ref_clear($a3); > #say STDERR refaddr($a3) unless $c{refaddr $a3}++; > } > > { > my $a3 = []; > @$a3= $a3; > is($addr, refaddr $a3); > $addr = refaddr $a3; > } > > So it’s checking that the [] in the second block reuses the same address as the [] in the first block. That has never been guaranteed. > > What exactly is this test’s purpose? >
Memleak checking. Can you suggest better ideas for memleak checking? It works for perl -V <= v20