From owner-freebsd-ports@FreeBSD.ORG Thu Dec 17 02:06:31 2009 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3C032106568B for ; Thu, 17 Dec 2009 02:06:31 +0000 (UTC) (envelope-from davidn04@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.27]) by mx1.freebsd.org (Postfix) with ESMTP id E94B18FC0A for ; Thu, 17 Dec 2009 02:06:30 +0000 (UTC) Received: by qw-out-2122.google.com with SMTP id 9so362841qwb.7 for ; Wed, 16 Dec 2009 18:06:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=OXqbFBrHNl6AKQPWstWZi0GtKiej9GJLky92htY/KMM=; b=Qxe4s045pj6ejDpTk+p7K9dKHd1pIyw7OPNvkSqI5v3IkeISERnKCwEg1bKnhelCrL 88zxa3OtMqWReIqaB/FtrylEqTV+E0aZlPhxYsu0vYueiyCXwQQsFkvrTkmX6z7PgfCL rCjAfj19jenrZZo8DaxBC1tTFJVLLYjWsvi4A= 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=pSPEdUtbxjxnpeyrsJq4ZoCgRPX0PR6lCwwvsFu4oWj7GneCFA/AwcHKY5O2dfleK3 88AtJYUEIC1uMOtv8zyAbTdmuOH7jc5D0KyHs3DJ7ocRkSYNPWV9SE/P6xnV9M60FOqV MOPgYQiUCmawwwQnzkvsUHTePWyhIlpo6Ns0A= MIME-Version: 1.0 Received: by 10.229.38.206 with SMTP id c14mr1069181qce.89.1261015588635; Wed, 16 Dec 2009 18:06:28 -0800 (PST) In-Reply-To: <20091217015358.GB88894@ma.sigsys.de> References: <27485796-553F-4396-84A8-11F88968F3C9@niftywerks.com> <20091217015358.GB88894@ma.sigsys.de> Date: Thu, 17 Dec 2009 13:06:28 +1100 Message-ID: <4d7dd86f0912161806i5100ca6cn6663e1f26ba425b5@mail.gmail.com> From: David N To: Raphael Becker Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: ports@freebsd.org Subject: Re: FreeBSD Port: php5-mhash-5.2.11_1 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, 17 Dec 2009 02:06:31 -0000 2009/12/17 Raphael Becker : > On Wed, Dec 16, 2009 at 02:29:08PM -0800, Simon Shapiro wrote: >> Hey, >> I just updated ports on a few machines and the CLI version of php >> dumps its core rather than end nicely. The mhash module appears to be >> the trigger (an extensions.ini with only mhash causes failure, all >> others minus mhash: no failure). >> >> Same outcome on various machines, running 7.1 and 7.2, i386 and amd64. > > Actually I have those modules enabled in extensions.ini, php doesn't > segfault: > extension=3Dperl.so > extension=3Dradius.so > extension=3Dfileinfo.so > extension=3Dcalendar.so > extension=3Ddba.so > extension=3Dreadline.so > extension=3Dpcntl.so > extension=3Dpdo.so > extension=3Dhash.so > extension=3Dsockets.so > extension=3Dmbstring.so > extension=3Djson.so > extension=3Diconv.so > extension=3Dxmlwriter.so > extension=3Dbz2.so > extension=3Dmcrypt.so > extension=3Dgettext.so > extension=3Dpcre.so > extension=3Dfilter.so > extension=3Dzlib.so > extension=3Dbcmath.so > extension=3Dgmp.so > extension=3Dctype.so > extension=3Dxml.so > extension=3Dzip.so > extension=3Dgd.so > extension=3Dxmlrpc.so > extension=3Dexif.so > extension=3Dsimplexml.so > extension=3Dpdo_sqlite.so > extension=3Dspl.so > extension=3Dposix.so > extension=3Dsqlite.so > extension=3Dsession.so > extension=3Dwddx.so > extension=3Dtokenizer.so > extension=3Dsoap.so > extension=3Dmysql.so > extension=3Ddom.so > extension=3Dxmlreader.so > extension=3Dpdf.so > extension=3Dxsl.so > > > I disabled those: > #extension=3Dopenssl.so > #extension=3Dpdo_mysql.so > #extension=3Dldap.so > #extension=3Dimap.so > #extension=3Dmhash.so > #extension=3Dftp.so > #extension=3Dcurl.so > #extension=3Dmysqli.so > > > If i enable any of those php will segfault again! > > Looking at the referenced libraries from the ports (usr/local) shows a > hot candidate: > > [root@freebsd ~]# for SO in $(grep ^[#] /usr/local/etc/php/extensions.ini= | > cut -f 2 -d "=3D"); do ldd /usr/local/lib/php/20060613/$SO; done | > grep usr/local | awk '{ print $1 " =3D> " $3 ; }' | sort | uniq -c | sort= -n > > =A0 [snip] > =A0 2 libmysqlclient.so.15 =3D> /usr/local/lib/mysql/libmysqlclient.so.15 > =A0 7 libcrypto.so.5 =3D> /usr/local/lib/libcrypto.so.5 > =A0 7 libssl.so.5 =3D> /usr/local/lib/libssl.so.5 > > 7 out of 8 disabled extensions depend on libcrypto.so.5 and libssl.so.5 > which come from openssl-0.9.8l > > > > Checking the enabled ones for "(libcrypto.so.5|libssl.so.5)" > > [root@freebsd ~]# for SO in $(grep ^[^#] /usr/local/etc/php/extensions.in= i | > =A0cut -f 2 -d "=3D"); do ldd /usr/local/lib/php/20060613/$SO; done | > grep usr/local | awk '{ print $1 " =3D> " $3 ; }' | sort | uniq -c | sort= -n | > egrep -c "(libcrypto.so.5|libssl.so.5)" > 0 > > --> no one of the enabled extensions are linked to libcrypto.so.5 or > libssl.so.5 > > I'd say there's something wrong with php-extensions linked to openssl-0.9= .8l > I don't know a solution for this yet, I recompiled practically every > dependency of php5-* > > I'd need some advise how to solve this, maybe any additional testing. > > Regards > Raphael > > -- > Raphael Becker =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 http:= //rabe.uugrn.org/ > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 https://www.xing.= com/profile/Raphael_Becker > GnuPG: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0E7B2 1D66 3AF2 EDC7 9828 =A06D7A 9C= DA 3E7B 10CA 9F2D > .........|.........|.........|.........|.........|.........|.........|.. > Thats a long list of extensions, try adding one of them to the end of extensions.ini one by one. The ordering of it matters, you need to re-arrange the order in which the extensions are loaded. You may need to play around with it until it stops core dumping. Regards David N