From owner-freebsd-questions@FreeBSD.ORG Wed Apr 28 21:00:19 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 5FCBF106566C; Wed, 28 Apr 2010 21:00:19 +0000 (UTC) (envelope-from douglas.j.schmidt@gmail.com) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 0401F8FC08; Wed, 28 Apr 2010 21:00:18 +0000 (UTC) Received: by gwj21 with SMTP id 21so56696gwj.13 for ; Wed, 28 Apr 2010 14:00:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Cw/SR/nh7daLF/BTC0EB+UoBM95+9PKiFFb1Dbpr6hw=; b=qxq7k2fJu/HPG0zoTlPC5ihJCM2gG56F0GF4MPTNB21Ui+DNFAP6+gQUIczbfv5qAH NOVemTKdQ54X4x5i0I2LcclT3Abz+7wjWcNSo68zmBtD72hK4GnfeXonVIpVPov4CKjz LYTyF52RjejznACAwdh9J7/EQeVcEcNOswLOc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=pTRxX9F0JjfJhuvwzXvAQ9c2d8J9IodbHNa8nQ1JthQhr6RG/UKQaHYQHTFiIeXn3Z 89F7khXUUJPaGzDPmTolr2RJ0iilS/2s5SvOAR3PbIN4LTxUztn2CFolK2sZPs0HICDb jYVerOl3cbiyK9i3HaJxI87FL4xzgYt6IjDLw= MIME-Version: 1.0 Received: by 10.150.119.30 with SMTP id r30mr586362ybc.5.1272488411677; Wed, 28 Apr 2010 14:00:11 -0700 (PDT) Received: by 10.150.57.11 with HTTP; Wed, 28 Apr 2010 14:00:11 -0700 (PDT) In-Reply-To: <4BD89A0F.9060202@FreeBSD.org> References: <4BD844F8.7030900@FreeBSD.org> <4BD8902D.8030204@FreeBSD.org> <4BD89A0F.9060202@FreeBSD.org> Date: Wed, 28 Apr 2010 17:00:11 -0400 Message-ID: From: doug schmidt To: glarkin@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Apr 2010 21:00:19 -0000 On Wed, Apr 28, 2010 at 4:26 PM, Greg Larkin wrote: > -----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 se= ems >>>>>>>> [Tue Apr 27 16:08:37 2010] [notice] child pid 37609 exit signal Bu= s 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 sessi= on.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? =A0It 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 commen= ted out >> no bus error. >> >> All extensions uncommented, mysql.so uncommented, session.so commented o= ut >> no bus error. >> >> All extensions commented out, mysql.so commented out, session.so uncomme= nted >> no bus error. >> >> All extensions commented out, session.so commented out, mysql.so uncomme= nted >> 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? =A0From 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. > Nice. we are in business. apc.so was in extensions.ini but the file was not in the path. I installed pecl-APC. Also, there was a typo in extensions.ini for pgsql thanks for your help. doug