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
null ptr deref and segfault: Perl_pad_add_anon (pad.c:821) [perl 5.21.7] #14940
Comments
From @geeknikperl -e 'qq{@{sub{]]}}};qq{@{sub{]]}}}}}}' triggers a null ptr deref and segfault in perl v5.21.7 (v5.21.6-602-ge9d2bd8). #0 Perl_pad_add_anon (func=0x0, optype=<optimized out>) at pad.c:821 %%% ==55121== Invalid read of size 8 It only triggers an assertion failed in perl v5.23.4 (v5.23.3-7-ge120c24): |
From @geeknikOn Fri Sep 25 19:38:48 2015, brian.carpenter@gmail.com wrote:
v5.25.5 (v5.25.4-110-g95c0a76) perl: op.c:5966: OP *Perl_newSVOP(I32, I32, SV *): Assertion `sv' failed. |
From [Unknown Contact. See original ticket]On Fri Sep 25 19:38:48 2015, brian.carpenter@gmail.com wrote:
v5.25.5 (v5.25.4-110-g95c0a76) perl: op.c:5966: OP *Perl_newSVOP(I32, I32, SV *): Assertion `sv' failed. |
From zefram@fysh.orgThis bug is very sensitive to the details of the syntax errors. In the The first newANONATTRSUB() call, for the second sub{}, succeeds. -zefram |
The RT System itself - Status changed from 'new' to 'open' |
From zefram@fysh.orgLooking a bit further, it turns out the problem is that the save stack -zefram |
From zefram@fysh.orgThe thing that pops the save stack seems to be the end of the qq{} This problem is partly due to the way the code generated by a qq gets In principle, a better way to handle the nested parses of qq constructs Incidentally, in debugging this I tried adding an assertion to -zefram |
From @tonycozOn Thu, 15 Sep 2016 15:22:08 -0700, brian.carpenter@gmail.com wrote:
This looks like it was fixed by bb4e4c3. $ git describe Immediately before: $ git describe Tony |
From @tonycozOn Sun, 20 Jan 2019 20:47:33 -0800, tonyc wrote:
So closing. Tony |
@tonycoz - Status changed from 'open' to 'pending release' |
From @khwilliamsonThank you for filing this report. You have helped make Perl better. With the release today of Perl 5.30.0, this and 160 other issues have been Perl 5.30.0 may be downloaded via: If you find that the problem persists, feel free to reopen this ticket. |
@khwilliamson - Status changed from 'pending release' to 'resolved' |
Migrated from rt.perl.org#126191 (status was 'resolved')
Searchable as RT126191$
The text was updated successfully, but these errors were encountered: