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

Re: [perl #21333] Regexp segfault --> ("X"x3529) =~ /( (?: \\. | [^\$] ){1,4000} )/gx;

From:
Jonas Liljegren
Date:
October 16, 2003 01:35
Subject:
Re: [perl #21333] Regexp segfault --> ("X"x3529) =~ /( (?: \\. | [^\$] ){1,4000} )/gx;
Message ID:
873cduaqc3.fsf@paranormal.se
Robert (via RT) <perlbug-followup@perl.org> writes:

> This is likely because your operating stack size limt is set too
> low.  For bash/sh/ksh/zsh use 'ulimit -a' to display.  In tcsh/csh
> use 'limit'.

jonas@jonas:~$ perl -e'("X"x3999) =~ /( (?: \\. | [^\$] ){1,4000} )/gx'
Segmenteringsfel
jonas@jonas:~$ ulimit -a
core file size        (blocks, -c) 0
data seg size         (kbytes, -d) unlimited
file size             (blocks, -f) unlimited
max locked memory     (kbytes, -l) unlimited
max memory size       (kbytes, -m) unlimited
open files                    (-n) 1024
pipe size          (512 bytes, -p) 8
stack size            (kbytes, -s) unlimited
cpu time             (seconds, -t) unlimited
max user processes            (-u) 2559
virtual memory        (kbytes, -v) unlimited
jonas@jonas:~$



The first numer vary from place to place. On this computer it was
higher than 3529.

"Segmenteringsfel" is swedish för "Segmentation fault".

-- 
/ Jonas  -  http://jonas.liljegren.org/myself/en/index.html



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