我刚刚使用 nginx 更新到 Macos Mojave 和 PHP7.3。所有安装都是通过 brew 进行的(也降级到 PHP7.2),但是当仅访问我的 wordpress 网站的 /wp-admin 路径时,php-fpm 意外重启。所有前端 wordpress 页面都可以正常工作,并且 info.php 也可以正常工作。
在 php.ini 上,我们使用 pecl 添加了 xdebug。所有其他设置都是默认设置:
zend_extension=“xdebug.so”
[XDebug]
xdebug.remote_enable=1
xdebug.remote_autostart=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
extension=“redis.so”
php-fpm 在访问 /wp-admin 时使用 log_level=debug 记录显示“exited on signal 11”并且 php-fpm 服务重新启动:
[25-Jun-2019 22:26:01.104274] DEBUG: pid 47, fpm_pctl_perform_idle_server_maintenance(), line 378: [pool www] currently 1 active children, 1 spare children, 2 running children. Spawning rate 1
[25-Jun-2019 22:26:01.839904] DEBUG: pid 47, fpm_got_signal(), line 75: received SIGCHLD
[25-Jun-2019 22:26:01.839968] WARNING: pid 47, fpm_children_bury(), line 256: [pool www] child 980 exited on signal 11 (SIGSEGV) after 21.933941 seconds from start
[25-Jun-2019 22:26:01.841578] NOTICE: pid 47, fpm_children_make(), line 425: [pool www] child 1037 started
[25-Jun-2019 22:26:01.845627] DEBUG: pid 47, fpm_event_loop(), line 418: event module triggered 1 events [25-Jun-2019 22:26:02.176554] DEBUG: pid 47, fpm_pctl_perform_idle_server_maintenance(), line 378: [pool www] currently 0 active children, 2 spare children, 2 running children. Spawning rate 1