From owner-freebsd-questions@FreeBSD.ORG Mon Nov 8 20:00:26 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 D5C1F16A4CE for ; Mon, 8 Nov 2004 20:00:26 +0000 (GMT) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 66EE243D31 for ; Mon, 8 Nov 2004 20:00:25 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])iA8K0JrU064704 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 8 Nov 2004 20:00:19 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)iA8K0Jcu064703; Mon, 8 Nov 2004 20:00:19 GMT (envelope-from matthew) Date: Mon, 8 Nov 2004 20:00:19 +0000 From: Matthew Seaman To: Webmaster Message-ID: <20041108200019.GA22684@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Webmaster , freebsd-questions References: <418FC2F3.1090907@swedehost.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="u3/rZRmxL6MmkK24" Content-Disposition: inline In-Reply-To: <418FC2F3.1090907@swedehost.com> User-Agent: Mutt/1.4.2.1i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.6 (smtp.infracaninophile.co.uk [IPv6:::1]); Mon, 08 Nov 2004 20:00:19 +0000 (GMT) X-Virus-Scanned: ClamAV 0.80/575/Sat Nov 6 01:03:53 2004 clamav-milter version 0.80j on smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,RAZOR2_CHECK autolearn=ham version=3.0.1 X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions Subject: Re: Apache2 seg faults 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: Mon, 08 Nov 2004 20:00:27 -0000 --u3/rZRmxL6MmkK24 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 08, 2004 at 08:03:15PM +0100, Webmaster wrote: > Hi everybody. > Need help with Apache2 seg fault. > I'm totally in my blinds on this one. It seems like the problem occurs=20 > when Apache is trying to > do a graceful restart. > Tried to do some "googling" and searching the mail archives, but found=20 > nothing useful. > Found an answer from Matthew Seaman to a similar problem, but didn't=20 > understand much about it. > http://lists.freebsd.org/mailman/htdig/freebsd-questions/2004-September/0= 57901.html Fame at last! =20 > odin# uname -a > FreeBSD odin.swedehost.com 4.10-RELEASE-p3 FreeBSD 4.10-RELEASE-p3 #0:=20 > Fri Nov 5 16:04:49 CET 2004 =20 > root@odin.swedehost.com:/usr/obj/usr/src/sys/ODIN i386 >=20 > This is what the httpd-error.log has to say about it : > [Mon Nov 08 19:00:00 2004] [notice] Graceful restart requested, doing=20 > restart > [Mon Nov 08 19:00:02 2004] [notice] seg fault or similar nasty error=20 > detected in the parent process > [Mon Nov 08 19:01:52 2004] [warn] pid file /var/run/httpd.pid=20 > overwritten -- Unclean shutdown of previous Apache run? > [Mon Nov 08 19:01:52 2004] [notice] Apache/2.0.52 (FreeBSD) PHP/4.3.9=20 > mod_ssl/2.0.52 OpenSSL/0.9.7d configured -- resuming normal operations >=20 > And then nothing happening. I have to manually restart the server by=20 > issuing the following : > /usr/local/sbin/apachectl startssl >=20 > Any and all help preciated. It is probably not a problem with the base Apache itself which is leading to the segfaults. Rather I'd suspect that some module you're loading into apache is causing the problem -- I mean a 3rd party module like mod_php{4,5}, mod_jk or mod_perl. The first step is to narrow down what the cause of the problem is. Try commenting out the LoadModule directives in httpd.conf until you can isolate which one is the cause of the problem. Note: I'm assuming that you're using the standard prefork MPM -- that's definitely the preferred (in fact the only working) method under 4.10. I think it's still preferred in 5.x, but in that OS version you might be able to succeed at using one of the threaded MPMs. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --u3/rZRmxL6MmkK24 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBj9BTiD657aJF7eIRAq7cAJ49t91Ibl8Oa6StMuZXl8HA4etDlwCgt0gj qpANKGfUlrHo4DafeBrHbxY= =lSM5 -----END PGP SIGNATURE----- --u3/rZRmxL6MmkK24--