Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Apr 2010 16:26:55 -0400
From:      Greg Larkin <glarkin@FreeBSD.org>
To:        doug schmidt <douglas.j.schmidt@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: apache signal bus error (10)
Message-ID:  <4BD89A0F.9060202@FreeBSD.org>
In-Reply-To: <y2j320306641004281308va9bf5013m4bd9b8a0542a9b3f@mail.gmail.com>
References:  <v2p320306641004271328r7cc8a733j208c7b1c01509936@mail.gmail.com>	 <4BD844F8.7030900@FreeBSD.org>	 <k2h320306641004280828o151619c8xdf7b7f9ccdf9774f@mail.gmail.com>	 <w2i320306641004281044m430d05aduabca7fa7173b0cd5@mail.gmail.com>	 <h2q320306641004281117me9714851w3adb75a997dc690c@mail.gmail.com>	 <4BD8902D.8030204@FreeBSD.org> <y2j320306641004281308va9bf5013m4bd9b8a0542a9b3f@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

doug schmidt wrote:
> On Wed, Apr 28, 2010 at 3:44 PM, Greg Larkin <glarkin@freebsd.org> wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> doug schmidt wrote:
>>> On Wed, Apr 28, 2010 at 1:44 PM, doug schmidt
>>> <douglas.j.schmidt@gmail.com> wrote:
>>>> On Wed, Apr 28, 2010 at 11:28 AM, doug schmidt
>>>> <douglas.j.schmidt@gmail.com> wrote:
>>>>> On Wed, Apr 28, 2010 at 10:23 AM, Greg Larkin <glarkin@freebsd.org> 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-----




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