develooper Front page | perl.perl5.porters | Postings from April 2016

[perl #127981] [PATCH] Deep recursion warning with%Module::CoreList::version

Thread Next
From:
Father Chrysostomos via RT
Date:
April 24, 2016 21:49
Subject:
[perl #127981] [PATCH] Deep recursion warning with%Module::CoreList::version
Message ID:
rt-4.0.18-1771-1461534526-1892.127981-15-0@perl.org
On Sun Apr 24 12:35:03 2016, ntyni@debian.org wrote:
> This is a bug report for perl from Niko Tyni <ntyni@debian.org>,
> generated with the help of perlbug 1.40 running under perl 5.22.1.
> 
> 
> -----------------------------------------------------------------
> [Please describe your issue here]
> 
> Iterating over %Module::CoreList::version elements for Perl >= 5.23.2
> causes a deep recursion warning. Apparently the elements are chained
> together, and the length of the chain now exceeds the heuristic
> warning
> limit (100).
> 
> % perl -MModule::CoreList -wE 'say scalar keys
> %{$Module::CoreList::version{5.023002}}'
> Deep recursion on subroutine
> "Module::CoreList::TieHashDelta::FIRSTKEY" at
> /usr/share/perl/5.22/Module/CoreList/TieHashDelta.pm line 54.
> 622
> 
> Proposed patch attached, assuming "no warnings 'recursion'" is fine
> on older perls?

I have used it in 5.8, so it should be fine.

I think this should be fixed before we release 5.24.  Your patch looks OK to me, but I have not tested it.

-- 

Father Chrysostomos


---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=127981

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About