Re: recover from a segfault

From: Date: Thu, 23 Feb 2006 04:29:06 +0000
Subject: Re: recover from a segfault
References: 1 2  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
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)

« previous php.internals (#21989) next »