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

[perl #129903] regexec.c stack overflow

Thread Previous | Thread Next
From:
Father Chrysostomos via RT
Date:
October 18, 2016 21:42
Subject:
[perl #129903] regexec.c stack overflow
Message ID:
rt-4.0.24-30581-1476826952-1573.129903-15-0@perl.org
On Tue Oct 18 01:01:21 2016, demerphq wrote:
> On 18 October 2016 at 03:17, Father Chrysostomos via RT
> <perlbug-followup@perl.org> wrote:
> > On Mon Oct 17 10:26:19 2016, brian.carpenter@gmail.com wrote:
> >> I'm not convinced that this is an actual bug,
> >
> > I think it is.
> >
> >> but #p5p was silent when I
> >> asked about it. Affects Perl back to 5.20.2 including v5.25.6
> >> (v5.25.5-114-g87af8d5). Valgrind fails pretty quickly but gdb just
> >> goes on
> >> forever.
> >>
> >> perl -e '/0'
> >
> > That is nonsensical code.
> 
> Do you mean just the '/0' or the full pattern?

I do not know what happened, but the line that I quoted was:

perl -e '/(?{m}(0)},s\/\/\/})//0'

not:

perl -e '/0'

> With some editing I read the original code as being the same as
> 
> 
> (m/(?{
>           m!(0)!,
>           s!!!
> })/) / 0

I see now that I misread the code. the } for the m}} delimiter was what threw me off.

-- 

Father Chrysostomos


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

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