From owner-freebsd-questions@FreeBSD.ORG Tue Sep 4 06:26:00 2012 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 D5196106566C for ; Tue, 4 Sep 2012 06:26:00 +0000 (UTC) (envelope-from b.smeelen@ose.nl) Received: from mail.ose.nl (mail.ose.nl [212.178.134.164]) by mx1.freebsd.org (Postfix) with ESMTP id 690918FC14 for ; Tue, 4 Sep 2012 06:25:59 +0000 (UTC) X-Footer: b3NlLm5s Received: from localhost ([127.0.0.1]) by mail.ose.nl (using TLSv1/SSLv3 with cipher AES256-SHA (256 bits)) for freebsd-questions@freebsd.org; Tue, 4 Sep 2012 08:25:57 +0200 Message-ID: <50459ED4.3020804@ose.nl> Date: Tue, 04 Sep 2012 08:25:24 +0200 From: Bas Smeelen User-Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120827 Thunderbird/15.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <5044C2FC.5050703@ifdnrg.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Error after upgrading to php 5.4.6 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: Tue, 04 Sep 2012 06:26:00 -0000 On 09/04/2012 04:18 AM, Michael Powell wrote: > Paul Macdonald wrote: > >> On 03/09/2012 12:26, Darrell Betts wrote: >>> My php pages will no longer render in a web browser after upgrading to >>> php 5.4.6. Used port upgrade to do this. Running apache 2.2.22_6. Checked >>> the error log and this is what I receive >>> >>> [notice] child pid 38232 exit signal Segmentation fault (11) >>> >>> This does this on all php pages. >>> Any idea how to fix this error? > [snip] >> try editing your /usr/local/etc/php/extensions.ini, comment out all >> extensions (restart apache) and see if it stops seg faulting. >> If it works, add in the modules one by one until it stops. >> >> Previously i've seen people posting about the order being important >> > Some while back I thought portupgrading PHP caused the extensions.ini to be > edited after each and every extension rebuild/reinstall, causing a shuffle > like effect. Since I do a backup before, including all configs, I got into > the habit of just copying my old extensions.ini back into place afterwards > prior to restarting PHP and/or web servers. > > -Mike > My previous response was sent too early :( I still get errors in apache [Tue Sep 04 08:14:42 2012] [error] [client 192.168.1.189] PHP Warning: Unknown: Unable to allocate memory for pool. in Unknown on line 0, referer: http://sys.ose.nl/cacti/graph_view.php?action=tree&tree_id=1&leaf_id=21 [Tue Sep 04 08:14:43 2012] [notice] child pid 56172 exit signal Segmentation fault (11) [Tue Sep 04 08:14:43 2012] [notice] child pid 56163 exit signal Segmentation fault (11) [Tue Sep 04 08:14:53 2012] [error] [client 192.168.1.189] PHP Warning: Unknown: Unable to allocate memory for pool. in Unknown on line 0, referer: http://sys.ose.nl/cacti/graph_view.php?action=tree&tree_id=1&leaf_id=7 [Tue Sep 04 08:15:59 2012] [notice] child pid 56169 exit signal Segmentation fault (11) So now I will comment out all extensions and start investigating. Well it turns out to be apc.so, this comes with core php I guess? For completeness: The php manual states this is for alternative php cache. http://php.net/manual/en/book.apc.php With apc.so commented out and testing with cacti and mediawiki all seems to go well. My extensions.ini follows below extension=pdf.so extension=imagick.so ;extension=apc.so extension=hash.so extension=phar.so extension=zip.so extension=zlib.so extension=iconv.so extension=mysql.so extension=pdo.so extension=pdo_sqlite.so extension=sqlite3.so extension=json.so extension=tokenizer.so extension=filter.so extension=posix.so extension=ctype.so extension=dom.so extension=simplexml.so extension=xml.so extension=xmlreader.so extension=xmlwriter.so extension=session.so Disclaimer: http://www.ose.nl/email