benfred / py-spy

Sampling profiler for Python programs
MIT License
12.14k stars 400 forks source link

Different errors when profiling with native extensions #608

Open gerion0 opened 10 months ago

gerion0 commented 10 months ago

I want to profile a program that uses a mix of Python code and (C++)-extensions internally (based on Cython and Boost Python) and get different errors of py-spy (dependent on the concrete run).

For all errors below, I just run this commandline:

RUST_LOG=debug PYTHONPATH=/path/to/custom/python/extensions /usr/bin/py-spy record --native -r 200 -o profile.flowsensitive.svg -- /usr/bin/python3.11 ../test/instances.py ../test/instances.json appl/instances.ll flowsensitive

Error 1

...
[2023-09-04T14:54:31.761947241Z WARN  py_spy] Failed to get stack trace from 77661: Failed to merge native and python frames (Have 2 native and 15 python)
...
(this error repeats multiple times)
...
[2023-09-04T14:54:31.893572515Z DEBUG remoteprocess::linux] attached to thread 77661
[2023-09-04T14:54:31.893588788Z DEBUG remoteprocess::linux] attached to thread 77666
[2023-09-04T14:54:31.893603036Z DEBUG remoteprocess::linux] attached to thread 77667
[2023-09-04T14:54:31.893622174Z DEBUG remoteprocess::linux] attached to thread 77668
[2023-09-04T14:54:31.893638796Z DEBUG remoteprocess::linux] attached to thread 77669
[2023-09-04T14:54:31.893658353Z DEBUG remoteprocess::linux] attached to thread 77670
[2023-09-04T14:54:31.893675115Z DEBUG remoteprocess::linux] attached to thread 77671
[2023-09-04T14:54:31.893694532Z DEBUG remoteprocess::linux] attached to thread 77672
[2023-09-04T14:54:31.893717091Z DEBUG remoteprocess::linux] attached to thread 77673
[2023-09-04T14:54:31.893732596Z DEBUG remoteprocess::linux] attached to thread 77674
[2023-09-04T14:54:31.893752083Z DEBUG remoteprocess::linux] attached to thread 77675
[2023-09-04T14:54:31.893769125Z DEBUG remoteprocess::linux] attached to thread 77676
[2023-09-04T14:54:31.893784979Z DEBUG remoteprocess::linux] attached to thread 77677
[2023-09-04T14:54:31.893802999Z DEBUG remoteprocess::linux] attached to thread 77678
[2023-09-04T14:54:31.893822066Z DEBUG remoteprocess::linux] attached to thread 77679
[2023-09-04T14:54:31.893842181Z DEBUG remoteprocess::linux] attached to thread 77680
[2023-09-04T14:54:31.893878360Z DEBUG remoteprocess::linux] detached from thread 77661
[2023-09-04T14:54:31.893881643Z DEBUG remoteprocess::linux] detached from thread 77666
[2023-09-04T14:54:31.893884995Z DEBUG remoteprocess::linux] detached from thread 77667
[2023-09-04T14:54:31.893888348Z DEBUG remoteprocess::linux] detached from thread 77668
[2023-09-04T14:54:31.893891630Z DEBUG remoteprocess::linux] detached from thread 77669
[2023-09-04T14:54:31.893894983Z DEBUG remoteprocess::linux] detached from thread 77670
[2023-09-04T14:54:31.893898894Z DEBUG remoteprocess::linux] detached from thread 77671
[2023-09-04T14:54:31.893903224Z DEBUG remoteprocess::linux] detached from thread 77672
[2023-09-04T14:54:31.893906996Z DEBUG remoteprocess::linux] detached from thread 77673
[2023-09-04T14:54:31.893912653Z DEBUG remoteprocess::linux] detached from thread 77674
[2023-09-04T14:54:31.893915936Z DEBUG remoteprocess::linux] detached from thread 77675
[2023-09-04T14:54:31.893919288Z DEBUG remoteprocess::linux] detached from thread 77676
[2023-09-04T14:54:31.893924108Z DEBUG remoteprocess::linux] detached from thread 77677
[2023-09-04T14:54:31.893927949Z DEBUG remoteprocess::linux] detached from thread 77678
[2023-09-04T14:54:31.893932768Z DEBUG remoteprocess::linux] detached from thread 77679
[2023-09-04T14:54:31.893936121Z DEBUG remoteprocess::linux] detached from thread 77680
[2023-09-04T14:54:31.902990090Z DEBUG remoteprocess::linux] attached to thread 77661
[2023-09-04T14:54:31.903021589Z WARN  remoteprocess::linux] Failed to detach from thread 77661 : ESRCH: No such process
[2023-09-04T14:54:31.903029691Z DEBUG remoteprocess::linux] detached from thread 77661
[2023-09-04T14:54:31.903042472Z INFO  py_spy::sampler] stopped sampling pid 77661 because the process exited

