Closed zhuchonglin closed 1 month ago
(gdb) bt
x=<optimized out>, y=<optimized out>, z=8) at src/thread/pthread_cancel.c:33
from /usr/local/lib/php/extensions/no-debug-non-zts-20230831/swoole.so
from /usr/local/lib/php/extensions/no-debug-non-zts-20230831/swoole.so
--Type
at src/env/__libc_start_main.c:95
(gdb) f 1
x=<optimized out>, y=<optimized out>, z=8) at src/thread/pthread_cancel.c:33
33 in src/thread/pthread_cancel.c (gdb) f 0
warning: 29 src/thread/x86_64/syscall_cp.s: No such file or directory
php -m看一下扩展列表
php -m看一下扩展列表
/var/www/app # php -m [PHP Modules] Core ctype curl date dom fileinfo filter hash iconv json libxml mbstring mysqlnd openssl pcre PDO pdo_mysql pdo_sqlite Phar posix random readline redis Reflection session SimpleXML sockets sodium SPL sqlite3 standard swoole tokenizer xml xmlreader xmlwriter zlib
[Zend Modules]
Please answer these questions before submitting your issue.
What did you do? If possible, provide a simple script for reproducing the error. OS: Linux 5.15.49-linuxkit-pr #1 SMP Thu May 25 07:17:40 UTC 2023 x86_64 GCC_VERSION: 13.2.1 20231014 OPENSSL_VERSION: OpenSSL 3.1.4 24 Oct 2023 PHP_VERSION : 8.3.4 在上述环境中运行https://wiki.swoole.com/#/http_server示例代码时当接收到请求就会输出Segmentation fault
What did you expect to see? 能够正常运行
What did you see instead? 输出Segmentation fault进程意外退出
What version of Swoole are you using (show your
php --ri swoole
)? Swoole => enabled Author => Swoole Team team@swoole.com Version => 5.1.2 Built => Mar 16 2024 10:01:06 coroutine => enabled with boost asm context epoll => enabled eventfd => enabled signalfd => enabled spinlock => enabled rwlock => enabled sockets => enabled openssl => OpenSSL 3.1.4 24 Oct 2023 dtls => enabled http2 => enabled json => enabled curl-native => enabled pcre => enabled zlib => 1.3.1 brotli => E16781312/D16781312 mutex_timedlock => enabled pthread_barrier => enabled futex => enabled mysqlnd => enabled async_redis => enabled coroutine_pgsql => enabledDirective => 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
uname -a
&php -v
&gcc -v
) ?OS: Linux 5.15.49-linuxkit-pr #1 SMP Thu May 25 07:17:40 UTC 2023 x86_64 GCC_VERSION: 13.2.1 20231014 OPENSSL_VERSION: OpenSSL 3.1.4 24 Oct 2023 PHP_VERSION : 8.3.4