# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #121726]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=121726 >


<JimmyZ> [root@li618-176 ~]# perl6 -e 'say "abc".subst(/.+/, "a")'
<JimmyZ> a
<JimmyZ> [root@li618-176 ~]# perl6
<JimmyZ> > my $s = 'abc';
<JimmyZ> abc
<JimmyZ> > $s.subst(/.+/, 'a')
<JimmyZ> Segmentation fault (core dumped)
<JimmyZ> A bug...
<masak> JimmyZ: reproduced locally.
* masak submits rakudobug

$ perl6 --version
This is perl6 version 2014.04-5-g921615b built on MoarVM version 2014.04

The trigger seems to be *any* use of .subst after the first thing
evaluated on the REPL.

$ perl6
> ""

> "".subst(/<?>/, "")
Segmentation fault

Reply via email to