Date: Sat, 31 Jan 2004 17:44:42 +0100 From: Melvyn Sopacua <freebsd-questions@webteckies.org> To: freebsd-questions@FreeBSD.org Subject: Re: apache is seg faulting. why ? Message-ID: <200401311744.42949.freebsd-questions@webteckies.org> In-Reply-To: <401BD980.1050009@jonepet.net> References: <20040130124034.GA408@colargol.aaton.com> <200401311732.57733.freebsd-questions@webteckies.org> <401BD980.1050009@jonepet.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401311744.42949.freebsd-questions>