On 2014-11-08 23:32:31, DROLSKY wrote:
Show quoted text> On Fri Dec 06 04:17:46 2013, rikard.nordgren@farmbio.uu.se wrote:
> > The short program below crashes perl 50% of the time with the following
> > error:
> >
> > *** Error in `perl': corrupted double-linked list: 0x0000000001baeeb8 ***
> >
> > I use MooseX::Params::Validate 0.18 with perl 5.14.2 on Ubuntu 13.10
> >
> > #!/usr/bin/perl
> >
> > use MooseX::Params::Validate;
> >
> > sub func
> > {
> > my %parm = validated_hash(\@_,
> > filter => { isa => 'ArrayRef[Int]', optional => 1 },
> > );
> > }
> >
> > my @filt;
> >
> > foreach (my $i = 0; $i < 16000; $i++) {
> > $filt[$i] = 1;
> > }
> >
> > func('filter' => \@filt);
>
> Sorry I didn't reply before. Does this still happen with a newer Perl too?
I can also reproduce the crashes with the sample script on a Debian/wheezy system, and it seems to affect all perl versions. Here's a list of number of crashes -> perl version:
$ sort /tmp/blacrashes.log | uniq -c
4 /opt/perl-5.10.1/bin/perl crashed
2 /opt/perl-5.12.5/bin/perl crashed
6 /opt/perl-5.14.4/bin/perl crashed
6 /opt/perl-5.16.3/bin/perl crashed
6 /opt/perl-5.18.2/bin/perl crashed
6 /opt/perl-5.18.2t/bin/perl crashed
6 /opt/perl-5.18.3-RC1/bin/perl crashed
6 /opt/perl-5.18.4/bin/perl crashed
6 /opt/perl-5.18.4t/bin/perl crashed
1 /opt/perl-5.19.11/bin/perl crashed
1 /opt/perl-5.20.0-RC1/bin/perl crashed
2 /opt/perl-5.20.0/bin/perl crashed
2 /opt/perl-5.20.0t/bin/perl crashed
3 /opt/perl-5.20.1-RC1/bin/perl crashed
1 /opt/perl-5.20.1-RC2/bin/perl crashed
2 /opt/perl-5.20.1/bin/perl crashed
6 /opt/perl-5.20.1d/bin/perl crashed
3 /opt/perl-5.21.3/bin/perl crashed
4 /opt/perl-5.21.4/bin/perl crashed
1 /opt/perl-5.21.5/bin/perl crashed
6 /opt/perl-5.21.6/bin/perl crashed