py-spy> Stopped sampling because process exited
py-spy> Wrote flamegraph data to 'profile.flowsensitive.svg'. Samples: 31 Errors: 444
Error: No child processes (os error 10)

Here, the py-spy produces a flamegraph file, but it contains only a small fraction of all samples.

Error 2

...
[2023-09-04T14:56:57.038633508Z DEBUG remoteprocess::linux::symbolication] loading file /usr/lib/python3.11/lib-dynload/_json.cpython-311-x86_64-linux-gnu.so 0x7F64FD75B000 0x9FF0
[2023-09-04T14:56:57.038664449Z INFO  remoteprocess::linux::symbolication] loading debug info from /usr/lib/python3.11/lib-dynload/_heapq.cpython-311-x86_64-linux-gnu.so
[2023-09-04T14:56:57.038681700Z DEBUG remoteprocess::linux::symbolication] loading file /usr/lib/python3.11/lib-dynload/_heapq.cpython-311-x86_64-linux-gnu.so 0x7F64FD765000 0x5940
[2023-09-04T14:56:57.038704190Z INFO  remoteprocess::linux::symbolication] loading debug info from /lib64/ld-linux-x86-64.so.2
[2023-09-04T14:56:57.038722628Z DEBUG remoteprocess::linux::symbolication] loading file /lib64/ld-linux-x86-64.so.2 0x7F64FD798000 0x33688
[2023-09-04T14:56:57.038751194Z INFO  remoteprocess::linux::symbolication] loading debug info from [vdso]
[2023-09-04T14:56:57.038774522Z DEBUG remoteprocess::linux::symbolication] loading file [vdso] 0x7FFFBE1F4000 0x2000
[2023-09-04T14:56:57.039276140Z DEBUG remoteprocess::linux] attached to thread 84599
[2023-09-04T14:56:57.039295975Z DEBUG remoteprocess::linux] attached to thread 84603
[2023-09-04T14:56:57.039314623Z DEBUG remoteprocess::linux] attached to thread 84604
[2023-09-04T14:56:57.039331735Z DEBUG remoteprocess::linux] attached to thread 84605
[2023-09-04T14:56:57.039346612Z DEBUG remoteprocess::linux] attached to thread 84606
[2023-09-04T14:56:57.039362746Z DEBUG remoteprocess::linux] attached to thread 84607
[2023-09-04T14:56:57.039378600Z DEBUG remoteprocess::linux] attached to thread 84608
[2023-09-04T14:56:57.039398995Z DEBUG remoteprocess::linux] attached to thread 84609
[2023-09-04T14:56:57.039415687Z DEBUG remoteprocess::linux] attached to thread 84610
[2023-09-04T14:56:57.039430913Z DEBUG remoteprocess::linux] attached to thread 84611
[2023-09-04T14:56:57.039457174Z DEBUG remoteprocess::linux] attached to thread 84612
[2023-09-04T14:56:57.039482458Z DEBUG remoteprocess::linux] attached to thread 84613
[2023-09-04T14:56:57.039495798Z DEBUG remoteprocess::linux] attached to thread 84614
[2023-09-04T14:56:57.039507811Z DEBUG remoteprocess::linux] attached to thread 84615
[2023-09-04T14:56:57.039521012Z DEBUG remoteprocess::linux] attached to thread 84616
[2023-09-04T14:56:57.039534072Z DEBUG remoteprocess::linux] attached to thread 84617
[2023-09-04T14:56:57.052086729Z INFO  remoteprocess::linux::symbolication] loading symbols from /usr/lib/gcc/x86_64-pc-linux-gnu/13/libgomp.so.1.0.0
[2023-09-04T14:56:57.052095320Z INFO  remoteprocess::linux::symbolication] opening /usr/lib/gcc/x86_64-pc-linux-gnu/13/libgomp.so.1.0.0 for symbols
[2023-09-04T14:56:57.052272373Z INFO  remoteprocess::linux::symbolication] loading symbols from /usr/lib/python3.11/site-packages/graph_tool/libgraph_tool_core.so
[2023-09-04T14:56:57.052277612Z INFO  remoteprocess::linux::symbolication] opening /usr/lib/python3.11/site-packages/graph_tool/libgraph_tool_core.so for symbols
[2023-09-04T14:56:57.058625704Z INFO  remoteprocess::linux::symbolication] loading symbols from /usr/lib64/libboost_python311.so.1.82.0
[2023-09-04T14:56:57.058642467Z INFO  remoteprocess::linux::symbolication] opening /usr/lib64/libboost_python311.so.1.82.0 for symbols
[2023-09-04T14:56:57.058798428Z INFO  remoteprocess::linux::symbolication] loading symbols from /usr/lib64/libpython3.11.so.1.0
[2023-09-04T14:56:57.058803736Z INFO  remoteprocess::linux::symbolication] opening /usr/lib64/libpython3.11.so.1.0 for symbols
[2023-09-04T14:56:57.059135703Z INFO  remoteprocess::linux::symbolication] loading symbols from /lib64/libc.so.6
[2023-09-04T14:56:57.059140452Z INFO  remoteprocess::linux::symbolication] opening /lib64/libc.so.6 for symbols
[2023-09-04T14:56:57.059574880Z INFO  remoteprocess::linux::symbolication] loading symbols from /usr/bin/python3.11
[2023-09-04T14:56:57.059579560Z INFO  remoteprocess::linux::symbolication] opening /usr/bin/python3.11 for symbols
[2023-09-04T14:56:57.059636692Z DEBUG remoteprocess::linux] detached from thread 84599
[2023-09-04T14:56:57.059646959Z DEBUG remoteprocess::linux] detached from thread 84603
[2023-09-04T14:56:57.059652616Z DEBUG remoteprocess::linux] detached from thread 84604
[2023-09-04T14:56:57.059658343Z DEBUG remoteprocess::linux] detached from thread 84605
[2023-09-04T14:56:57.059663163Z DEBUG remoteprocess::linux] detached from thread 84606
[2023-09-04T14:56:57.059668960Z DEBUG remoteprocess::linux] detached from thread 84607
[2023-09-04T14:56:57.059675176Z DEBUG remoteprocess::linux] detached from thread 84608
[2023-09-04T14:56:57.059681252Z DEBUG remoteprocess::linux] detached from thread 84609
[2023-09-04T14:56:57.059688376Z DEBUG remoteprocess::linux] detached from thread 84610
[2023-09-04T14:56:57.059695151Z DEBUG remoteprocess::linux] detached from thread 84611
[2023-09-04T14:56:57.059705139Z DEBUG remoteprocess::linux] detached from thread 84612
[2023-09-04T14:56:57.059712752Z DEBUG remoteprocess::linux] detached from thread 84613
[2023-09-04T14:56:57.059722739Z DEBUG remoteprocess::linux] detached from thread 84614
[2023-09-04T14:56:57.059732378Z DEBUG remoteprocess::linux] detached from thread 84615
[2023-09-04T14:56:57.059741387Z DEBUG remoteprocess::linux] detached from thread 84616
[2023-09-04T14:56:57.059750397Z DEBUG remoteprocess::linux] detached from thread 84617
Error: Failed to merge native and python frames (Have 2 native and 8 python)

