Closed p5pRT closed 17 years ago
using regular expression on more than 500k couses a segfault with perl.
I tryed with 5.005_03 5.6 5.6.1\, and the behavion is the same. The regular expression was complicated. Why am i sure that the size coused it?
The code was similar to this (the regexp was complicated): $regularexpression = '(([\w\s]+)+([ \d]+ : [\w ]+\n)+)+'; if ($data =~ /$regularexpression/smog){ do_something; }
with the same data (smaller than 500k (not exactly)) perl recognised my data and done "do_something"\, but after putting to the end of data more data (example from the beginning of the date (with the same structure))\, perl segfaults.
On Wed Feb 27 20:30:38 2002\, gergo@www.kapu.hu wrote:
This is a bug report for perl from gergo@kapu.hu\, generated with the help of perlbug 1.33 running under perl v5.6.1.
----------------------------------------------------------------- [Please enter your report here]
using regular expression on more than 500k couses a segfault with perl.
I tryed with 5.005_03 5.6 5.6.1\, and the behavion is the same. The regular expression was complicated. Why am i sure that the size coused it?
The code was similar to this (the regexp was complicated): $regularexpression = '(([\w\s]+)+([ \d]+ : [\w ]+\n)+)+'; if ($data =~ /$regularexpression/smog){ do_something; }
with the same data (smaller than 500k (not exactly)) perl recognised my data and done "do_something"\, but after putting to the end of data more data (example from the beginning of the date (with the same structure))\, perl segfaults.
Without any sample for what is contained in $data above\, it is impossible to replicate this bug. My guess\, however\, based on your description\, this bug is likely to have been resolved in the development version of Perl.
@smpeters - Status changed from 'open' to 'resolved'
Migrated from rt.perl.org#8718 (status was 'resolved')
Searchable as RT8718$