"Stephen J. Turnbull" <stephen(a)xemacs.org> wrote:
Satheesh> problems with my xemacs (20.4) running on HP-UX
11.00
I recommend upgrading to at least 21.1.14, probably 21.4.6, if
possible. Basically there's nothing we can do for 20.4, there will be
no fixes of any kind for it as it was retired over 3 years ago.
Yes, definitely. XEmacs 20.4 is *REALLY* ancient ....
Nobody remembers anything about that code.
I do, unfortunately. ;-(
Satheesh> Stack overflow in regexp matcher.
However, this you can probably fix in your OS somehow by increasing
the stack limit. setrlimit(3) is the usual way to do this, many OSes
No, no, no. ;-) Different problem (mostly ;-).
This particular message is being caused by the fact that the value
of re_max_failures in src/regex.c is too small. The default value is
2000 (for HP-UX, at least, because MATCH_MAY_ALLOCATE is not #define'd),
and bumping the value up makes the problem go away. When I compile
XEmacs, I usually change the default value to 20000.
However, by kicking up re_max_failures, you will probably need the
stack limit to be increased (or XEmacs can intermittently core dump),
which requires a kernel rebuild for HP-UX. I don't know what the
default max stack limit is for HP-UX 11.00, but it used to be 2MB for
HP-UX 10.20. With re_max_failures set to 20000, a max stack size of
16MB worked for me.
--
Darryl Okahata
darrylo(a)soco.agilent.com
DISCLAIMER: this message is the author's personal opinion and does not
constitute the support, opinion, or policy of Agilent Technologies, or
of the little green men that have been following him all day.