http://qs321.pair.com?node_id=11121067


in reply to Regex replace leaking memory.

I cannot reproduce your issue using Strawberry Perl 5.28.0.

1 new 000000000072a728 :

You might need to provide more details from perl -v (or perhaps perl -V).

Update:

Also cannot reproduce using perl 5.30 using perlbrew under Windows Subsystem for Linux.

perl -v:

This is perl 5, version 30, subversion 0 (v5.30.0) built for x86_64-li +nux

Replies are listed 'Best First'.
Re^2: Regex replace leaking memory.
by Striker1440 (Sexton) on Aug 25, 2020 at 05:26 UTC
    Edited original message to include distribution and Perl versioning.

      Thanks for the update.

      I also cannot reproduce on Centos 7.8.2003:

      This is perl 5, version 30, subversion 0 (v5.30.0) built for x86_64-li +nux

      One difference between yours and mine is that yours are all multithreaded, with the failing ones being gnu-thread-multi. I don't know if that has any relevance, but hopefully others can comment on that.

      Update:

      I also tested under an Ubuntu version 18 with the system perl, version 5.26.1 x86_64-linux-gnu-thread-multi, and could not reproduce.

        I should also note that in all my cases I have been using Devel::Leak from CPAN.

        If I use the libdevel-leak-perl package with the system perl under Ubuntu 18, then I can reproduce the problem.