Subject: | Runs forever on 5.25.4, stuck encoding chr(720 ) ( U+2D0 ) |
This is likely to be due to either changes in Perl itself, or changes in Encoding.pm
There are no other smoke reports listed for 5.25.4, I suspect, due to them running forever.
I forced a report by tripping a failure on purpose by sending a SIGALARM after it had been idling for 20 minutes on the first run, and 2 minutes on the second run, because after consulting previous PASSes, it seemed normal times were in seconds, not minutes.
http://www.cpantesters.org/cpan/report/43fcc7de-6850-11e6-bba0-2276043e2754
The failure appears to be in :
eval { $txt = Encode::encode($charset, Encode::decode_utf8($uni), 1) };
And that line of code runs indefinately, and strace only indicates loads of calls to brk()
Reducing it further I found that the following code also produces the same "block"
require Encode::ISO2022JP2;
my $text = Encode::encode( 'iso2022jp-2', chr(720) );
And this test case gets stuck allocating memory as well...
brk(0x1347000) = 0x1347000
mremap(0x7f67a1605000, 163840, 204800, MREMAP_MAYMOVE) = 0x7f67a15d3000
mremap(0x7f67a15d3000, 204800, 253952, MREMAP_MAYMOVE) = 0x7f67a15d3000
mremap(0x7f67a15d3000, 253952, 319488, MREMAP_MAYMOVE) = 0x7f67a15d3000
mremap(0x7f67a15d3000, 319488, 397312, MREMAP_MAYMOVE) = 0x7f67a1568000
mremap(0x7f67a1568000, 397312, 495616, MREMAP_MAYMOVE) = 0x7f67a14ef000
mremap(0x7f67a14ef000, 495616, 618496, MREMAP_MAYMOVE) = 0x7f67a14ef000
mremap(0x7f67a14ef000, 618496, 774144, MREMAP_MAYMOVE) = 0x7f67a14ef000
mremap(0x7f67a14ef000, 774144, 966656, MREMAP_MAYMOVE) = 0x7f67982f4000
mremap(0x7f67982f4000, 966656, 1208320, MREMAP_MAYMOVE) = 0x7f67a14a2000
mremap(0x7f67a14a2000, 1208320, 1507328, MREMAP_MAYMOVE) = 0x7f6798270000
mremap(0x7f6798270000, 1507328, 1884160, MREMAP_MAYMOVE) = 0x7f67980a4000