Closed NHZEX closed 1 year ago
看报错感觉是pcre扩展出现了内存问题,你关闭pcre
扩展试试?
看报错感觉是pcre扩展出现了内存问题,你关闭
pcre
扩展试试?
https://www.php.net/manual/zh/pcre.installation.php
PCRE 是 PHP 核心扩展,所以总是启用的
这个方案不太可行吧,而且项目依赖正则,关了就运行不起来了。
能否提供一个github仓库,我可以下载项目,然后调试复现出你这个问题?
能否提供一个github仓库,我可以下载项目,然后调试复现出你这个问题?
我试试看
能否提供一个github仓库,我可以下载项目,然后调试复现出你这个问题?
在容器里错误变成里corrupted size vs. prev_size
https://github.com/NHZEX/yasd-tests
sudo docker build -t imi_test:yasd .
sudo docker run -it --rm \
-p 9988:9988 \
-e IMI_DEBUG=true \
-e MAIN_DB_HOST=192.168.1.166 \
-e MAIN_DB_PORT=3306 \
-e MAIN_DB_DATABASE=db \
-e MAIN_DB_USERNAME=db \
-e MAIN_DB_PASSWORD=password \
-e DEBUG_HOST=192.168.138.124 \
imi_test:yasd
请求多几次,不是每次都出现的。 Get: http://192.168.138.122:9988/api
之前还有个项目是corrupted size vs. prev_size
和double free or corruption (!prev)
交替发生
[MASK]/Listener/DbExecuteListener.php:27
2021-03-25 08:40:32 [debug] [SQL Execute] SHOW STATUS (vars:[]) [0.00237] [MASK]/Listener/DbExecuteListener.php:27
corrupted size vs. prev_size
[2021-03-25 08:40:33 $17.0] WARNING check_worker_exit_status: worker#2[pid=24] abnormal exit, status=0, signal=6
2021-03-25 08:45:02 [debug] [SQL Execute] SHOW STATUS (vars:[]) [0.01150] [MASK]/Listener/DbExecuteListener.php:27
2021-03-25 08:45:02 [debug] [SQL Execute] SHOW STATUS (vars:[]) [0.00238] [MASK]/Listener/DbExecuteListener.php:27
2021-03-25 08:45:03 [debug] [SQL Execute] SHOW STATUS (vars:[]) [0.00219] [MASK]/Listener/DbExecuteListener.php:27
corrupted size vs. prev_size
[2021-03-25 08:45:03 $17.0] WARNING check_worker_exit_status: worker#1[pid=48] abnormal exit, status=0, signal=6
2021-03-25 08:45:05 [debug] [SQL Execute] SHOW STATUS (vars:[]) [0.00280] [MASK]/Listener/DbExecuteListener.php:27
2021-03-25 08:45:06 [debug] [SQL Execute] SHOW STATUS (vars:[]) [0.00272] [MASK]/Listener/DbExecuteListener.php:27
2021-03-25 08:45:06 [debug] [SQL Execute] SHOW STATUS (vars:[]) [0.00270] [MASK]/Listener/DbExecuteListener.php:27
corrupted size vs. prev_size
[2021-03-25 08:45:06 $17.0] WARNING check_worker_exit_status: worker#1[pid=62] abnormal exit, status=0, signal=6
2021-03-25 08:45:06 [debug] [SQL Execute] SHOW STATUS (vars:[]) [0.00271] [MASK]/Listener/DbExecuteListener.php:27
2021-03-25 08:45:07 [debug] [SQL Execute] SHOW STATUS (vars:[]) [0.00286] [MASK]/Listener/DbExecuteListener.php:27
corrupted size vs. prev_size
[2021-03-25 08:45:07 $17.0] WARNING check_worker_exit_status: worker#2[pid=53] abnormal exit, status=0, signal=6
2021-03-25 08:45:07 [debug] [SQL Execute] SHOW STATUS (vars:[]) [0.01248] [MASK]/Listener/DbExecuteListener.php:27
2021-03-25 08:45:07 [debug] [SQL Execute] SHOW STATUS (vars:[]) [0.00276] [MASK]/Listener/DbExecuteListener.php:27
corrupted size vs. prev_size
[2021-03-25 08:45:08 $17.0] WARNING check_worker_exit_status: worker#1[pid=67] abnormal exit, status=0, signal=6
hyperf 2.2只要有sql查询,必然出现 [2022-01-19 16:05:30 $4178.0] WARNING Server::check_worker_exit_status(): worker(pid=6771, id=0) abnormal exit, status=0, signal=11 A bug occurred in Swoole-v4.8.6, 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:
https://github.com/swoole/swoole-src/blob/master/.github/ISSUE.md Please do not send bug reports in the mailing list or personal letters. The issue page is also suitable to submit feature requests.
OS: Linux 4.4.0-19041-Microsoft #1237-Microsoft Sat Sep 11 14:32:00 PST 2021 x86_64 GCC_VERSION: 7.5.0 OPENSSL_VERSION: OpenSSL 1.1.1 11 Sep 2018 PHP_VERSION : 7.4.27
wsl1,Ubuntu 18.04,hyperf 2.2,swoole 4.8.6,yasd 0.3.9-alpha,PHP 7.4.27
可以考虑使用 swoole-src的 xdebug分支,https://github.com/swoole/swoole-src/tree/support-xdebug 可以直接使用xdebug进行调试,前提是PHP版本要大于等于8.1
Please answer these questions before submitting your issue. Thanks!
debug imi-project
正常调试
uname -a
&php -v
&gcc -v
) ?编译的是最新分支:7f00cb8ae884b1ed3a02d019eab24ea5c36449c5
最初运行时还出现了个:core dump