-
Notifications
You must be signed in to change notification settings - Fork 51
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
Server::check_worker_exit_status(): worker(pid=207710, id=2) abnormal exit #358
Comments
we are facing many issues like this one in production servers, any updates? `WARNING Server::check_worker_exit_status(): worker(pid=35964, id=0) abnormal exit, status=0, signal=11 OS: Linux 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64 |
can you post a program to reproduce this bug? Also, can you turn on core dumps and send the dump file? |
Since 01.06.2024 we also encounter many of such issues with
We did not change any code since 1. May 2024 and all of a sudden this error popped up. Any advice? |
@bitslip6 I think I've narrowed this down to the #!/usr/bin/env php
<?php
declare(strict_types=1);
use OpenSwoole\Http\Request;
use OpenSwoole\Http\Response;
use OpenSwoole\Http\Server;
$server = new Server("0.0.0.0", 8080, Server::POOL_MODE);
$server->set([
'max_request_execution_time' => 1,
'daemonize' => false,
]);
$server->on('Request', function (Request $request, Response $response) {
$response->end('OK');
});
$server->start(); Running the server and making a request results in the worker segfaulting and the errors reported above. If you comment out |
@baxsmaxbax @nvtienlg @dompie ^^^ Can you confirm if removing |
I have no this setting |
I do not have set the setting |
I have the same problem when I try to use "prepare" method of OpenSwoole\Coroutine\PostgreSQL: [2024-08-05 10:19:55 $49839.0] WARNING Server::check_worker_exit_status(): worker(pid=49846, id=2) abnormal exit, status=0, signal=11
A bug occurred in OpenSwoole-v22.1.2, please report it.
Please submit bug report at:
>> https://github.com/openswoole/swoole-src/issues
OS: Linux 6.5.0-44-generic #44~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Jun 18 14:36:16 UTC 2 x86_64
GCC_VERSION: 11.4.0
OPENSSL_VERSION: OpenSSL 3.0.2 15 Mar 2022
PHP_VERSION : 8.3.9 My code looks like: $pg = DB::getInstance(); // get a instance of OpenSwoole\Coroutine\PostgreSQL
$result = $pg->prepare("SELECT * FROM doctrine_migration_versions WHERE execution_time = $1");
$result->execute([60]); |
@kynx yes it related to max_request_execution_time Seem Openswoole will add internal timer to track timeout, in swoole_http_server.cc Somehow php_swoole_http_request_onTimeout causes segment fault |
@nvtienlg Good detective work! Maybe this should be raised as a new issue, since it doesn't sound like the cause of the original issue posted by @baxsmaxbax and has a reproducer and trace? |
Message was found in OpenSwoole\HTTP\Server logs:
The text was updated successfully, but these errors were encountered: