Comments (4)
Hi there, unfortunately I'm still experiencing this error.
PHP Fatal error: Uncaught Error: Maximum call stack size of 8339456 bytes (zend.max_allowed_stack_size - zend.reserved_stack_size) reached. Infinite recursion?
Example:
...
$server = new Swoole\HTTP\Server('[::]', 9009, SWOOLE_PROCESS);
$sTables = new SwooleTables();
$sTables->worker = ProcessHelper::setupWorkerTable();
$cpus = swoole_cpu_num();
$server->set([
'log_level' => 4,
'reactor_num' => $cpus * 2,
'worker_num' => $cpus * 8,
'enable_coroutine' => true,
'hook_flags' => SWOOLE_HOOK_TCP | SWOOLE_HOOK_NATIVE_CURL | SWOOLE_HOOK_SLEEP | SWOOLE_HOOK_BLOCKING_FUNCTION,
'dispatch_func' => static fn () => 0,
'package_max_length' => 30 * 1024 * 1024 // 30MB
]);
...
I've tried code from latest master and also 5.1.2
My setup:
Linux d-ivr01 6.5.0-1014-aws #14~22.04.1-Ubuntu SMP Thu Feb 15 19:20:45 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux
PHP 8.3.2 (cli) (built: Feb 29 2024 20:34:57) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.2, Copyright (c) Zend Technologies
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/11/lto-wrapper
Target: aarch64-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,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --program-prefix=aarch64-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-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=2
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04)
swoole
Swoole => enabled
Author => Swoole Team <[email protected]>
Version => 5.1.2
Built => Mar 3 2024 02:35:51
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
zlib => 1.2.11
mutex_timedlock => enabled
pthread_barrier => enabled
futex => 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 => On => On
swoole.unixsock_buffer_size => 8388608 => 8388608
from swoole-src.
I can confirm the same with PHP php:8.3.7-cli and swoole v5.1.2, but usually happens if it gets a request before everything is started, like ping health checks.
from swoole-src.
@kenashkov @ValiDrv @smathersPersonal
We have released Swoole v5.1.3. You can try Swoole v5.1.3 to see if this issue still exists.
from swoole-src.
Just tested, so far no errors!! Thanks !
php-8.3.8, Swoole v5.1.3
from swoole-src.
Related Issues (20)
- WARNING Server::check_worker_exit_status(): worker(pid=8162, id=13) abnormal exit, status=0, signal=11 HOT 2
- Manage connections at 1 second intervals from within the websocket task, close connections etc. HOT 2
- PHP Fatal error: Cannot redeclare Swoole\Coroutine\run() (previously declared in @swoole/library/core/Coroutine/functions.php:16) in [my_project_folder]/vendor/swoole/library/src/core/Coroutine/functions.php on line 24 HOT 3
- https://swoole.com/download 页面的文件均无法下载 HOT 1
- problem with variable value HOT 4
- 6.0开启线程,打开文件过多 HOT 5
- v6.0线程的Swoole\Thread\Map的bug HOT 6
- 开启 HTTP2 时,$request->server['request_method'] 与 $request->getMethod() 的结果不一致。 HOT 3
- swoole5.1.3 运行时异常退出 HOT 4
- Critically Urgent: Cloud Deployment Architecture for Swoole in Multi-process / Multi-threaded Mode
- swoole v6.0.0-dev 版本的swoole-cli 异常 HOT 2
- V6.0 配置了bootstrap后 没有执行$server->on和$server->start 事件就会失效 HOT 2
- Server deadlock when using max_concurrency HOT 3
- Swoole Tracker3.1发布,支持完善的内存泄漏检测!请问现在找不到Swoole Tracker 下载链接,是不提供该扩展了么? HOT 1
- v6.0 lock 多线程锁性能提升的一个方案 HOT 1
- php8.3 swoole5.1.3 kernel: php[1048884]: segfault at 48 ip 00007f82db25f197 sp 00007ffc466aa9c0 error 4 in swoole.so[7f82db1df000+1a2000] HOT 14
- undefined method Swoole\Thread::exec() HOT 4
- websocket服务器为什么在onclose事件中不提供closeCode HOT 2
- php8.3 swoole5.1.3 TaskWorker_onPipeReceive(): read(1056, 8192) failed,ReactorEpoll::wait(): EPOLLIN handle failed
- There is a memory leak defect on line 326 of the file /swoole-src/src/wrapper/http.cc.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swoole-src.