-
Notifications
You must be signed in to change notification settings - Fork 1
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
[Bug]: Segfault with herd php-fpm #1251
Comments
Can you come up with a minimal reproducible example code? |
It's rendering this page: Unfortunately, it's not straight forward to create a minimal example, as there's a lot of code and content, hence my question... Question: how can I go about debugging this problem with Herd? Any help or guidance would be much appreciated. Thank you.
Yes, tried disabled all extensions. |
Even if you would use a previous version of Herd you would still end up with a segfault as this comes from PHP itself. So this would be related to any "recent" PHP Update. Even though PHP 8.1 in particular received its latest update on November 2024. Edit: As you mentioned this: so the page that gives you a segfault works with PHP artisan serve? Are you using Herds PHP binaries on the commandline? |
Yes, I believe so. From php.ini:
Understood and makes sense to me... Hence, the question I was asking is not "can you fix this for me?" but "how to debug a segfault with Herd?" So I can narrow down where the error is happening and either file a bug report with the appropriate team OR find a workaround in my own code. Thank you! |
@looksystems this is really hard to track down I'm afraid. Just to reconfirm: did you try and disable all extensions (even the herd extension)? There might be something in your PHP FPM logs, but I don't think a segfault is going to log anything 🤔 |
Platform
macOS
Operating system version
MacOS Sonoma Version 14.6.1 (23G93)
System architecture
Intel (x86)
Herd Version
Herd 1.14.1 (Build: 39)
PHP Version
php-fpm 8.1 to 8.3 (application incompatible with other versions)
Bug description
Receive a segfault when accessing a content managed page (admin and other pages work just fine)
Same page works just fine if I use
./artisan serve
I've tried 8.1, 8.2 and 8.3, disabling extensions, and disabling zend op cache but have had no luck and am stumped as to what to try next, as I cannot see what is causing the segfault.
This used to work with Herd and php 8.1 (I want to say a few months ago)... unfortunately, I can't recall which release caused the problem.
Question: how can I go about debugging this problem with Herd? Any help or guidance would be much appreciated. Thank you.
eg. how to catch segfault dumps; or rollback to earlier versions of herd; or any other suggestions
Current settings for php.ini 8.3:
Steps to reproduce
n/a - only repeatable with my specific application
Relevant log output
The text was updated successfully, but these errors were encountered: