Don't try to free an already-freed SV. #21416
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This fixes a segfault with Perl v5.39.1-256 compiled from source on WSL2 when running
perl -e 'grep a,@a=b,@a=c'
, and a double free or corruption (out) error when running the following script:perl -e 'grep%agc=ION2.ljt,s_re_deljt,%agc=Idbdeljt,splitxre_deljt,%agc=Idb-openON2..%xre_deljt,splitxt,d'
After applying this PR, the double free message changed to
Attempt to free unreferenced scalar: SV 0x56218767b558, Perl interpreter: 0x5621876782a0 at AFL++/output/default/crashes/id:000077,sig:11,src:036114,time:106667371,execs:30357718,op:havoc,rep:4 line 1.
WSL2 version: openSUSE 15.5
Perl version:
I was going to check if this crash also happens on Perl 5.38.0, but
perlbrew
said there was no makefile found.