D
Dave
The following program (I have removed all the functionality but retained the
problem), causes Perl to crash with a 'Free to wrong pool' error when fed
with a large XML file containing Unicode data. (but not with a minimal xml
unicode file).
Perl 5.8.6 on cygwin runs fine.
If I remove the binmode line it is OK.
It is the executable rather than the shell that causes the problem (as I
have fed the Activestate version from the cygwin shell and the cygwin perl
from the cmd shell to test this).
Does anyone know why?
use XML:arser;
use strict;
use warnings;
binmode(STDIN, ":utf8") or die "Couldn't binmode STDIN";
my $parser = new XML:arser(Handlers => {Start => sub {},
End => sub {},
Char => sub {}});
$parser->parse(*STDIN);
problem), causes Perl to crash with a 'Free to wrong pool' error when fed
with a large XML file containing Unicode data. (but not with a minimal xml
unicode file).
Perl 5.8.6 on cygwin runs fine.
If I remove the binmode line it is OK.
It is the executable rather than the shell that causes the problem (as I
have fed the Activestate version from the cygwin shell and the cygwin perl
from the cmd shell to test this).
Does anyone know why?
use XML:arser;
use strict;
use warnings;
binmode(STDIN, ":utf8") or die "Couldn't binmode STDIN";
my $parser = new XML:arser(Handlers => {Start => sub {},
End => sub {},
Char => sub {}});
$parser->parse(*STDIN);