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
Zero-width substitution makes the GC recurse #1080
Comments
From @moritzThis innocently looking script on Rakudo #18 sends the GC into an infinite use v6; The backtrace looks like this: and so on, repeating the first five lines all over again. Cheers, -- |
From @WhiteknightOn Sun Jun 21 10:44:09 2009, mlenz@physik.uni-wuerzburg.de wrote:
I've seen bugs like this in other places before. What happened in those -- |
The RT System itself - Status changed from 'new' to 'open' |
From @bbkrtests added to t/spec/S05-substitution/subst.t |
@bbkr - Status changed from 'open' to 'resolved' |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S05-substitution/subst.t commit 14f573cb19cc83439e8b70117484b058fd03e2a3 [t/spec/S05-substitution/subst.t] tests for RT #66816 Zero-width substitution makes the GC recurse Inline Patchdiff --git a/t/spec/S05-substitution/subst.t b/t/spec/S05-substitution/subst.t
index 6f4d1e1..46ab4d6 100644
--- a/t/spec/S05-substitution/subst.t
+++ b/t/spec/S05-substitution/subst.t
@@ -304,6 +304,13 @@ is '12'.subst(/(.)(.)/,{$()*2}),'24', '.. and do nifty things in closures';
is 'The foo and the bar'.subst(/:i the/, {$str++}, :g, :samecase), 'Thau foo and thav bar', '.substr and :g and :samecase, worked with block replacement';
}
+# RT #66816
+{
+ my $str = "a\nbc\nd";
+ is $str.subst(/^^/, '# ', :g), "# a\n# bc\n# d",
+ 'Zero-width substitution does not make the GC recurse';
+}
+
done_testing;
# vim: ft=perl6 |
Migrated from rt.perl.org#66816 (status was 'resolved')
Searchable as RT66816$
The text was updated successfully, but these errors were encountered: