swoole / swoole-src

🚀 Coroutine-based concurrency library for PHP
https://www.swoole.com
Apache License 2.0
18.25k stars 3.16k forks source link

hyperf:执行pgsql查询,worker进程退出 #5297

Open pizsd opened 4 weeks ago

pizsd commented 4 weeks ago

Please answer these questions before submitting your issue.

  1. What did you do? If possible, provide a simple script for reproducing the error.

hyperf3.0 开启xdebug调试时,执行pgsql查询,worker进程退出

[2024-04-19 16:32:54 $71382.0] WARNING Server::check_worker_exit_status(): worker(pid=71528, id=4) abnormal exit, status=0, signal=10 [INFO] Worker#4 started.

  1. What did you expect to see?

正常debug

  1. What did you see instead?

[2024-04-19 16:32:54 $71382.0] WARNING Server::check_worker_exit_status(): worker(pid=71528, id=4) abnormal exit, status=0, signal=10 [INFO] Worker#4 started.

  1. What version of Swoole are you using (show your php --ri swoole)?

swoole

Swoole => enabled Author => Swoole Team team@swoole.com Version => 5.1.1 Built => Apr 19 2024 17:03:52 coroutine => enabled with boost asm context kqueue => enabled rwlock => enabled http2 => enabled json => enabled pcre => enabled zlib => 1.2.12 brotli => E16781312/D16781312 async_redis => enabled coroutine_pgsql => enabled

Directive => Local Value => Master Value swoole.enable_coroutine => On => On swoole.enable_library => On => On swoole.enable_fiber_mock => Off => Off swoole.enable_preemptive_scheduler => Off => Off swoole.display_errors => On => On swoole.use_shortname => Off => Off swoole.unixsock_buffer_size => 262144 => 262144

  1. What is your machine environment used (show your uname -a & php -v & gcc -v) ?

uname -a: Darwin MacBook-Pro.local 22.6.0 Darwin Kernel Version 22.6.0: Wed Jul 5 22:17:35 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T8112 arm64

php -v: PHP 8.1.27 (cli) (built: Dec 19 2023 20:35:55) (NTS) Copyright (c) The PHP Group Zend Engine v4.1.27, Copyright (c) Zend Technologies with Xdebug v3.2.2, Copyright (c) 2002-2023, by Derick Rethans with Zend OPcache v8.1.27, Copyright (c), by Zend Technologies gcc -v:

Apple clang version 15.0.0 (clang-1500.1.0.2.5) Target: arm64-apple-darwin22.6.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin