From owner-freebsd-questions@FreeBSD.ORG Tue Mar 22 16:46:48 2005 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 C8E6E16A4CE for ; Tue, 22 Mar 2005 16:46:48 +0000 (GMT) Received: from lorna.circlesquared.com (host217-45-219-85.in-addr.btopenworld.com [217.45.219.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id D837943D1D for ; Tue, 22 Mar 2005 16:46:47 +0000 (GMT) (envelope-from peter@circlesquared.com) Received: from localhost.circlesquared.com (localhost.circlesquared.com [127.0.0.1])j2MGkYeF021534; Tue, 22 Mar 2005 16:46:35 GMT (envelope-from peter@circlesquared.com) From: Peter Risdon To: Tom Vilot In-Reply-To: <20050322162216.GA1354@vilot.com> References: <20050322162216.GA1354@vilot.com> Content-Type: text/plain Date: Tue, 22 Mar 2005 16:46:34 +0000 Message-Id: <1111509994.751.306.camel@lorna.circlesquared.com> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit cc: "freebsd-questions@freebsd.org" Subject: Re: PHP / Apache bus error 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: Tue, 22 Mar 2005 16:46:48 -0000 On Tue, 2005-03-22 at 09:22 -0700, Tom Vilot wrote: > I've done a lot of snooping around Google to figure this out. I've come > to the conclusion that PHP just plain sucks ;c) > > I am fairly consistently getting bus errors in Apache when I use PHP (or > at least, I'm fairly sure it is due to PHP). One way to find out is to comment out the LoadModule php4_module libexec/apache/libphp4.so and AddModule mod_php4.c in httpd.conf and restart apache. I think you need to make sure this is the source of the problem before getting too involved in trying to fix it. But then, I've found most apache/php errors actually derive from some php extension and this can be traced by a process of elimination. It's often then a dependency of the extension that has been updated, or something. > Entries like: > > ... [notice] child pid 70121 exit signal Segmentation fault (11) > > Or if I run Apache in stand-alone mode, I will often simply get: > > Bus Error > > and it exits immediately. > > I am running php4-4.3.10_2 and apache+mod_ssl-1.3.33+2.8.22 on > FreeBSD 4.9 RELEASE (Generic kernel). > > Is this something that will clear up if I move to FreeBSD 5.3? Or is > there some other known work-around? I ask because I have a 5.3 box here > at home that does not seem to be exhibiting this behavior. Yes, but going to 4.11 should fix it as well. Peter.