apache is seg faulting. why ?

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


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++;
}

-- 
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/a92e0087/attachment-0001.bin


More information about the freebsd-questions mailing list