2009/12/17 Raphael Becker <r...@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=perl.so > extension=radius.so > extension=fileinfo.so > extension=calendar.so > extension=dba.so > extension=readline.so > extension=pcntl.so > extension=pdo.so > extension=hash.so > extension=sockets.so > extension=mbstring.so > extension=json.so > extension=iconv.so > extension=xmlwriter.so > extension=bz2.so > extension=mcrypt.so > extension=gettext.so > extension=pcre.so > extension=filter.so > extension=zlib.so > extension=bcmath.so > extension=gmp.so > extension=ctype.so > extension=xml.so > extension=zip.so > extension=gd.so > extension=xmlrpc.so > extension=exif.so > extension=simplexml.so > extension=pdo_sqlite.so > extension=spl.so > extension=posix.so > extension=sqlite.so > extension=session.so > extension=wddx.so > extension=tokenizer.so > extension=soap.so > extension=mysql.so > extension=dom.so > extension=xmlreader.so > extension=pdf.so > extension=xsl.so > > > I disabled those: > #extension=openssl.so > #extension=pdo_mysql.so > #extension=ldap.so > #extension=imap.so > #extension=mhash.so > #extension=ftp.so > #extension=curl.so > #extension=mysqli.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: > > [r...@freebsd ~]# for SO in $(grep ^[#] /usr/local/etc/php/extensions.ini | > cut -f 2 -d "="); do ldd /usr/local/lib/php/20060613/$SO; done | > grep usr/local | awk '{ print $1 " => " $3 ; }' | sort | uniq -c | sort -n > > [snip] > 2 libmysqlclient.so.15 => /usr/local/lib/mysql/libmysqlclient.so.15 > 7 libcrypto.so.5 => /usr/local/lib/libcrypto.so.5 > 7 libssl.so.5 => /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)" > > [r...@freebsd ~]# for SO in $(grep ^[^#] /usr/local/etc/php/extensions.ini | > cut -f 2 -d "="); do ldd /usr/local/lib/php/20060613/$SO; done | > grep usr/local | awk '{ print $1 " => " $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 <r...@uugrn.org> http://rabe.uugrn.org/ > https://www.xing.com/profile/Raphael_Becker > GnuPG: E7B2 1D66 3AF2 EDC7 9828 6D7A 9CDA 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 _______________________________________________ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"