-
Notifications
You must be signed in to change notification settings - Fork 571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assertion `SvTYPE(sv) != (svtype)SVTYPEMASK' failed #16443
Comments
From @geeknikThis assertion failure is triggered in Perl v5.27.9 (v5.27.8-408-ga0da1e1. ./perl -e '($a)=map[split//],G0;$0=map abs($0[$a++]),@$a' perl: sv.c:6508: void Perl_sv_clear(SV *const): Assertion `SvTYPE(sv) != Testing against the installed v5.22.1 on Ubuntu with valgrind, I see this: ==26560== Invalid read of size 1 |
From @tonycozOn Tue, 27 Feb 2018 18:03:54 -0800, brian.carpenter@gmail.com wrote:
This looks like another stack-not-refcunted issue. $a ends up as [ "G", "0" ], and the "G" and "0" scalars are pushed onto the stack. The $a++ converts $a from a reference to a large integer, freeing both the array and it's contents, leaving an unreferenced SV on the stack. Tony |
The RT System itself - Status changed from 'new' to 'open' |
Migrated from rt.perl.org#132920 (status was 'open')
Searchable as RT132920$
The text was updated successfully, but these errors were encountered: