On Saturday 31 January 2004 17:36, Jon-Eirik Pettersen wrote:
> Melvyn Sopacua wrote:
> >On Friday 30 January 2004 13:40, julien Beauviala wrote:
> >>the following :
> >>>pid 72041 (httpd), uid 80: exited on signal 11
> >>>pid 72040 (httpd), uid 80: exited on signal 11
> >>>pid 72099 (httpd), uid 80: exited on signal 11
> >>>pid 72039 (httpd), uid 80: exited on signal 11
> >>>pid 74202 (httpd), uid 80: exited on signal 11
> >
> >Make sure you're up-to-date - it may be a security hole.
> >
> >Otherwise: use top(1) and check if at some point you see a httpd process
> >spinning wildly for a long time, while memory grows.
> >
> >A frequent problem, is that somebody coded an infinite loop, filling a
> >variable and then the process runs outof memory and segfaults.
> >
> >PHP code like this for example:
> >$i = 11;
> >$buffer = '';
> >while ( $i != 10 )
> >{
> >     $buffer .= 'hello';
> >     $i++;
> >}
>
> PHP does have memory-limits.

Yes, but if the shell limit for uid 80 is less then php's memory limit, you 
still have a segfault.
-- 
Melvyn

=======================================================
FreeBSD sarevok.webteckies.org 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Wed Jan 28 
18:01:18 CET 2004     
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/SAREVOK_NOAPM_NODEBUG  
i386
=======================================================

Attachment: pgp00000.pgp
Description: signature

Reply via email to