Re: recover from a segfault
If we do do this, please make it optional; it's bad form when a module
or a library unilaterally changes a process-wide option or setting and
impacts a system that has already been tuned; the sysadmin may already
have set up appropriate limits.
--Wez.
On 2/21/06, Ilia Alshanetsky <[email protected]> wrote:
> Nuno Lopes wrote:
> > PCRE can consume a lot of stack, because of backtracking (thus
> > segfaulting PHP). Yesterday I've discovered that when using the
> > setrlimit() function, most segfaults can be avoided
> > (http://mega.ist.utl.pt/~ncpl/php_pcre_stack_limits.txt) :)
>
> This sounds like an interesting idea, I think we need to consider it
> doing for PHP in general rather then jut when PCRE is being used. The
> only thing is that rather then setting the stack to infinity, perhaps a
> small value can be used ;-)
Thread (20 messages)