Unable to generate flame graph
arabcoders opened this issue · comments
Hi, testing out phpspy on PHP7.4 generate the following error and flame.svg is empty
root@server /usr/local/src/phpspy # ./phpspy -l 1000 -P php-fpm | ./stackcollapse-phpspy.pl | ./vendor/flamegraph.pl > flame.svg
popen_read_line: No stdout; cmd=objdump -Tt /proc/7314/root//usr/sbin/php-fpm7.3 | awk '/ basic_functions_module$/{print $1; exit}'
popen_read_line: No stdout; cmd=objdump -Tt /proc/11760/root//usr/sbin/php-fpm7.3 | awk '/ basic_functions_module$/{print $1; exit}'
get_symbol_offset: Failed
get_symbol_offset: Failed
popen_read_line: No stdout; cmd=objdump -Tt /proc/20179/root//usr/sbin/php-fpm7.4 | awk '/ basic_functions_module$/{print $1; exit}'
get_symbol_offset: Failed
popen_read_line: No stdout; cmd=objdump -Tt /proc/17015/root//usr/sbin/php-fpm7.4 | awk '/ basic_functions_module$/{print $1; exit}'
get_symbol_offset: Failed
popen_read_line: No stdout; cmd=objdump -Tt /proc/7950/root//usr/sbin/php-fpm7.3 | awk '/ basic_functions_module$/{print $1; exit}'
get_symbol_offset: Failed
popen_read_line: No stdout; cmd=objdump -Tt /proc/13579/root//usr/sbin/php-fpm7.4 | awk '/ basic_functions_module$/{print $1; exit}'
get_symbol_offset: Failed
popen_read_line: No stdout; cmd=objdump -Tt /proc/17351/root//usr/sbin/php-fpm7.4 | awk '/ basic_functions_module$/{print $1; exit}'
get_symbol_offset: Failed
popen_read_line: No stdout; cmd=objdump -Tt /proc/13405/root//usr/sbin/php-fpm7.3 | awk '/ basic_functions_module$/{print $1; exit}'
get_symbol_offset: Failed
popen_read_line: No stdout; cmd=objdump -Tt /proc/22403/root//usr/sbin/php-fpm7.4 | awk '/ basic_functions_module$/{print $1; exit}'
get_symbol_offset: Failed
popen_read_line: No stdout; cmd=objdump -Tt /proc/14189/root//usr/sbin/php-fpm7.3 | awk '/ basic_functions_module$/{print $1; exit}'
get_symbol_offset: Failed
popen_read_line: No stdout; cmd=objdump -Tt /proc/17350/root//usr/sbin/php-fpm7.4 | awk '/ basic_functions_module$/{print $1; exit}'
get_symbol_offset: Failed
popen_read_line: No stdout; cmd=objdump -Tt /proc/22016/root//usr/sbin/php-fpm7.4 | awk '/ basic_functions_module$/{print $1; exit}'
get_symbol_offset: Failed
popen_read_line: No stdout; cmd=objdump -Tt /proc/14443/root//usr/sbin/php-fpm7.3 | awk '/ basic_functions_module$/{print $1; exit}'
get_symbol_offset: Failed
popen_read_line: No stdout; cmd=objdump -Tt /proc/13545/root//usr/sbin/php-fpm7.3 | awk '/ basic_functions_module$/{print $1; exit}'
get_symbol_offset: Failed
popen_read_line: No stdout; cmd=objdump -Tt /proc/14654/root//usr/sbin/php-fpm7.3 | awk '/ basic_functions_module$/{print $1; exit}'
get_symbol_offset: Failed
popen_read_line: No stdout; cmd=objdump -Tt /proc/31548/root//usr/sbin/php-fpm7.3 | awk '/ basic_functions_module$/{print $1; exit}'
get_symbol_offset: Failed
copy_proc_mem: Not copying zfunc; raddr is NULL
copy_proc_mem: Failed to copy zfunc; err=Bad address raddr=0x100100000 size=148
copy_proc_mem: Not copying zfunc; raddr is NULL
copy_proc_mem: Failed to copy class_name; err=Bad address raddr=0x486478ec83485355 size=25
copy_proc_mem: Failed to copy zfunc; err=Bad address raddr=0x7f0a00000308 size=148
copy_proc_mem: Failed to copy zfunc; err=Bad address raddr=0x7f0a00000007 size=148
^Cmain_pgrep finished gracefully
The errors about basic_functions_module
are normal for non-debug binaries. (See #98.) Some amount of copy_proc_mem
errors are also normal as the process is a moving target. If you let it run ignoring stderr do you get any traces on stdout?
The errors about
basic_functions_module
are normal for non-debug binaries. (See #98.) Some amount ofcopy_proc_mem
errors are also normal as the process is a moving target. If you let it run ignoring stderr do you get any traces on stdout?
Hi, No the errors keep happening, and no traces in either flame.svg or stdout, however running without
| ./stackcollapse-phpspy.pl | ./vendor/flamegraph.pl > flame.svg
seems to generate the traces.
Thanks for reporting this!