[MacPorts] #58598: php73: can throw a known bus error on freebsd flavored OS if using ifuncs, can fix in configure.ac
MacPorts
noreply at macports.org
Fri Aug 28 03:09:59 UTC 2020
#58598: php73: can throw a known bus error on freebsd flavored OS if using ifuncs,
can fix in configure.ac
----------------------+------------------------
Reporter: johnww2 | Owner: ryandesign
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: php73 |
----------------------+------------------------
Comment (by carbonturtle):
I encountered this issue this week when setting up a Laravel 7 (7.26.0)
web app for the first time. I only experienced the problem in a web
server environment; I did not try to re-create it via command-line PHP
execution.\\
== System Info
* MacOS Mojave 10.14.6 (18G6020)
* 2018 MacBookPro15,1
* 2.9 GHz Intel Core i9
* Xcode 11.3.1 (15715) with macOS 10.14 (18G74) and 10.15 (19B90) SDKs
* MacPorts php73 (7.3.16_0)
* MacPorts php73-apache2handler (7.3.16_0)
== From the crash log:
{{{
Application Specific Information:
crashed on child side of fork pre-exec
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 ??? 0x00000001081b15c0
php_base64_encode + 0
1 openssl.so 0x000000010ae9d8c9
zif_openssl_encrypt + 505
2 mod_php73.so 0x0000000107ac08f6
ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER + 80
3 mod_php73.so 0x0000000107a78d50 execute_ex + 98
4 mod_php73.so 0x0000000107a78ecc zend_execute +
318
5 mod_php73.so 0x0000000107a3d5f2
zend_execute_scripts + 277
6 mod_php73.so 0x00000001079e88a9
php_execute_script + 655
7 mod_php73.so 0x0000000107ae7ac8 php_handler +
1045
8 httpd 0x00000001073ed087 ap_run_handler
+ 51
9 httpd 0x00000001073ed641
ap_invoke_handler + 240
}}}
First I tried updating to 7.3.16_1 via `sudo port upgrade outdated` and
reloading Apache, but this didn't fix it.\\
\\
Then I rebuilt php73-openssl with `sudo port -ns upgrade --force
php73-openssl` and reloaded Apache, still no luck.\\
\\
'''Lastly, I tried `sudo port -ns upgrade --force php73 php73-openssl` and
reloaded Apache and that did the trick.'''\\
\\
I don't know whether there were any MacPorts binaries involved before I
forced the rebuild. Is it MacPorts' default behavior to provide binaries
when available? I had assumed it was building everything from source.\\
Note: A month ago, I encountered a problem (documented in ticket
#[ticket:59837] "macOS 10.14 SDK does not appear to be installed even
though Command Line Tools are installed") which I resolved by symlinking
the 10.14 SDK as suggested in ticket:59837#comment:27. Mentioning it in
case it's possible that the last time I upgraded php73* the build was
somehow broken due to that issue. That said, I use my local web server on
an almost-daily basis and never encountered any problems with php73 before
now.\\
Many thanks to Ryan and the others for blazing this trail and saving me
lots of time and frustration.
--
Ticket URL: <https://trac.macports.org/ticket/58598#comment:31>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list