Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Nov 2004 20:00:19 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Webmaster <webmaster@swedehost.com>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: Apache2 seg faults
Message-ID:  <20041108200019.GA22684@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <418FC2F3.1090907@swedehost.com>
References:  <418FC2F3.1090907@swedehost.com>

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

--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--



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