Xdebug Profiler Aggregate 总是崩溃(xdebug.profiler_aggregate=1 导致 xdebug.so xdebug_profiler_output_aggr_data() 中出现核心转储)

Xdebug Profiler Aggregate 总是崩溃(xdebug.profiler_aggregate=1 导致 xdebug.so xdebug_profiler_output_aggr_data() 中出现核心转储)

每当我访问本地主机时,我都会收到 404 错误,直到我标记 xdebug.profiler_aggregate=0 原因是 xdebug.so coredumps (SEGFAULT)

[Xdebug]
zend_extension=/usr/lib/php/20160303/xdebug.so
xdebug.remote_enable=1
xdebug.remote_connect_back = 0
xdebug.remote_handler = "dbgp"
xdebug.remote_port = 9000
xdebug.idekey = "PHPSTORM"
xdebug.profiler_enable=1
xdebug.profiler_output_dir=/tmp/
xdebug.profiler_aggregate=1

$ dmesg

[  584.455746] php-fpm7.1[4645]: segfault at 30 ip 00007f5d3969f6b3 sp 00007ffdc8b87a20 error 4 in xdebug.so[7f5d3967e000+39000]

$ sudo cat /var/log/php7.1-fpm.log

[31-Aug-2017 14:59:01] WARNING: [pool www] child 4645 exited on signal 11 (SIGSEGV - core dumped) after 0.138218 seconds from start
[31-Aug-2017 14:59:01] NOTICE: [pool www] child 4647 started
[31-Aug-2017 14:59:07] NOTICE: Terminating ...
[31-Aug-2017 14:59:07] NOTICE: exiting, bye-bye!
in xdebug_profiler_output_aggr_data() with 0 entries

当我将 conf 文件中的最后一行更改为时, xdebug.profiler_aggregate=0 它又可以正常工作了。

我尝试重新安装 php、xdebug,并更新和重新启动,并且尝试删除除该设置之外的所有其他 xdebug 设置

答案1

我不知道您是如何安装 Xdebug 的,但我建议您使用 pecl 安装最新版本的 Xdebug,而不是使用 apt(如果您有 apt)。

sudo apt-get remove php-xdebug
sudo apt install php-pear php-dev
sudo pecl install xdebug

相关内容