Perl / perl5

🐪 The Perl programming language
https://dev.perl.org/perl5/
Other
1.91k stars 542 forks source link

Failed XSLoader::load() leaks memory #15348

Open p5pRT opened 8 years ago

p5pRT commented 8 years ago

Migrated from rt.perl.org#128209 (status was 'open')

Searchable as RT128209$

p5pRT commented 8 years ago

From @cpansprout

$ ./perl -ILib -e 'use XSLoader; warn $$; eval { XSLoader​::load() } while 1'

Run that script and watch the memory usage go up. I found this with Porting/leakfinder.pl\, so it is an SV leak.

--

Father Chrysostomos

p5pRT commented 8 years ago

From @jkeenan

On Sat May 21 17​:33​:17 2016\, sprout wrote​:

$ ./perl -ILib -e 'use XSLoader; warn $$; eval { XSLoader​::load() } while 1'

Run that script and watch the memory usage go up. I found this with Porting/leakfinder.pl\, so it is an SV leak.

1. I suspect that the 'L' in the second term should be lower-case\, i.e.​:

./perl -Ilib -e 'use XSLoader; warn $$; eval { XSLoader​::load() } while 1'

2. What is a good way to "watch the memory usage go up"?

-- James E Keenan (jkeenan@​cpan.org)

p5pRT commented 8 years ago

The RT System itself - Status changed from 'new' to 'open'

p5pRT commented 8 years ago

From @cpansprout

On Sun May 22 17​:34​:22 2016\, jkeenan wrote​:

On Sat May 21 17​:33​:17 2016\, sprout wrote​:

$ ./perl -ILib -e 'use XSLoader; warn $$; eval { XSLoader​::load() } while 1'

Run that script and watch the memory usage go up. I found this with Porting/leakfinder.pl\, so it is an SV leak.

1. I suspect that the 'L' in the second term should be lower-case\, i.e.​:

./perl -Ilib -e 'use XSLoader; warn $$; eval { XSLoader​::load() } while 1'

Yes. I often make that typo\, but it makes no difference on a case-tolerant file system.

2. What is a good way to "watch the memory usage go up"?

I use top.

--

Father Chrysostomos

p5pRT commented 8 years ago

From @demerphq

ps $pid On 22 May 2016 21​:25\, "Father Chrysostomos via RT" \< perlbug-followup@​perl.org> wrote​:

On Sun May 22 17​:34​:22 2016\, jkeenan wrote​:

On Sat May 21 17​:33​:17 2016\, sprout wrote​:

$ ./perl -ILib -e 'use XSLoader; warn $$; eval { XSLoader​::load() } while 1'

Run that script and watch the memory usage go up. I found this with Porting/leakfinder.pl\, so it is an SV leak.

1. I suspect that the 'L' in the second term should be lower-case\, i.e.​:

./perl -Ilib -e 'use XSLoader; warn $$; eval { XSLoader​::load() } while 1'

Yes. I often make that typo\, but it makes no difference on a case-tolerant file system.

2. What is a good way to "watch the memory usage go up"?

I use top.

--

Father Chrysostomos

--- via perlbug​: queue​: perl5 status​: open https://rt-archive.perl.org/perl5/Ticket/Display.html?id=128209