develooper Front page | perl.perl5.porters | Postings from July 2014

[perl #122283] Possible regexp memory explosion in 5.20.0

Thread Next
From:
Damian Conway via RT
Date:
July 13, 2014 18:57
Subject:
[perl #122283] Possible regexp memory explosion in 5.20.0
Message ID:
rt-4.0.18-942-1405270026-572.122283-15-0@perl.org
Further to Hugo's report...

I have now had the opportunity to investigate the problem, and have concluded that this has nothing to do with Regexp::Grammars per se, except that R::G is generating the enormous regex that 5.20 is failing to compile.

The attached example (constructed by removing all the R::G syntactic sugar from Hugo's original) does not make use of Regex::Grammars at all, and still leaks endlessly under 5.20...whereas it compiles repidly and without complaint under all of:

     5.10.1
     5.12.5
     5.14.4
     5.16.3
     5.18.2

I hope this additional information may be of help in tracking down the regression. 

Damian

---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=122283

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