apache is seg faulting. why ?

Melvyn Sopacua freebsd-questions at webteckies.org
Sat Jan 31 08:44:47 PST 2004


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     
root at sarevok.lan.webteckies.org:/usr/obj/usr/src/sys/SAREVOK_NOAPM_NODEBUG  
i386
=======================================================
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040131/33cc98ba/attachment-0001.bin


More information about the freebsd-questions mailing list