[pcre-dev] [Bug 577] pcregrep crashing on a particular regex

Top Page
Delete this message
Author: Philip Hazel
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 577] pcregrep crashing on a particular regex
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=577

Philip Hazel <ph10@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID





--- Comment #1 from Philip Hazel <ph10@???> 2007-08-15 11:43:32 ---
I think this is a standard "run out of stack" PCRE issue. There is a discussion
about stack usage in the pcrestack man page. I tried your test on Gentoo Linux;
sure enough, it crashed with the default stack size of 8192K. However, by
increasing the stack with the ulimit command, I found that with 19000K of
stack, it no longer crashed. (It didn't, however, find anything.)

It may be possible to rewrite your pattern so that it uses less stack. The man
page discusses this. (The pattern would be a lot more readable if you removed
the redundant backslashes before < and > because these are not needed in Perl
regexes.)


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email