Please answer these questions before submitting your issue.
What did you do? If possible, provide a simple script for reproducing the error.
Just put options to PHP (opcache) ini file:
opcache.protect_memory = 1
to swoole unit tests
What did you expect to see?
Some exceptions to catch? Normal work?
What did you see instead?
Segmentaion fault in worker process:
Program received signal SIGSEGV, Segmentation fault.
operator() (response=0x7f12f9a62da0, key=0x7f12fcdb0b58 "Content-Type", l_key=12, value=, __closure=) at /tmp/swoole-src/ext-src/swoole_http_response.cc:350
warning: Source file is more recent than executable.
350 str_value.rtrim();
(gdb) bt
0 operator() (response=0x7f12f9a62da0, key=0x7f12fcdb0b58 "Content-Type", l_key=12, value=, __closure=) at /tmp/swoole-src/ext-src/swoole_http_response.cc:350
1 0x00007f12fa0b98c1 in http_build_header (ctx=ctx@entry=0x7f12f9a54ff0, response=response@entry=0x7f12f9a62da0, body_length=body_length@entry=1064866) at /tmp/swoole-src/ext-src/swoole_http_response.cc:375
2 0x00007f12fa0bba87 in swoole::http::Context::end (this=0x7f12f9a54ff0, zdata=, return_value=0x7ffe8cba8f00) at /tmp/swoole-src/ext-src/swoole_http_response.cc:718
3 0x0000555cbaa458a3 in execute_ex ()
4 0x0000555cba9caf17 in zend_call_function ()
5 0x00007f12fa08c0da in sw_zend_call_function_ex (retval=0x0, params=0x7b7a0279404b4906, param_count=2, fci_cache=0x7f12f88672c0, function_name=0x0) at /tmp/swoole-src/ext-src/php_swoole_private.h:953
Please answer these questions before submitting your issue.
What did you do? If possible, provide a simple script for reproducing the error. Just put options to PHP (opcache) ini file:
opcache.protect_memory = 1
to swoole unit testsWhat did you expect to see?
Some exceptions to catch? Normal work?
Segmentaion fault in worker process:
php --ri openswoole
)?4.11.0
uname -a
&php -v
&gcc -v
) ?Latest alpine docker image.