From owner-freebsd-questions@FreeBSD.ORG Wed Apr 28 20:27:03 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 887B7106564A for ; Wed, 28 Apr 2010 20:27:03 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (113901-app1.sourcehosting.net [72.32.213.11]) by mx1.freebsd.org (Postfix) with ESMTP id 5FC238FC08 for ; Wed, 28 Apr 2010 20:27:03 +0000 (UTC) Received: from 68-189-245-235.dhcp.oxfr.ma.charter.com ([68.189.245.235] helo=cube.entropy.prv) by mail1.sourcehosting.net with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1O7DqX-0009mr-2J; Wed, 28 Apr 2010 16:27:02 -0400 Received: from [127.0.0.1] (fireball.entropy.prv [192.168.1.12]) by cube.entropy.prv (Postfix) with ESMTP id B89463F16364; Wed, 28 Apr 2010 16:27:00 -0400 (EDT) Message-ID: <4BD89A0F.9060202@FreeBSD.org> Date: Wed, 28 Apr 2010 16:26:55 -0400 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: doug schmidt References: <4BD844F8.7030900@FreeBSD.org> <4BD8902D.8030204@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 0.96.0 OpenPGP: id=1C940290 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: 0.1 (/) Cc: freebsd-questions@freebsd.org Subject: Re: apache signal bus error (10) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: glarkin@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Apr 2010 20:27:03 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 doug schmidt wrote: > On Wed, Apr 28, 2010 at 3:44 PM, Greg Larkin wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> doug schmidt wrote: >>> On Wed, Apr 28, 2010 at 1:44 PM, doug schmidt >>> wrote: >>>> On Wed, Apr 28, 2010 at 11:28 AM, doug schmidt >>>> wrote: >>>>> On Wed, Apr 28, 2010 at 10:23 AM, Greg Larkin wrote: >>>>>> -----BEGIN PGP SIGNED MESSAGE----- >>>>>> Hash: SHA1 >>>>>> >>>>>> doug schmidt wrote: >>>>>>> On a 7.3-release box, I upgraded to php 5.3.2 + extensions. All seems >>>>>>> [Tue Apr 27 16:08:37 2010] [notice] child pid 37609 exit signal Bus error (10) >>>>>>> >>>>>> Check out this page: >>>>>> http://www.pingle.org/2007/09/22/php-crashes-extensions-workaround >>>>> I'll give the script a try and see. If not, at least I know the >>>>> specific extension >>>>> and can test moving the order it is in. >>>>> >>>> I've tried using the script, then moving the session.so extension one >>>> after the other. >>>> Restarting apache each time and the same bus error. >>>> >>>> any other ideas? >>>> >>> I now have everything commented out in extensions.ini except for session.so >>> There is no bus error, so I'll test moving the extensions order some >>> more. Find it >>> sooner or later. Real pain, that the order on one box, does not matter >>> on another >>> box. > >> Do you get a core file anywhere from the Apache process? It would be >> interesting to get a backtrace so you can figure out what module is >> causing the problem. > > Hi Greg, > Unfortunately, no core files anywhere. > > The problem looks like session.so and mysql.so > > With all extensions uncommented, session.so uncommented, mysql.so commented out > no bus error. > > All extensions uncommented, mysql.so uncommented, session.so commented out > no bus error. > > All extensions commented out, mysql.so commented out, session.so uncommented > no bus error. > > All extensions commented out, session.so commented out, mysql.so uncommented > no bus error. > > All extensions commented out, session.so and mysql.so uncommented > bus error. > > thanks. > doug Hi Doug, What happens if you swap the order of session.so and mysql.so and try the same tests? From what I see on this page (http://forums.freebsd.org/archive/index.php/t-927.html), mysql.so should go before session.so. If that results in the same problems, that's when I start firing up the Apache process with truss to see what's called before the bus error. You can do that like so: truss -f -a -s 256 -o /tmp/apache.log /usr/local/sbin/httpd Then reproduce the bus error and stop the main Apache process. /tmp/apache.log may contain some clues about what the processes were doing before the crash, especially if you search for "php", "session" or "mysql" in the file. Regards, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFL2JoP0sRouByUApARAsHvAJ9TtCAYX3b5HYGNoIW1bAfEn+soiQCeMpkc D/rEGi03nhq2pkZWInhQfmo= =9y4B -----END PGP SIGNATURE-----