-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP 7.3 segfaults when forking and using preg_match #35491
Comments
Can you give us a backtrace of the segfault? Either by attaching a debugger, or looking up the macOS crash log for the process? |
@fxcoudert Sure, you can find the crash report here |
From the crash log, it appears to be the bug reported here: https://bugs.php.net/bug.php?id=77260 |
@fxcoudert It looks really the same indeed. Also this:
So I guess we have to wait for PHP to fix this. Do you want to close this here? |
Yes, I don't think there is much we can do here. We'll have to wait that PHP fixes this. Thanks for the bug report @ruudk! |
maybe #35660 had something to do with it. |
@SMillerDev Makes sense, can you test out the script above and see if it segfaults on your #35660 branch? |
It's already merged. Doesn't seem fixed though :( |
Temporary workaround is to set this in your php.ini: |
Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.
brew install
(orupgrade
,reinstall
) a single, official formula (not cask)? If it's a generalbrew
problem please file this issue at Homebrew/brew: https://github.com/Homebrew/brew/issues/new/choose. If it's abrew cask
problem please file this issue at https://github.com/Homebrew/homebrew-cask/issues/new/choose. If it's a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.brew update
and can still reproduce the problem?brew doctor
, fixed all issues and can still reproduce the problem?brew gist-logs <formula>
(where<formula>
is the name of the formula that failed) and included the output link? https://gist.github.com/ruudk/7eab6b140eaf616928680ac3e53b10adbrew gist-logs
didn't work: ranbrew config
andbrew doctor
and included their output with your issue?Problem
There seems to be an issue with PHP 7.3 10.14.2 (18C54) on Mojave. The issue was discovered by @bobthecow.
How to reproduce
brew install [email protected]
test.php
with the following contents:/usr/local/opt/[email protected]/bin/php test.php
Expected output:
But on Homebrew with PHP 7.3.0 on Mojave 10.14.2 (18C54) it shows:
The issue does not happen on Ubuntu 16.04 + PHP 7.3 (ppa:ondre/php) for example.
The text was updated successfully, but these errors were encountered: