phacility / xhprof

XHProf is a function-level hierarchical profiler for PHP and has a simple HTML based user interface.
http://pecl.php.net/package/xhprof
Apache License 2.0
2.6k stars 925 forks source link

Segmentation fault when xhprof extension is enabled #102

Open danepowell opened 6 years ago

danepowell commented 6 years ago

Recently, I started getting segmentation faults when using certain PHP libraries (such as caxy/php-htmldiff). I noticed that the faults only occur when the xhprof php extension is enabled. If I disable it, the segfaults disappear. So I surmise that either xhprof is causing the segfaults, or the problem is perhaps with memory allocation and xhprof just happened to be the extension to trigger the problem. Either way, I'd appreciate some help.

Here's the backtrace from the core dump: https://pastebin.com/4iVHND1G

Here's the full background on the issue (I originally thought it was a problem with the caxy/php-htmldiff library): https://github.com/caxy/php-htmldiff/issues/74