Here, the py-spy process actually fails with the merging error instead of producing an (incomplete) flamegraph.

Error 3

[2023-09-04T15:04:52.885497556Z DEBUG remoteprocess::linux] attached to thread 99083
[2023-09-04T15:04:52.885547495Z DEBUG remoteprocess::linux] attached to thread 99088
[2023-09-04T15:04:52.885599109Z DEBUG remoteprocess::linux] attached to thread 99089
[2023-09-04T15:04:52.885626837Z DEBUG remoteprocess::linux] attached to thread 99090
[2023-09-04T15:04:52.885673772Z DEBUG remoteprocess::linux] attached to thread 99091
[2023-09-04T15:04:52.885724409Z DEBUG remoteprocess::linux] attached to thread 99092
[2023-09-04T15:04:52.885751997Z DEBUG remoteprocess::linux] attached to thread 99093
[2023-09-04T15:04:52.885798304Z DEBUG remoteprocess::linux] attached to thread 99094
[2023-09-04T15:04:52.885851315Z DEBUG remoteprocess::linux] attached to thread 99095
[2023-09-04T15:04:52.885897831Z DEBUG remoteprocess::linux] attached to thread 99096
[2023-09-04T15:04:52.885947909Z DEBUG remoteprocess::linux] attached to thread 99097
[2023-09-04T15:04:52.885969491Z DEBUG remoteprocess::linux] attached to thread 99098
[2023-09-04T15:04:52.886019639Z DEBUG remoteprocess::linux] attached to thread 99099
[2023-09-04T15:04:52.886046878Z DEBUG remoteprocess::linux] attached to thread 99100
[2023-09-04T15:04:52.886072162Z DEBUG remoteprocess::linux] attached to thread 99101
[2023-09-04T15:04:52.886094442Z DEBUG remoteprocess::linux] attached to thread 99102
[2023-09-04T15:04:52.887520094Z DEBUG remoteprocess::linux] detached from thread 99083
[2023-09-04T15:04:52.887524774Z DEBUG remoteprocess::linux] detached from thread 99088
[2023-09-04T15:04:52.887528475Z DEBUG remoteprocess::linux] detached from thread 99089
[2023-09-04T15:04:52.887532247Z DEBUG remoteprocess::linux] detached from thread 99090
[2023-09-04T15:04:52.887536018Z DEBUG remoteprocess::linux] detached from thread 99091
[2023-09-04T15:04:52.887538882Z DEBUG remoteprocess::linux] detached from thread 99092
[2023-09-04T15:04:52.887542793Z DEBUG remoteprocess::linux] detached from thread 99093
[2023-09-04T15:04:52.887545657Z DEBUG remoteprocess::linux] detached from thread 99094
[2023-09-04T15:04:52.887549428Z DEBUG remoteprocess::linux] detached from thread 99095
[2023-09-04T15:04:52.887552851Z DEBUG remoteprocess::linux] detached from thread 99096
[2023-09-04T15:04:52.887556692Z DEBUG remoteprocess::linux] detached from thread 99097
[2023-09-04T15:04:52.887560394Z DEBUG remoteprocess::linux] detached from thread 99098
[2023-09-04T15:04:52.887564235Z DEBUG remoteprocess::linux] detached from thread 99099
[2023-09-04T15:04:52.887571359Z DEBUG remoteprocess::linux] detached from thread 99100
[2023-09-04T15:04:52.887576668Z DEBUG remoteprocess::linux] detached from thread 99101
[2023-09-04T15:04:52.887581487Z DEBUG remoteprocess::linux] detached from thread 99102
[2023-09-04T15:04:52.907437111Z INFO  py_spy::sampler] stopped sampling pid 99083 because the process exited

