From owner-freebsd-questions@FreeBSD.ORG Sat Jan 31 08:44:47 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 06D1616A4CE for ; Sat, 31 Jan 2004 08:44:47 -0800 (PST) Received: from sarevok.webteckies.org (node123e0.a2000.nl [24.132.35.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E13A43D48 for ; Sat, 31 Jan 2004 08:44:44 -0800 (PST) (envelope-from mdev@sarevok.webteckies.org) Received: by sarevok.webteckies.org (Postfix, from userid 100) id 1EFE2B82A; Sat, 31 Jan 2004 17:44:43 +0100 (CET) From: Melvyn Sopacua Organization: WebTeckies.org To: freebsd-questions@FreeBSD.org Date: Sat, 31 Jan 2004 17:44:42 +0100 User-Agent: KMail/1.5.94 References: <20040130124034.GA408@colargol.aaton.com> <200401311732.57733.freebsd-questions@webteckies.org> <401BD980.1050009@jonepet.net> In-Reply-To: <401BD980.1050009@jonepet.net> MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-02=_6t9GA5zL05W0pJ3"; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200401311744.42949.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:44:47 -0000 --Boundary-02=_6t9GA5zL05W0pJ3 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 =3D 11; > >$buffer =3D ''; > >while ( $i !=3D 10 ) > >{ > > $buffer .=3D 'hello'; > > $i++; > >} > > PHP does have memory-limits. Yes, but if the shell limit for uid 80 is less then php's memory limit, you= =20 still have a segfault. =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=_6t9GA5zL05W0pJ3 Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQBAG9t6Ov9JNmfFN5URAnObAJ0WPTkiDdZHmoRetPHGbhZ7LysMuACeJv0/ Ct3caLtZ+ksgD4dpTbGjtFA= =3s+W -----END PGP SIGNATURE----- --Boundary-02=_6t9GA5zL05W0pJ3--