From owner-freebsd-questions@FreeBSD.ORG Sat Jan 31 08:32:59 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B46EB16A4CE for ; Sat, 31 Jan 2004 08:32:59 -0800 (PST) Received: from sarevok.webteckies.org (node123e0.a2000.nl [24.132.35.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8145D43D41 for ; Sat, 31 Jan 2004 08:32:58 -0800 (PST) (envelope-from mdev@sarevok.webteckies.org) Received: by sarevok.webteckies.org (Postfix, from userid 100) id DB820B82A; Sat, 31 Jan 2004 17:32:57 +0100 (CET) From: Melvyn Sopacua Organization: WebTeckies.org To: freebsd-questions@FreeBSD.org Date: Sat, 31 Jan 2004 17:32:57 +0100 User-Agent: KMail/1.5.94 References: <20040130124034.GA408@colargol.aaton.com> In-Reply-To: <20040130124034.GA408@colargol.aaton.com> MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-02=_5i9GAD1pauXJteZ"; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200401311732.57733.freebsd-questions@webteckies.org> Subject: Re: apache is seg faulting. why ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Jan 2004 16:32:59 -0000 --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--