adsr / phpspy

low-overhead sampling profiler for PHP 7+

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong bin path with chroot inside overlayfs

adsr opened this issue · comments

commented

From overlayfs.txt:

Symlinks in /proc/PID/ and /proc/PID/fd which point to a non-directory
object in overlayfs will not contain valid absolute paths, only
relative paths leading up to the filesystem's root. This will be
fixed in the future.

For now, as @sj-i suggested, fallback on reading /proc/<pid>/exe. This will not work for mod_php or other embedded SAPIs.

commented

@akademic feel free to reopen if f14b2d6 does not work for your case. As @sj-i noted it will not work with mod_php, but should work for cli and php-fpm. I added a note to the readme about that bug.