Xdebug Profiler聚合总是崩溃(xdebug.profiler_aggregate = 1导致xdebug.so中的coredump xdebug_profiler_output_aggr_data())

每当我去localhost我得到一个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设置,除了那个

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

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