Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
SEGV in Perl_hv_common with 5.20.1 and Encode 2.62 #14126
Thanks to Slaven Rezić for bringing this candidate to my attention.
The SEGV only happens occasionally while running the test
I just have observed it with 5.20.1 but according to cpantesters it
Very similar to my current observation is
Here is my stacktrace:
Core was generated by `/home/sand/src/perl/repoperls/installed-perls/perl/v5.20.1/127e/bin/perl -Mblib'.
warning: Source file is more recent than executable.
I attach a valgrind output from running
env PERL_DESTRUCT_LEVEL=2 valgrind --num-callers=5 \
==22122== Memcheck, a memory error detector
On Tue Sep 30 18:30:09 2014, andreas.koenig.7os6VVqR@franz.ak.mind.de wrote:
This is a bug in Encode.
I've reported this upstream with a fix as https://rt.cpan.org/Ticket/Display.html?id=99264
The problem is Member_mime_name() calls call_pv(), which can reallocate the stack, but then continues to use the old stack.
Adding SPAGAIN fixes it. Method_perlio_ok() has a similar problem which I've also patched.