-
Notifications
You must be signed in to change notification settings - Fork 560
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
"Attempt to free unreferenced scalar..." with failed regexp compilation including heredoc #13660
Comments
From @wolfsageCreated by wolfsage@gmail.comWith perl-5.14.2: $ perl -e '/(?{print <<END\nok 64 - here-doc in re-eval\nEND\n})/;' With blead (and later Perls): $ perl -e '/(?{print <<END\nok 64 - here-doc in re-eval\nEND\n})/;' Bisected with attached bisecter.pl: ../perl-1/Porting/bisect.pl -j 8 --start=v5.14.2 --target=miniperl To: 3328ab5 is the first bad commit Finish fixing here-docs in re-evals This commit fixes here-docs in single-line re-evals in files (as In both cases, the here-doc parser has to look into an outer Fixing this entails moving re_eval_start and re_eval_str to It also entails making the stream-based parser (i.e., that reads from Perl Info
|
From @wolfsage |
From @jkeenanOn Fri Mar 14 08:40:51 2014, alh wrote:
I can confirm that I got these results in blead, which means we will get them in 5.20 as well. Thank you very much. |
The RT System itself - Status changed from 'new' to 'open' |
From @jkeenanOn Fri Mar 14 08:40:51 2014, alh wrote:
Is this really the same issue as https://rt-archive.perl.org/perl5/Ticket/Display.html?id=121438? Thank you very much. |
From @wolfsageOn Sun, May 18, 2014 at 6:58 PM, James E Keenan via RT
I don't believe so. This issue is that Perl mishandles the heredoc, #121438 is that -- Matthew Horsfall (alh) |
From @iabynOn Fri, Mar 14, 2014 at 08:40:52AM -0700, Matthew Horsfall wrote:
This appears to have been fixed sometime between 5.21.5 and 5.21.6 -- |
From @wolfsageOn Thu, Mar 26, 2015 at 9:30 AM, Dave Mitchell <davem@iabyn.com> wrote:
According to a bisect, fixed with: commit fd2709d Fix double free with unterminated /(?{ <<END })/ If we are parsing from a stream (file), and we are inside a quote-like $ ./miniperl -e '"${ print <<END"' I caused that in v5.17.3-187-g3328ab5. The current line of code in the parser is usually stored in The heredoc parser, when extracting the body from a stream, tempor- Inside quote-like operators that does not work, because PL_linestr has -- Matthew Horsfall (alh) |
@iabyn - Status changed from 'open' to 'pending release' |
From @khwilliamsonThanks for submitting this ticket The issue should be resolved with the release today of Perl v5.22. 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#121437 (status was 'resolved')
Searchable as RT121437$
The text was updated successfully, but these errors were encountered: