Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Dec 2009 02:53:58 +0100
From:      Raphael Becker <rabe@uugrn.org>
To:        ports@freebsd.org
Subject:   Re: FreeBSD Port: php5-mhash-5.2.11_1
Message-ID:  <20091217015358.GB88894@ma.sigsys.de>
In-Reply-To: <27485796-553F-4396-84A8-11F88968F3C9@niftywerks.com>
References:  <27485796-553F-4396-84A8-11F88968F3C9@niftywerks.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--yEPQxsgoJgBvi8ip
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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 =20
> dumps its core rather than end nicely. The mhash module appears to be =20
> the trigger (an extensions.ini with only mhash causes failure, all =20
> others minus mhash: no failure).
>=20
> 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 |=
=20
cut -f 2 -d "=3D"); do ldd /usr/local/lib/php/20060613/$SO; done |=20
grep usr/local | awk '{ print $1 " =3D> " $3 ; }' | sort | uniq -c | sort -n

   [snip]
   2 libmysqlclient.so.15 =3D> /usr/local/lib/mysql/libmysqlclient.so.15
   7 libcrypto.so.5 =3D> /usr/local/lib/libcrypto.so.5
   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.ini |
 cut -f 2 -d "=3D"); do ldd /usr/local/lib/php/20060613/$SO; done |=20
grep usr/local | awk '{ print $1 " =3D> " $3 ; }' | sort | uniq -c | sort -=
n |=20
egrep -c "(libcrypto.so.5|libssl.so.5)"=20
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

--=20
Raphael Becker <rabe@uugrn.org>                   http://rabe.uugrn.org/
                             https://www.xing.com/profile/Raphael_Becker
GnuPG:                E7B2 1D66 3AF2 EDC7 9828  6D7A 9CDA 3E7B 10CA 9F2D
=2E........|.........|.........|.........|.........|.........|.........|..

--yEPQxsgoJgBvi8ip
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQFLKY82nNo+exDKny0RAtsmAKCy6vqlSCQ9b2Jgcie3Bzu6L+0/WwCfQSdV
44YGUOfCDnqplk7V9hGsav8=
=CDbf
-----END PGP SIGNATURE-----

--yEPQxsgoJgBvi8ip--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091217015358.GB88894>