Re: [Boston.pm] perl 5.10 memory leak?

2016-12-14 Thread Duane Bronson
Yes! That fixes it. I'm not sure how 'local' makes a difference here, but it appears to work. I figured out how to override the built-in version::boolean to fix it as well, but I like the "local" solution better. Some of my testing shown here: Failure exposing leak: [mazu@cvm ~]$ perl -wE

Re: [Boston.pm] perl 5.10 memory leak?

2016-12-14 Thread Matthew Horsfall (alh)
On Wed, Dec 14, 2016 at 10:44 AM, Duane Bronson wrote: > Ahh - the bug is in universal.c in XS_version_boolean. Can I override that > in perl code? Something like this? > > sub version::boolean { > ... > } > > Thanks, Matthew! I'd like to know how you found that.

Re: [Boston.pm] perl 5.10 memory leak?

2016-12-14 Thread Ben Tilly
This is nasty. Does the following fix work for you? use IO::All; if ($^V lt v5.16.0) { no warnings 'redefine'; my $orig_destroy = *IO::All::DESTROY{CODE}; *IO::All::DESTROY = sub { my $self = shift; local $^V; $orig_destroy->($self, @_) if $orig_destroy; }; } This

Re: [Boston.pm] perl 5.10 memory leak?

2016-12-14 Thread Duane Bronson
Ahh - the bug is in universal.c in XS_version_boolean. Can I override that in perl code? Something like this? sub version::boolean { ... } Thanks, Matthew! I'd like to know how