py-spy> Stopped sampling because process exited
py-spy> Wrote flamegraph data to 'profile.flowsensitive.svg'. Samples: 21 Errors: 560

Similar to Error 1 but without the No such process error.

Error 4

[2023-09-04T15:06:06.683332101Z DEBUG py_spy::python_spy] map: 00007f66f6db7000-00007f66f6db9000 r-- /lib64/libbz2.so.1.0.8
[2023-09-04T15:06:06.683335454Z DEBUG py_spy::python_spy] map: 00007f66f6db9000-00007f66f6dc6000 r-x /lib64/libbz2.so.1.0.8
[2023-09-04T15:06:06.683338248Z DEBUG py_spy::python_spy] map: 00007f66f6dc6000-00007f66f6dc8000 r-- /lib64/libbz2.so.1.0.8
[2023-09-04T15:06:06.683341600Z DEBUG py_spy::python_spy] map: 00007f66f6dc8000-00007f66f6dc9000 r-- /lib64/libbz2.so.1.0.8
[2023-09-04T15:06:06.683344464Z DEBUG py_spy::python_spy] map: 00007f66f6dc9000-00007f66f6dca000 rw- /lib64/libbz2.so.1.0.8
[2023-09-04T15:06:06.683347886Z DEBUG py_spy::python_spy] map: 00007f66f6dca000-00007f66f6dcc000 r-- /usr/lib/python3.11/lib-dynload/_bz2.cpython-311-x86_64-linux-gnu.so
[2023-09-04T15:06:06.683350750Z DEBUG py_spy::python_spy] map: 00007f66f6dcc000-00007f66f6dce000 r-x /usr/lib/python3.11/lib-dynload/_bz2.cpython-311-x86_64-linux-gnu.so
[2023-09-04T15:06:06.683354102Z DEBUG py_spy::python_spy] map: 00007f66f6dce000-00007f66f6dcf000 r-- /usr/lib/python3.11/lib-dynload/_bz2.cpython-311-x86_64-linux-gnu.so
[2023-09-04T15:06:06.683357385Z DEBUG py_spy::python_spy] map: 00007f66f6dcf000-00007f66f6dd0000 r-- /usr/lib/python3.11/lib-dynload/_bz2.cpython-311-x86_64-linux-gnu.so
[2023-09-04T15:06:06.683361226Z DEBUG py_spy::python_spy] map: 00007f66f6dd0000-00007f66f6dd1000 rw- /usr/lib/python3.11/lib-dynload/_bz2.cpython-311-x86_64-linux-gnu.so
[2023-09-04T15:06:06.683364090Z DEBUG py_spy::python_spy] map: 00007f66f6dd1000-00007f66f6dd3000 r-- /usr/lib/python3.11/lib-dynload/zlib.cpython-311-x86_64-linux-gnu.so
[2023-09-04T15:06:06.683367373Z DEBUG py_spy::python_spy] map: 00007f66f6dd3000-00007f66f6dd8000 r-x /usr/lib/python3.11/lib-dynload/zlib.cpython-311-x86_64-linux-gnu.so
[2023-09-04T15:06:06.683370236Z DEBUG py_spy::python_spy] map: 00007f66f6dd8000-00007f66f6ddb000 r-- /usr/lib/python3.11/lib-dynload/zlib.cpython-311-x86_64-linux-gnu.so
[2023-09-04T15:06:06.683373519Z DEBUG py_spy::python_spy] map: 00007f66f6ddb000-00007f66f6ddc000 r-- /usr/lib/python3.11/lib-dynload/zlib.cpython-311-x86_64-linux-gnu.so
[2023-09-04T15:06:06.683376452Z DEBUG py_spy::python_spy] map: 00007f66f6ddc000-00007f66f6ddd000 rw- /usr/lib/python3.11/lib-dynload/zlib.cpython-311-x86_64-linux-gnu.so
[2023-09-04T15:06:06.683379805Z DEBUG py_spy::python_spy] map: 00007f66f6ddd000-00007f66f6e23000 rw- 
[2023-09-04T15:06:06.683382738Z DEBUG py_spy::python_spy] map: 00007f66f6e23000-00007f66f6e25000 r-- /usr/lib/python3.11/lib-dynload/_json.cpython-311-x86_64-linux-gnu.so
[2023-09-04T15:06:06.683385602Z DEBUG py_spy::python_spy] map: 00007f66f6e25000-00007f66f6e2a000 r-x /usr/lib/python3.11/lib-dynload/_json.cpython-311-x86_64-linux-gnu.so
[2023-09-04T15:06:06.683388885Z DEBUG py_spy::python_spy] map: 00007f66f6e2a000-00007f66f6e2c000 r-- /usr/lib/python3.11/lib-dynload/_json.cpython-311-x86_64-linux-gnu.so
[2023-09-04T15:06:06.683392656Z DEBUG py_spy::python_spy] map: 00007f66f6e2c000-00007f66f6e2d000 r-- /usr/lib/python3.11/lib-dynload/_json.cpython-311-x86_64-linux-gnu.so
[2023-09-04T15:06:06.683395520Z DEBUG py_spy::python_spy] map: 00007f66f6e2d000-00007f66f6e2e000 rw- /usr/lib/python3.11/lib-dynload/_json.cpython-311-x86_64-linux-gnu.so
[2023-09-04T15:06:06.683399361Z DEBUG py_spy::python_spy] map: 00007f66f6e2e000-00007f66f6e2f000 r-- /usr/lib/python3.11/lib-dynload/_heapq.cpython-311-x86_64-linux-gnu.so
[2023-09-04T15:06:06.683402155Z DEBUG py_spy::python_spy] map: 00007f66f6e2f000-00007f66f6e30000 r-x /usr/lib/python3.11/lib-dynload/_heapq.cpython-311-x86_64-linux-gnu.so
[2023-09-04T15:06:06.683405996Z DEBUG py_spy::python_spy] map: 00007f66f6e30000-00007f66f6e33000 r-- /usr/lib/python3.11/lib-dynload/_heapq.cpython-311-x86_64-linux-gnu.so
[2023-09-04T15:06:06.683408860Z DEBUG py_spy::python_spy] map: 00007f66f6e33000-00007f66f6e34000 r-- /usr/lib/python3.11/lib-dynload/_heapq.cpython-311-x86_64-linux-gnu.so
[2023-09-04T15:06:06.683412282Z DEBUG py_spy::python_spy] map: 00007f66f6e34000-00007f66f6e35000 rw- /usr/lib/python3.11/lib-dynload/_heapq.cpython-311-x86_64-linux-gnu.so
[2023-09-04T15:06:06.683415146Z DEBUG py_spy::python_spy] map: 00007f66f6e35000-00007f66f6e5a000 rw- 
[2023-09-04T15:06:06.683418009Z DEBUG py_spy::python_spy] map: 00007f66f6e5a000-00007f66f6e61000 r-- /usr/lib64/gconv/gconv-modules.cache
[2023-09-04T15:06:06.683421292Z DEBUG py_spy::python_spy] map: 00007f66f6e61000-00007f66f6e62000 r-- /lib64/ld-linux-x86-64.so.2
[2023-09-04T15:06:06.683424086Z DEBUG py_spy::python_spy] map: 00007f66f6e62000-00007f66f6e87000 r-x /lib64/ld-linux-x86-64.so.2
[2023-09-04T15:06:06.683427438Z DEBUG py_spy::python_spy] map: 00007f66f6e87000-00007f66f6e91000 r-- /lib64/ld-linux-x86-64.so.2
[2023-09-04T15:06:06.683431280Z DEBUG py_spy::python_spy] map: 00007f66f6e92000-00007f66f6e94000 r-- /lib64/ld-linux-x86-64.so.2
[2023-09-04T15:06:06.683434632Z DEBUG py_spy::python_spy] map: 00007f66f6e94000-00007f66f6e96000 rw- /lib64/ld-linux-x86-64.so.2
[2023-09-04T15:06:06.683437496Z DEBUG py_spy::python_spy] map: 00007ffc30195000-00007ffc301b8000 rw- [stack]
[2023-09-04T15:06:06.683440359Z DEBUG py_spy::python_spy] map: 00007ffc301e1000-00007ffc301e5000 r-- [vvar]
[2023-09-04T15:06:06.683443782Z DEBUG py_spy::python_spy] map: 00007ffc301e5000-00007ffc301e7000 r-x [vdso]
[2023-09-04T15:06:06.683446645Z DEBUG py_spy::python_spy] map: ffffffffff600000-ffffffffff601000 --x [vsyscall]
[2023-09-04T15:06:06.683541074Z INFO  py_spy::python_spy] Found libpython binary @ /usr/lib64/libpython3.11.so.1.0
[2023-09-04T15:06:06.684262491Z INFO  py_spy::python_spy] Getting version from python binary BSS
[2023-09-04T15:06:06.684280860Z INFO  py_spy::python_spy] Failed to get version from BSS section: failed to find version string
[2023-09-04T15:06:06.684285051Z INFO  py_spy::python_spy] Getting version from libpython BSS
[2023-09-04T15:06:06.684397639Z INFO  py_spy::version] Found matching version string '3.11.5 (main, Sep  4 2023, 15:45:11) [GCC 13.2.1 20230826]'
[2023-09-04T15:06:06.684401970Z INFO  py_spy::python_spy] python version 3.11.5 detected
[2023-09-04T15:06:06.684406300Z INFO  py_spy::python_spy] got symbol _PyRuntime (0x00007f66f6d09d20) from libpython binary
[2023-09-04T15:06:06.684480125Z WARN  py_spy::python_spy] Interpreter address from _PyRuntime symbol is invalid 00007f66f6d18358
[2023-09-04T15:06:06.684484944Z INFO  py_spy::python_spy] Failed to get interp_head from symbols, scanning BSS section from main binary
[2023-09-04T15:06:06.684490671Z INFO  py_spy::python_spy] Failed to get interpreter from binary BSS, scanning libpython BSS
Error: Failed to find a python interpreter in the .data section

No flamegraph is produced (this error occurs rarely).

Do you have an idea, why py-spy exits with so many different errors?

gerion0 commented 10 months ago

I forgot: