Bug#912900: perl: Storable stack recursion limit probe in 5.28 seems overly sensitive

Niko Tyni ntyni at debian.org
Sun Nov 4 19:23:15 GMT 2018


Package: perl
Version: 5.28.0-3
Severity: important
Tags: upstream

  % perl -MStorable=nstore -e '$h->{$i}{a}{b}{c} = 0 while $i++<10000; nstore($h, "testfile")'
  Max. recursion depth with nested structures exceeded at /usr/lib/x86_64-linux-gnu/perl/5.28/Storable.pm line 278, at -e line 1.

The documentation states

  Since Storable 3.05 we probe for the stack recursion limit for
  references, arrays and hashes to a maximal depth of ~1200-35000,
  otherwise we might fall into a stack-overflow.

but there's no recursion involved here, so it looks like the probe
heuristic is not quite working?

This broke apt-show-versions (#912695) and is sort of a regression,
not quite sure if we should consider it release critical or not.

Needs discussion upstream.
-- 
Niko Tyni   ntyni at debian.org




More information about the Perl-maintainers mailing list