PHP 7.2: SIGSEGV in OpenSSL

Mathieu Arnold mat at FreeBSD.org
Wed Apr 24 20:50:50 UTC 2019


On Wed, Apr 24, 2019 at 06:34:06PM +0200, Stefan Bethke wrote:
> > Am 23.04.2019 um 18:01 schrieb Kurt Jaeger <pi at freebsd.org>:
> > 
> > Hi!
> > 
> >> Did you find a solution? Please let me know.
> > 
> > There's a well-known problem in the sequence in which php modules
> > are loaded. I don't know if this is the case here as well,
> > but that's what we do:
> > 
> > fetch -o fixphpextorder \
> >        https://people.freebsd.org/~ohauer/scripts/fixphpextorder.sh
> > chmod 755 fixphpextorder
> > 
> > cd /usr/local/etc/php
> > cat ext-*ini > extensions.ini
> > fixphpextorder
> > mv extensions.ini.new extensions.ini
> > rm ext-*ini
> > 
> > Please test and report if it fixes the problem.
> 
> Thanks Kurt, it appears to fix (or at least work around) the problem.
> 
> Why is the default load order broken? Why does it not affect everyone?
> 
> I moved all the individual inis into a bak subdir, and now only have an extensions.ini.
> 
> If I understand correctly, mod_php/PHP reads the individual inis in order. Why aren’t they in the right order? Can this be fixed in the ports for the PHP modules?

Could you give the order that works for you, so that we can try to
figure out which module is making it break ?

Because there is no "right" order, there is an order that can work for
most people, and from time to time, two libs have conflicting symbols,
but it is not possible to detect that.  So I made up an order that
should be ok, but some time is not.

-- 
Mathieu Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20190424/0bf0cc81/attachment.sig>


More information about the freebsd-ports mailing list