0

I have a big problem. I installed php5 extension XHprof on server (Ubuntu 14.04), and when I try to use it I have the 502 Bad Gateway. Logs of nginx are empty, and in php-fpm log I have this:

[17-Jul-2017 19:20:25] WARNING: [pool www] child 8944 exited on signal 11 (SIGSEGV) after 16.428915 seconds from start

In my script I wrote this:

if( extension_loaded( 'xhprof' ) ){
    if( function_exists( 'xhprof_enable' ) ){
        xhprof_enable( XHPROF_FLAGS_CPU + XHPROF_FLAGS_MEMORY );
        echo 'OK!';
    }
}

If I comment line with xhprof_enable(), it prints OK! and works correctly. So extension xhprof loaded and function xhprof_enable() exists (available). And phpinfo() show that xhprof exists. What can I do? It is very important.

Sorry for my English :) I know it a bit.

4

1 回答 1

1

这是一个已知问题,请参阅xhprof issue #45PHP bug #67997

没有官方修复,该项目似乎处于非活动状态,它没有发布超过 4 年。

但是,您可以通过调用来解决xhprof_enable()XHPROF_FLAGS_NO_BUILTINS

xhprof_enable(XHPROF_FLAGS_NO_BUILTINS);
于 2018-04-05T06:57:25.707 回答