develooper Front page | perl.perl5.porters | Postings from February 2005

Re: [perl #33936] segment fault when using split() in regexp with (??{...})

Thread Previous | Thread Next
From:
hv
Date:
February 8, 2005 04:40
Subject:
Re: [perl #33936] segment fault when using split() in regexp with (??{...})
Message ID:
200502081245.j18Cj8n01523@zen.crypt.org
Rafael Garcia-Suarez <rgarciasuarez@mandrakesoft.com> wrote:
:王晓哲 wrote:
:> When using split() function in (??{...}), the Perl interpreter died.
:> This error can be verified by the following program:
:> #!/usr/bin/perl
:> $a="aba";
:> print "matched\n" if $a=~/(??{"aba"})/;	# OK
:> print "matched\n" if $a=~/(??{join("",split("","aba"))})/; # Segmentation Fault
:
:The regexp engine not being reentrant, this is not expected to work.
:However, the segfault seems to occur only with threaded perls.

Just for the record, as far as I'm concerned the regexp engine is supposed
to be reentrant, so this is only "not expected to work" until we fix those
bugs.

Hugo

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