-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Swoole will be crashed with some hook flags. #4549
Comments
And here are some debug & trace logs
|
And another information that may be helpful, It was successfully running if I turn off OPCache extension. I use OPCache with preload feature. My preload file is located in root dir |
Why do you need preload with Swoole? Your code only loads once on server start. |
@ValiDrv it's less about why, but more about how it works with PHP 8.0 and not on PHP 8.1. |
I can confirm that just having opcache extension installed causes worker crashes for me too. I guess opcache probably isn't necessary, but I had it enabled out of habit from other projects. It should probably be noted somewhere in the documentation that these two extensions aren't compatible. |
Please answer these questions before submitting your issue. Thanks!
I use swoole with this laravel extension - laravel/octane (https://laravel.com/docs/8.x/octane)
We've adjust all the swoole configs in
config/octane.php
github repository which contains reproducing scripts : https://github.com/chris-lee-lb/swoole-debug-2021-12-21
docker image which contains reproducing scripts : https://hub.docker.com/r/protosschris/swoole-debug-2021-12-21
and then you run docker instance with :
docker run -d -e "PHP_OPCACHE_ENABLED=true" --name test -p 80:80 protosschris/swoole-debug-2021-12-21:debug
and for test curl routes :
curl -vvv 'http://localhost'
Successfully running.
Crashed.
php --ri swoole
)?uname -a
&php -v
&gcc -v
) ?PS : I can successfully running for docker for mac with my Mac Pro, but crashed with GCP GKE 1.20.10-gke.1600
The text was updated successfully, but these errors were encountered: