On Thu, Mar 13, 2008 at 12:50:41PM +0100, Nico Golde wrote:
> not sure if that is related or helpful but here is another
> line of perl that crashes perl:
> perl -e '("a" x 100000) =~ /^(ab?)*$/;'
These both look like #466298: the stack blows because the regexp engine
is recursive in the 5.8 series. From the 5.10.0 changelog:
[ 27598] By: davem on 2006/03/24 23:05:11
Log: make S_regmatch() iterative rather than recursive.
Goodbye stack-bustng regexes!
Branch: perl
! regexec.c
Indeed, the examples given don't crash on 5.10.0, and growing RLIMIT_STACK
(eg. 'ulimit -s unlimited') makes them go away on 5.8.8.
Cheers,
--
Niko Tyni [EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]