What's the gotcha with latest lang/php55?

Matthew Seaman matthew at FreeBSD.org
Tue May 26 06:29:41 UTC 2015

On 26/05/2015 02:08, David Benfell wrote:
> My websites are down. It has taken me forever to figure out that php is
> seg-faulting because I never know where to find the core dumps. I tried
> accessing the dump with gdb but it just hangs after telling me that it
> seg-faulted.
> Is anyone else running into this? Have you gotten through it? What do I
> need to fix and how?

There are two reasons why php may continually segfault:

  * Load order of extensions in /usr/local/etc/php/extensions.ini

  * Having a mixture of PHP modules with and without Zend thread safety

In the first case -- which I can't recall seeing any reports of in the
last few years, so it might actually have been fixed somehow -- it's a
matter of taking out some modules from extensions.ini until you can
isolate the one that triggers the crash, and then re-inserting it
sufficiently early in the order.

In the second case, you need consistent ZTS settings in all your PHP
packages, including the base language and such things as www/mod_php55.
 Check the contents of /usr/local/lib/php.  There will be a directory
for loadable modules called eg. either '20121212' or '20121212-zts.'
You certainly shouldn't have both.  To cure this problem, you will need
to reinstall as many of the php packages as necessary to ensure
consistent settings: it may be easier just to reinstall everything PHP



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 971 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20150526/3022456e/attachment.sig>

More information about the freebsd-questions mailing list