Justin Vallon <vallon(a)mindspring.com> wrote:
HPUX 10.20. Are you sure that the regexp engine is running out of
process
stack, and not running out of some sort of space in a 'RegExpState
stack[256]' variable?
With HP-UX, I always increase the regexp stack size (from 2000 to
20000). VM gets regexp stack overflows otherwise. Sample patch
attached (relative to 21.1.4).
[ Note: I've also built my kernel to bump up the HP-UX max process
stack size from 2MB to 16MB. I'm not sure this is necessary if you
use this patch, but the comment above the variable implies that this
might be. ]
--
Darryl Okahata
darrylo(a)sr.hp.com
DISCLAIMER: this message is the author's personal opinion and does not
constitute the support, opinion, or policy of Hewlett-Packard, or of the
little green men that have been following him all day.
Index: regex.c
===================================================================
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 regex.c
*** regex.c 1999/06/15 22:37:58 1.1.1.1
--- regex.c 1999/07/08 22:39:09
***************
*** 1118,1124 ****
--- 1118,1128 ----
whose default stack limit is 2mb. */
int re_max_failures = 20000;
#else
+ # if defined(__hpux)
+ int re_max_failures = 20000;
+ # else
int re_max_failures = 2000;
+ # endif
#endif
union fail_stack_elt