[MacPorts] #70987: php80, php81: Segmentation fault when generating phar.php
MacPorts
noreply at macports.org
Thu Oct 10 11:46:19 UTC 2024
#70987: php80, php81: Segmentation fault when generating phar.php
--------------------------+------------------------------
Reporter: exlemor | Owner: ryandesign
Type: defect | Status: accepted
Priority: Normal | Milestone:
Component: ports | Version: 2.10.1
Resolution: | Keywords: sequoia haspatch
Port: php80 php81 |
--------------------------+------------------------------
Changes (by ryandesign):
* keywords: sequoia => sequoia haspatch
Comment:
I think we now understand that the [comment:9 previously-identified
change] avoided this crash but didn't fix the real cause of the problem,
which is that PHP's assembly code on x86_64 and i386 is using a syntax for
declaring local symbols that is specific to ELF (e.g. Linux) systems. On
Mach-O (e.g. macOS) systems, these symbols are not being interpreted as
local and so the Clang 16 optimizer thinks it is OK to combine some of
them, which causes the crash. The fix is to [https://github.com/php/php-
src/issues/16168#issuecomment-2404830898 change the way the symbols are
declared] so that they are interpreted as local on all systems.
Before this was understood, the developers were suggesting
[https://github.com/php/php-src/issues/16168#issuecomment-2398032480 a
different change] which turned out not to work. I'll wait to see whether
they still want to include that change or whether the symbol name fix is
sufficient for them. Whichever they decide to go with, I'll apply that to
the affected MacPorts php versions.
--
Ticket URL: <https://trac.macports.org/ticket/70987#comment:11>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list