Closed CViniciusSDias closed 2 months ago
I will test it later.
Or try to follow this tutorial to see where the problem lies. https://wiki.swoole.com/en/#/other/issue?id=about-segmentation-fault-core-dump
If I don't enable hooks, i.e., if I remove the following lines, I don't get the error:
$_SERVER['APP_RUNTIME_OPTIONS'] = [
'settings' => [
'hook_flags' => SWOOLE_HOOK_ALL,
],
];
Setting it to SWOOLE_HOOK_ALL & ~SWOOLE_HOOK_FILE & ~SWOOLE_HOOK_STDIO
also makes the error go away. So the problem seems to be with SWOOLE_HOOK_FILE
and / or SWOOLE_HOOK_STDIO
. With that, I assume it's a problem that happens when logs are written.
Please answer these questions before submitting your issue.
I have a small pet project and I added one docker compose service for a Swoole server and another one for the FPM server. The application can be checked here: https://github.com/CViniciusSDias/picpay-challenge/tree/swoole-plus-fpm When running
docker compose up -d
, everything seems to work fine and I am able to perform requests (http://localhost:8123/users
, for example), but if I perform a small stress test, it gives me error responses and shows the following warning in the logs:This is how I executed the stress test:
No errors in the logs and a successful test result
Only 2 requests being handled by swoole and multiple of the following logs in the output:
php --ri swoole
)?5.1.1
uname -a
&php -v
&gcc -v
) ?uname -a
in my host:uname -a
inside the container:php -v
inside the container:gcc -v
inside the container: