Subject: | Problem with 5.8.5 |
I've been using Text::Reflow for a while and last week, I upgraded my 5.8.2 to 5.8.5 and, kaboom :
$ cat foo.pl
use Text::Reflow 'reflow_string';
print reflow_string(q#Votre $_->{contrat} arrive à échéance le $_->{date}. Afin d'assurer la continuité du service merci de répondre $_->{urgent} à cet email afin de confirmer que vous souhaitez bien renouveler ce domaine au prix annuel de $_->{montant} Euro HT (soit $_->{montant_ttc} Euro TTC).#);
$ perl foo.pl
Out of memory during "large" request for 134221824 bytes, total sbrk() is 413452288 bytes at /usr/local/lib/perl5/site_perl/5.8.5/mach/Text/Reflow.pm line 610.
Bad free() ignored (PERL_CORE).
Bad free() ignored (PERL_CORE).
Bad free() ignored (PERL_CORE).
Bad free() ignored (PERL_CORE).
$ perl -d:Trace foo.pl
[..]
Show quoted text
>> /usr/local/lib/perl5/site_perl/5.8.5/mach/Text/Reflow.pm:609: for ($j = 0; $terminus >= 0; $j++) {
>> /usr/local/lib/perl5/site_perl/5.8.5/mach/Text/Reflow.pm:610: $output[$j] = join(' ', @words[$lastbreak+1..$terminus])."\n";
>> /usr/local/lib/perl5/site_perl/5.8.5/mach/Text/Reflow.pm:612: $terminus = $lastbreak;
>> /usr/local/lib/perl5/site_perl/5.8.5/mach/Text/Reflow.pm:613: $lastbreak = $linkbreak[$lastbreak];
>> /usr/local/lib/perl5/site_perl/5.8.5/mach/Text/Reflow.pm:610: $output[$j] = join(' ', @words[$lastbreak+1..$terminus])."\n";
>> /usr/local/lib/perl5/site_perl/5.8.5/mach/Text/Reflow.pm:612: $terminus = $lastbreak;
>> /usr/local/lib/perl5/site_perl/5.8.5/mach/Text/Reflow.pm:613: $lastbreak = $linkbreak[$lastbreak];
>> /usr/local/lib/perl5/site_perl/5.8.5/mach/Text/Reflow.pm:610: $output[$j] = join(' ', @words[$lastbreak+1..$terminus])."\n";
>> /usr/local/lib/perl5/site_perl/5.8.5/mach/Text/Reflow.pm:612: $terminus = $lastbreak;
>> /usr/local/lib/perl5/site_perl/5.8.5/mach/Text/Reflow.pm:613: $lastbreak = $linkbreak[$lastbreak];
>> /usr/local/lib/perl5/site_perl/5.8.5/mach/Text/Reflow.pm:610: $output[$j] = join(' ', @words[$lastbreak+1..$terminus])."\n";
>> /usr/local/lib/perl5/site_perl/5.8.5/mach/Text/Reflow.pm:612: $terminus = $lastbreak;
>> /usr/local/lib/perl5/site_perl/5.8.5/mach/Text/Reflow.pm:613: $lastbreak = $linkbreak[$lastbreak];
>> /usr/local/lib/perl5/site_perl/5.8.5/mach/Text/Reflow.pm:610: $output[$j] = join(' ', @words[$lastbreak+1..$terminus])."\n";
Bad realloc() ignored at /usr/local/lib/perl5/site_perl/5.8.5/mach/Text/Reflow.pm line 610.
Segmentation fault (core dumped)
make test produces the same kind of things.