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

Re: [perl #119069] Regex segmentation fault

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
July 29, 2013 17:08
Subject:
Re: [perl #119069] Regex segmentation fault
Message ID:
20130729170828.GZ3729@plum.flirble.org
On Mon, Jul 29, 2013 at 06:00:36PM +0200, Leon Timmermans wrote:
> On Mon, Jul 29, 2013 at 5:37 PM, Philip Hazel <perlbug-followup@perl.org> 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
> http://www.nntp.perl.org/group/perl.perl5.porters/2013/06/msg203855.html)
> and seems to have been backported to maint-5.18, so it will be part of
> 5.18.1 soon :-)

Yes,

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

figures that it was caused by commit 3018b823898645e44b8c37c70ac5c6302b031381

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

figures that it was fixed by commit 2e3a23da260a7ec5d61b81cb34c38de5e528b41d

Porting/bisect.pl --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
0ec7dc753859025ffc69eb02bf79a3f27f794ab1

(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


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