From owner-freebsd-ports@FreeBSD.ORG Thu Sep 29 20:19:56 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 288F9106566B for ; Thu, 29 Sep 2011 20:19:56 +0000 (UTC) (envelope-from joh.hendriks@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id B34738FC15 for ; Thu, 29 Sep 2011 20:19:55 +0000 (UTC) Received: by wyj26 with SMTP id 26so521841wyj.13 for ; Thu, 29 Sep 2011 13:19:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=QAp76YHv08+tqdGai5INtDgKlzLAYGoe7V5jXJ4NJFg=; b=nCSZbKuHb+ZIS127lHexPn7eDHYk2oUBm+3BeghwbkLAHVtTlKyaJ/nN+3kDswzIsu jxkluMascFGIyFwsGXzVopHuAQnvw4+NxyvQmYnkBpJGkpgcgNNqjKB17J2NAyJwEbxU 6PF3jwyk6tThaJ6H2jCe/rZUo5jkIWw5YlJF4= Received: by 10.227.142.140 with SMTP id q12mr4231880wbu.18.1317326077194; Thu, 29 Sep 2011 12:54:37 -0700 (PDT) Received: from [192.168.1.13] (5ED0E470.cm-7-1d.dynamic.ziggo.nl. [94.208.228.112]) by mx.google.com with ESMTPS id en9sm4374118wbb.24.2011.09.29.12.54.36 (version=SSLv3 cipher=OTHER); Thu, 29 Sep 2011 12:54:36 -0700 (PDT) Message-ID: <4E84CCFB.1040001@gmail.com> Date: Thu, 29 Sep 2011 21:54:35 +0200 From: johan Hendriks User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110922 Thunderbird/3.1.15 MIME-Version: 1.0 To: Moggie References: <4E84AAF6.4040902@elasticmind.net> In-Reply-To: <4E84AAF6.4040902@elasticmind.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: PHP segmentation faults X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 20:19:56 -0000 Op 29-09-11 19:29, Moggie schreef: > Hi, > > Unfortunately, for some time now, PHP scripts have been producing > segmentation faults when executed on one of our systems :( > > Various posts found via google suggested reinstalling all the PHP > ports and/or using a script to re-order the PHP extension modules, but > all so far without success. > > The output of php -m is as follows: > > [PHP Modules] > apc > bz2 > Core > ctype > date > dom > ereg > filter > gd > hash > iconv > json > libxml > mbstring > mcrypt > mhash > mysql > mysqli > mysqlnd > openssl > pcre > PDO > pdo_mysql > pdo_sqlite > posix > Reflection > session > SimpleXML > snmp > sockets > SPL > sqlite3 > standard > tokenizer > xml > zip > zlib > > > I'm using this simple test to reproduce the problem: > > /tmp/test.php > Print "Hello, World!"; > ?> > > > /usr/local/bin/php /tmp/test.php > Hello, World!Segmentation fault (core dumped) > > > All this makes me sad, especially since my Cacti graphs aren't being > updated any more :( Any help or advise on how I might go about > resolving this please would be very much appreciated. Thank you in > advance for your time and consideration. > > Kind regards, > moggie > try to disable some modules you do not use for cacti for example. then try to enable some modules one at the time to see which is faulty. Also try to shuffle with the order in which they load. I had the same with zabbix, and finally found an order in which my maps did not crash the server any more. This is the order in my /usr/local/etc/php/extensions.ini extension=zlib.so extension=mysql.so extension=gettext.so extension=xml.so extension=gd.so extension=ctype.so extension=session.so extension=iconv.so extension=pdo.so extension=pdo_pgsql.so extension=pgsql.so extension=apc.so extension=pdf.so extension=bcmath.so extension=bz2.so extension=curl.so extension=dom.so extension=mbstring.so extension=mysqli.so extension=pdo_sqlite.so extension=sqlite.so extension=sqlite3.so extension=json.so extension=tokenizer.so extension=filter.so extension=hash.so extension=posix.so extension=simplexml.so extension=xmlreader.so extension=xmlwriter.so extension=ldap.so extension=mcrypt.so extension=openssl.so extension=snmp.so extension=sockets.so extension=zip.so I do not have all the extensions you have, but maybe this helps you. regards, Johan Hendriks