Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Jan 2004 17:32:57 +0100
From:      Melvyn Sopacua <freebsd-questions@webteckies.org>
To:        freebsd-questions@FreeBSD.org
Subject:   Re: apache is seg faulting. why ?
Message-ID:  <200401311732.57733.freebsd-questions@webteckies.org>
In-Reply-To: <20040130124034.GA408@colargol.aaton.com>
References:  <20040130124034.GA408@colargol.aaton.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--Boundary-02=_5i9GAD1pauXJteZ
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

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=20
spinning wildly for a long time, while memory grows.

A frequent problem, is that somebody coded an infinite loop, filling a=20
variable and then the process runs outof memory and segfaults.

PHP code like this for example:
$i =3D 11;
$buffer =3D '';
while ( $i !=3D 10 )
{
	$buffer .=3D 'hello';
	$i++;
}

=2D-=20
Melvyn

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D
=46reeBSD sarevok.webteckies.org 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Wed Ja=
n 28=20
18:01:18 CET 2004    =20
root@sarevok.lan.webteckies.org:/usr/obj/usr/src/sys/SAREVOK_NOAPM_NODEBUG =
=20
i386
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D

--Boundary-02=_5i9GAD1pauXJteZ
Content-Type: application/pgp-signature
Content-Description: signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQBAG9i5Ov9JNmfFN5URAvSSAKCXO5c9xA2BzfCOucxI7S/4MAL66QCfbIAe
Ihk75Oq8HNK4jCgE9dQEjrw=
=hsIY
-----END PGP SIGNATURE-----

--Boundary-02=_5i9GAD1pauXJteZ--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401311732.57733.freebsd-questions>