From owner-freebsd-apache@FreeBSD.ORG Mon Apr 4 18:42:15 2011 Return-Path: Delivered-To: apache@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F8DF106566C for ; Mon, 4 Apr 2011 18:42:15 +0000 (UTC) (envelope-from ohauer@FreeBSD.org) Received: from u18-124.dslaccess.de (unknown [194.231.39.124]) by mx1.freebsd.org (Postfix) with ESMTP id 4DF658FC1A for ; Mon, 4 Apr 2011 18:42:15 +0000 (UTC) Received: from [172.20.1.100] (unknown [172.20.1.100]) by u18-124.dslaccess.de (Postfix) with ESMTPSA id 1C08720574; Mon, 4 Apr 2011 20:42:08 +0200 (CEST) Message-ID: <4D9A1127.5010704@FreeBSD.org> Date: Mon, 04 Apr 2011 20:42:47 +0200 From: Olli Hauer User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: Jeremy Chadwick References: <3ba8dbabc703778d58bcae920ca36696.squirrel@www.abc.pl.ua> <4D9637C2.4080709@FreeBSD.org> <25eaebc346d5e568f288e04f98aa7871.squirrel@www.abc.pl.ua> <4D98B536.8020709@FreeBSD.org> <20110404165647.GA59645@icarus.home.lan> In-Reply-To: <20110404165647.GA59645@icarus.home.lan> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: apache@FreeBSD.org Subject: Re: php5-imap core dumped X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ohauer@FreeBSD.org List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Apr 2011 18:42:15 -0000 On 2011-04-04 18:56, Jeremy Chadwick wrote: > On Mon, Apr 04, 2011 at 02:49:07PM +0300, bsd@abc.pl.ua wrote: >>> On 2011-04-02 06:00, bsd@abc.pl.ua wrote: >>>>> On 2011-04-01 21:59, bsd@abc.pl.ua wrote: >>>>>> Hello!!! [...] >>>>>> >>>>>> If I include extension=imap.so,have >>>>>> >>>>>> phphostitt# php -m >>>>>> Segmentation fault (core dumped) >>>>>> >>>>>> How to be here? >>>>>> >>>>> >>>>> Please provide additional the output of the commands >>>>> >>>>> # cat /usr/local/etc/php/extensions.ini >>>>> # httpd -V >>>>> # php -v >>>>> >>>>> If php -v fails, then set a comment with `;' in the extensions.ini >>>>> like this `;extension=imap.so' >>>>> >>>>> and try additional >>>>> # php -m >>>>> >>>>> [ ... ] >>> >> >> Run fixphpextorder.sh >> >> Now all works. >> >> php -m >> [PHP Modules] >> bcmath [...] > > php -m will always show the modules in sorted order. You can't rely on > this command to determine what order the extensions were loaded. You > have to look at extensions.ini for that. Yes, but with the previous order he was not able to fire the command without segfault. I had the same issue a view years ago and it was the order in php/extension.ini. With the informations I found on - http://www.pingle.org/2007/09/22/php-crashes-extensions-workaround [1] - http://nerdstock.org/php_extensions [2] I hacked together an updated version of the script from [1] which includes the additional informations from [1] and [2] in hope it will solve the problem. Glad to know it worked in this case.