Date: Tue, 26 May 2015 07:29:13 +0100 From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-questions@freebsd.org Subject: Re: What's the gotcha with latest lang/php55? Message-ID: <556412B9.7000508@FreeBSD.org> In-Reply-To: <20150525180825.Horde.iLgBeoFSnW0rHEfqq6T9Wky@mail.parts-unknown.org> References: <20150525180825.Horde.iLgBeoFSnW0rHEfqq6T9Wky@mail.parts-unknown.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--tIEPVvloFgeHQKPjL6R467aHbpQim442W
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
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.
>=20
> 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
enabled.
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
related.
Cheers,
Matthew
--tIEPVvloFgeHQKPjL6R467aHbpQim442W
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.20 (Darwin)
iQJ8BAEBCgBmBQJVZBLCXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC
QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATCNcP/jG4nyp3pe7etmCuYKaffikY
V+1n3PN35mDvH0ypBZySRjGE/rA3NQszYcvcvZFTPlOJN5CXY1PduT6+ktDc31DS
ak8/MXhC38bicVVMZocF3hCJ42FJ/SlZT/Yo9OmPePshAQ41yr84l8SyC1C4pRkI
6SE8vrmCom93mIiaePag/j8cAdR0eRXkez3Qvey1YtgdrDWNiU8HFxisQOdCruY9
hbM0BMIdV7r65SPcaj+i/Sg7neHdA8IN5XiJrbXDq+awisuI3hljLxMJJrvQNKT5
JD6iXLvEEq17ViH5iMFiq3cEcRhiDB82g7n0Dyc/mf6WT7G4YWcUCABC8cq1seUJ
7DUXdGF9c8v/qkMAxJBnLWgUUA4b2f7+Hb4xWJbQvShK84/ONHO+GrptiWHBYIgy
2dFXi8SZqTGfEyIiLWBINApRGcGkpUzSdeMSFdgKs6cK9TexLy8ImBuLBpj8EmSJ
58cbi5uANtvTHd1zEhwEMVN1hGG+cewtJ0DeqtOYCGm9efQRf3E7xfY+WMw5ADYb
CYTNMsjzKn3S4tDatnmKWOeoTpAAtjfeF1M9UzhqpVN8jNUqHsXZGqhFyHvkvItG
q7042WbdsLjBidnXB60Iljp25hU7Kn4tcFCU3s2pKNyJLcfY+UH+J0i2sfaIf/O/
RMo/8lV03PcAjLT9sNw/
=0oo+
-----END PGP SIGNATURE-----
--tIEPVvloFgeHQKPjL6R467aHbpQim442W--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?556412B9.7000508>
