正式环境docker部署hyperf_hyperf 项目在 docker 环境下部署出现 coredump

在正式环境中使用Docker部署Hyperf项目时,遇到了应用程序崩溃并产生Coredump的情况。错误源于`swoole_http2_server.cc`文件的第310行,可能与HTTP2响应头构建相关。此问题出现在PHP 7.3.14、Swoole 4.4.15及Linux 3.10.0-957.27.2.el7.x86_64环境下。堆栈跟踪显示了`swoole_http2_response_end`函数调用的问题。
摘要由CSDN通过智能技术生成

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

What did you expect to see?

What did you see instead?

Program terminated with signal SIGSEGV, Segmentation fault.

#0 http2_build_header (body_length=0, buffer=0x7ffaa3dfcd60 "", ctx=0x7ffaa7c86900) at /tmp/pear/swoole-4.4.15/swoole_http2_server.cc:310

310/tmp/pear/swoole-4.4.15/swoole_http2_server.cc: No such file or directory.

(gdb) bt

#0 http2_build_header (body_length=0, buffer=0x7ffaa3dfcd60 "", ctx=0x7ffaa7c86900) at /tmp/pear/swoole-4.4.15/swoole_http2_server.cc:310

#1 swoole_http2_server_do_response (ctx=0x7ffaa7c86900, body=0x7ffaa3dfedb0) at /tmp/pear/swoole-4.4.15/swoole_http2_server.cc:369

#2 0x00007ffaa8fe6121 in swoole_http2_response_end (ctx=0x7ffaa7c86900, zdata=, return_value=0x7ffaa3dfee48) at /tmp/pear/swoole-4.4.15/swoole_http2_server.cc:921

#3 0x0000558e86195dac in execute_ex ()

#4 0x00007ffaa8fd73a5 in swoole::PHPCoroutine::main_func (arg=0x7ffcc57af290) at /tmp/pear/swoole-4.4.15/swoole_coroutine.cc:761

#5 0x00007ffaa8f88aba in swoole::Context::context_func (arg=0x558e88071718) at /tmp/pear/swoole-4.4.15/src/coroutine/context.cc:125

#6 0x00007ffaa9058bb1 in make_fcontext () at /tmp/pear/swoole-4.4.15/thirdparty/boost/asm/make_x86_64_sysv_elf_gas.S:64

#7 0x0000000000000000 in ?? ()

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

4.4.15

What is your machine environment used (including version of kernel & php & gcc) ?

PHP 7.3.14

Linux d4815e8ee275 3.10.0-957.27.2.el7.x86_64 #1 SMP Mon Jul 29 17:46:05 UTC 2019 x86_64 Linux

gcc version 8.3.0 (Alpine 8.3.0)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值