-
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
A bug occurred in Swoole-v5.1.1, please report it. #5306
Comments
GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1 For help, type "help". |
这是 gdb -p master进程ID |
https://wiki.swoole.com/zh-cn/#/other/issue?id=关于段错误核心转储 |
改成SWOOLE_BASE错误依旧,生成core文件要重新编译swoole扩展,不过我是通过apt install php8.1-swoole 这种方式安装的,重新编译相同版本的安装就不知道能不能复现了,我可以试试 |
看一下 |
[PHP Modules] [Zend Modules] |
屏蔽掉 |
卸载xdebug就正常了,不是说8.1后xdebug可以用了吗 |
|
xdebug \ \ / / | | | |
Version => 3.3.2
Feature => Enabled/Disabled
Compressed File Support => yes (gzip) Directive => Local Value => Master Value |
我没法复现这个问题,看看能不能提供一份最小化代码以供复现 |
Sorry for hijacking this thread. I just wanted to share my observation that crashes stop happening for me when I disable the xdebug (3.3.2) extension. php8.3-swoole5.1.1 When does the crash happen: |
@fpysky 我发现是xdebug的max_nesting_level参数设置成了512,如果是某个循环超过512次,就会抛出PHP Fatal error直接终止进程 |
@dhobi I found that the |
@NathanFreeman thx for this! What is your proposed fix / workaround here? Simply raise max_nesting_level to a higher number? Would it help if I test it with my "crashing scenario"? |
I've raised the max_nesting_level in xdebug to 50000, but this bug still happens.
|
Please answer these questions before submitting your issue.
[2024-04-26 10:18:00 $32504.0] WARNING Server::check_worker_exit_status(): worker(pid=33336, id=12) abnormal exit, status=0, signal=11
A bug occurred in Swoole-v5.1.1, please report it.
The Swoole developers probably don't know about it,
and unless you report it, chances are it won't be fixed.
You can read How to report a bug doc before submitting any bug reports:
OS: Linux 6.5.0-28-generic #29~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr 4 14:39:20 UTC 2 x86_64
GCC_VERSION: 11.4.0
OPENSSL_VERSION: OpenSSL 3.0.2 15 Mar 2022
PHP_VERSION : 8.1.26
What did you expect to see?
What did you see instead?
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 => Dec 1 2023 13:40:59
coroutine => enabled with boost asm context
epoll => enabled
eventfd => enabled
signalfd => enabled
cpu_affinity => enabled
spinlock => enabled
rwlock => enabled
sockets => enabled
openssl => OpenSSL 3.0.2 15 Mar 2022
dtls => enabled
http2 => enabled
json => enabled
curl-native => enabled
pcre => enabled
mutex_timedlock => enabled
pthread_barrier => enabled
futex => enabled
mysqlnd => enabled
async_redis => 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 => 8388608 => 8388608
uname -a
&php -v
&gcc -v
) ?uname -a
Linux feng-dev 6.5.0-28-generic aaaaa #29~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr 4 14:39:20 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
php8.1 -v
PHP 8.1.28 (cli) (built: Apr 22 2024 09:45:11) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.28, Copyright (c) Zend Technologies
with Zend OPcache v8.1.28, Copyright (c), by Zend Technologies
with Xdebug v3.3.2, Copyright (c) 2002-2024, by Derick Rethans
gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/11/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 11.4.0-1ubuntu1
22.04' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-11-XeT9lY/gcc-11-11.4.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-11-XeT9lY/gcc-11-11.4.0/debian/tmp-gcn/usr --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=222.04)Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1
框架环境:hyperf 3.1
The text was updated successfully, but these errors were encountered: