Re: segmentation fault when searching for repeated text

2002-11-13 Thread David Wheeler
On Wednesday, November 13, 2002, at 03:55  AM, Eike Grote wrote:


This seems to be a Perl limitation. But as the other reports
(Darwin, Linux) show crashes at smaller values of $_ there
might be a problem of handling deep recursions on various OSes.


Might I suggest that someone use perlbug to report this bug to the 
perl5-porters?

David

--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net/  Yahoo!: dew7e
   Jabber: [EMAIL PROTECTED]



segmentation fault when searching for repeated text

2002-11-12 Thread Gakuji Ohtori
The following code ends up with an error (segmentation fault):

	$_ = 'x' x 1000;
	/(a.|.){2,}/o;

The segmentation fault seems to happen only when the searched text ($_ 
in this example) is longer than 855 characters.

I know that m and n in the {m,n} qualifier are limited, but there isn't 
a limitation for the length of the searched text, is there?

I'm using Perl 5.6.0 built for Darwin.

Gaji



Re: segmentation fault when searching for repeated text

2002-11-12 Thread Peter N Lewis
The following code ends up with an error (segmentation fault):

	$_ = 'x' x 1000;
	/(a.|.){2,}/o;

The segmentation fault seems to happen only when the searched text 
($_ in this example) is longer than 855 characters.

I know that m and n in the {m,n} qualifier are limited, but there 
isn't a limitation for the length of the searched text, is there?

I'm using Perl 5.6.0 built for Darwin.

Yep, the same thing happens in perl 5.8.0 under Mac OS X 10.2.1, 
except it happens when it is longer than 927 characters.

Looks like quite a robust bug.  I wonder if it is even Mac OS X specific.
   Peter.
--
http://www.interarchy.com/  http://download.interarchy.com/


Re: segmentation fault when searching for repeated text

2002-11-12 Thread Rick Frankel
On Wed, Nov 13, 2002 at 02:31:03PM +0800, Peter N Lewis wrote:
 The following code ends up with an error (segmentation fault):
 
  $_ = 'x' x 1000;
  /(a.|.){2,}/o;
 
 The segmentation fault seems to happen only when the searched text 
 ($_ in this example) is longer than 855 characters.

 Yep, the same thing happens in perl 5.8.0 under Mac OS X 10.2.1, 
 except it happens when it is longer than 927 characters.
 
 Looks like quite a robust bug.  I wonder if it is even Mac OS X specific.

Nope. Happens at different lengths on 2 debian linux boxes:
 
 unstable w/perl 5.8.0,  4502
 stable w/perl   5.6.1  30830

Quite a difference there! 

rick