Date: Thu, 17 Dec 2009 13:06:28 +1100 From: David N <davidn04@gmail.com> To: Raphael Becker <rabe@uugrn.org> Cc: ports@freebsd.org Subject: Re: FreeBSD Port: php5-mhash-5.2.11_1 Message-ID: <4d7dd86f0912161806i5100ca6cn6663e1f26ba425b5@mail.gmail.com> In-Reply-To: <20091217015358.GB88894@ma.sigsys.de> References: <27485796-553F-4396-84A8-11F88968F3C9@niftywerks.com> <20091217015358.GB88894@ma.sigsys.de>
next in thread | previous in thread | raw e-mail | index | archive | help
2009/12/17 Raphael Becker <rabe@uugrn.org>: > 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 <rabe@uugrn.org> =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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4d7dd86f0912161806i5100ca6cn6663e1f26ba425b5>