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


in reply to Re^2: Regex replace leaking memory.
in thread Regex replace leaking memory.

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.

Replies are listed 'Best First'.
Re^4: Regex replace leaking memory.
by swl (Parson) on Aug 25, 2020 at 07:03 UTC

    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.