py-spy
py-spy copied to clipboard
Doesn't find Python version in Docker with emulated x86/arm
Hey Ben, thanks for py-spy
!
I was trying to run py-spy(1)
yesterday, but got this error:
root@bf4a85d2fa1d:/app# py-spy record -- python -c 'import time; time.sleep(10)'
Error: Failed to find python version from target process
This is Debian/Linux on Docker (with the ptrace capability added) on Mac OS with the official Python image for 3.10.6
Here's .bss
:
root@fc11d32deca9:/app# objdump --section='.bss' -h --full-contents $(which python)
/usr/local/bin/python: file format elf64-x86-64
Sections:
Idx Name Size VMA LMA File off Algn
24 .bss 00000008 0000000000004030 0000000000004030 00003030 2**0
ALLOC
Here's the output of objdump -s
. It looks like it has a very minimal set of symbols..? Here's the Dockerfile