Skip Menu |

This queue is for tickets about the Module-Pluggable CPAN distribution.

Report information
The Basics
Id: 80416
Status: resolved
Priority: 0/
Queue: Module-Pluggable

People
Owner: Nobody in particular
Requestors: yves [...] cpan.org
Cc: perl5-porters [...] perl.org
AdminCc:

Bug Information
Severity: Normal
Broken in: 4.3
Fixed in: (no value)



CC: perl5-porters [...] perl.org
Subject: hash order dependency bug in tests
Hi, I have been working on making it possible to add new hash algorithms to perl core and on making the hash seed random per process for security reasons. In my work on this I have encountered a hash order dependency bug in t/23depth.t. The attached patch fixes the bug and does a version bump. It would be really nice if this or an equivalent fix could get applied sometime soon as I would like to merge my hash changes to core soon and this is a roadblock. Thanks, Yves
Subject: module_pluggable.patch
commit 3fdc3f3c62cdc14e6ac68a305ed7762df7d85fc4 Author: Yves Orton <demerphq@gmail.com> Date: Mon Aug 27 08:55:32 2012 +0200 fix hash key order dependency from cpan/Module-Pluggable/t/23depth.t Hash seed randomization causes the order to change per process. I have bumped Module-Pluggable's version here. diff --git a/cpan/Module-Pluggable/lib/Module/Pluggable.pm b/cpan/Module-Pluggable/lib/Module/Pluggable.pm index 5ce4ca9..eda2010 100644 --- a/cpan/Module-Pluggable/lib/Module/Pluggable.pm +++ b/cpan/Module-Pluggable/lib/Module/Pluggable.pm @@ -9,7 +9,7 @@ use Module::Pluggable::Object; # Peter Gibbons: I wouldn't say I've been missing it, Bob! -$VERSION = '4.3'; +$VERSION = '4.4'; # core release only! $FORCE_SEARCH_ALL_PATHS = 0; sub import { diff --git a/cpan/Module-Pluggable/t/23depth.t b/cpan/Module-Pluggable/t/23depth.t index 51ccfca..b451b89 100644 --- a/cpan/Module-Pluggable/t/23depth.t +++ b/cpan/Module-Pluggable/t/23depth.t @@ -8,7 +8,7 @@ use Test::More tests => 2; my $min = MinTest->new(); my $max = MaxTest->new(); -is_deeply([qw(MyOtherTest::Plugin::Bar MyOtherTest::Plugin::Foo MyOtherTest::Plugin::Quux)], [$max->plugins], "min depth"); +is_deeply([sort qw(MyOtherTest::Plugin::Bar MyOtherTest::Plugin::Foo MyOtherTest::Plugin::Quux)], [sort $max->plugins], "min depth"); is_deeply([qw(MyOtherTest::Plugin::Quux::Foo)], [$min->plugins], "max depth");
CC: perl5-porters [...] perl.org
Subject: Re: [rt.cpan.org #80416] hash order dependency bug in tests
Date: Sat, 3 Nov 2012 13:57:50 +0100
To: bug-Module-Pluggable [...] rt.cpan.org
From: demerphq <demerphq [...] gmail.com>
On 26 October 2012 10:45, Yves via RT <bug-Module-Pluggable@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=80416 > > > Hi, > > I have been working on making it possible to add new hash algorithms to > perl core and on making the hash seed random per process for security > reasons. > > In my work on this I have encountered a hash order dependency bug in > t/23depth.t. The attached patch fixes the bug and does a version bump. > > It would be really nice if this or an equivalent fix could get applied > sometime soon as I would like to merge my hash changes to core soon and > this is a roadblock.
Sorry to bug, but any idea on this? Yves -- perl -Mre=debug -e "/just|another|perl|hacker/"
CC: undisclosed-recipients: ;
Subject: Re: [rt.cpan.org #80416] hash order dependency bug in tests
Date: Sat, 3 Nov 2012 23:05:17 +0000
To: demerphq via RT <bug-Module-Pluggable [...] rt.cpan.org>
From: Simon Wistow <simon [...] thegestalt.org>
On Sat, Nov 03, 2012 at 08:57:59AM -0400, demerphq via RT said: Show quoted text
> Sorry to bug, but any idea on this?
whoops, sorry - managed to miss this. Will get a release out today or tomorrow.
Fixed in 7526c5229acde386479cbddf3bed8b892c43ed93 and released as 4.4
CC: yves [...] cpan.org, Perl5 Porteros <perl5-porters [...] perl.org>
Subject: Re: [rt.cpan.org #80416] Resolved: hash order dependency bug in tests
Date: Tue, 6 Nov 2012 10:53:24 +0100
To: bug-Module-Pluggable [...] rt.cpan.org
From: demerphq <demerphq [...] gmail.com>
On 6 November 2012 01:37, Simon Wistow via RT <bug-Module-Pluggable@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=80416 > > > According to our records, your request has been resolved. If you have any > further questions or concerns, please respond to this message.
Hi thanks a lot. I have updated the version in blead: commit 9fa5c3e1fb9321e9f7780ee75e4ff445a232d590 Author: Yves Orton <demerphq@gmail.com> Date: Tue Nov 6 09:26:35 2012 +0100 upgrade Module::Pluggable to 4.5 (test changes only) note there is an untrue comment next to VERSION line in Pluggable.pm, 4.5 is also on CPAN. Also note this patch keeps the old Makefile.PL based make process intact. -- perl -Mre=debug -e "/just|another|perl|hacker/"