develooper Front page | perl.perl5.porters | Postings from June 2016

Re: [perl #128225] substitution within (?{}) causes segmentationfault

Thread Previous | Thread Next
From:
Aristotle Pagaltzis
Date:
June 3, 2016 16:56
Subject:
Re: [perl #128225] substitution within (?{}) causes segmentationfault
Message ID:
20160603165603.GA81301@plasmasturm.org
* Dave Mitchell <davem@iabyn.com> [2016-05-30 22:22]:
> I'm not sure if there are mutual recursion scenarios which could still
> slip past though.

I thought not but actually it’s trivial. This program segfaults:

    $a = qr/(?{ m{$b} })/;
    $b = qr/(?{ m{$a} })/;
    m{$a}

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About