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

Re: [perl #119069] Regex segmentation fault

Thread Previous | Thread Next
Nicholas Clark
July 29, 2013 17:08
Re: [perl #119069] Regex segmentation fault
Message ID:
On Mon, Jul 29, 2013 at 06:00:36PM +0200, Leon Timmermans wrote:
> On Mon, Jul 29, 2013 at 5:37 PM, Philip Hazel <> wrote:
> > The following command segfaults:
> >
> > perl -e '"back" =~ /^(?=(a)){0}b(?1)/;'
> >
> > It should match "ba". This is one of my standard PCRE tests that used to
> > work correctly with previous versions of Perl.
> I think this bug has already been fixed in blead (it was discussed at
> and seems to have been backported to maint-5.18, so it will be part of
> 5.18.1 soon :-)


Porting/ --end=v5.18.0 --target=miniperl -e '"back" =~ /^(?=(a)){0}b(?1)/;'

figures that it was caused by commit 3018b823898645e44b8c37c70ac5c6302b031381

Porting/ --expect-fail --start v5.18.0 --target=miniperl -e '"back" =~ /^(?=(a)){0}b(?1)/;'

figures that it was fixed by commit 2e3a23da260a7ec5d61b81cb34c38de5e528b41d

Porting/ --expect-fail --start v5.18.0 --end 9de5f9548e6b2b322163ba0386f30c853d6111e2 --target=miniperl -e '"back" =~ /^(?=(a)){0}b(?1)/;'

confirms that it was fixed in maint-5.18 by commit

(That repository doesn't have a branch for maint-5.18 which I can use.
At the time of writing 9de5f9548e6b2b322163ba0386f30c853d6111e2 is maint-5.18)

Nicholas Clark

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About