Open shaolo1 opened 1 year ago
Can you run with RUST_BACKTACE=1
, i.e sudo RUST_BACKTACE=1 /home/foov/venv311/bin/py-spy top --nonblocking --pid 417984
and post the full output?
Not sure if it is specific to Ubuntu or not, but had to use command: export RUST_BACKTRACE=1 sudo -E bash -c '/home/foov/venv_311/bin/py-spy top --nonblocking --pid 417984'
thread 'RUST_BACKTRACE=full
for a verbose backtrace.
thread 'main' panicked at 'called Result::unwrap()
on an Err
value: Any { .. }', src/sampler.rs:218:22
stack backtrace:
0: rust_begin_unwind
at /rustc/e092d0b6b43f2de967af0887873151bb1c0b18d3/library/std/src/panicking.rs:584:5
1: core::panicking::panic_fmt
at /rustc/e092d0b6b43f2de967af0887873151bb1c0b18d3/library/core/src/panicking.rs:142:14
2: core::result::unwrap_failed
at /rustc/e092d0b6b43f2de967af0887873151bb1c0b18d3/library/core/src/result.rs:1785:5
3: RUST_BACKTRACE=full
for a verbose backtrace.
...with RUST_BACKTRACE=full
thread 'Result::unwrap()
on an Err
value: Any { .. }', src/sampler.rs:218:22
stack backtrace:
0: 0x7fea05c01dfd - std::backtrace_rs::backtrace::libunwind::trace::hc5376e1f9e4c14fa
at /rustc/e092d0b6b43f2de967af0887873151bb1c0b18d3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
1: 0x7fea05c01dfd - std::backtrace_rs::backtrace::trace_unsynchronized::hd15c3fc9f4947abd
at /rustc/e092d0b6b43f2de967af0887873151bb1c0b18d3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
2: 0x7fea05c01dfd - std::sys_common::backtrace::_print_fmt::ha8075890ce48b75c
at /rustc/e092d0b6b43f2de967af0887873151bb1c0b18d3/library/std/src/sys_common/backtrace.rs:66:5
3: 0x7fea05c01dfd -
It seems to be a problem in the implementation of get_line_number
for Python 3.11.
@shaolo1 Can you please provide:
python --version
)python --version Python 3.11.1 py-spy --version py-spy 0.3.14 ...sorry the program I was profiling is quite large and proprietary.
thread '' panicked at 'index out of bounds: the len is 77 but the index is 77', src/python_interpreters.rs:296:20
note: run with
RUST_BACKTRACE=1
environment variable to display a backtrace thread 'main' panicked at 'calledResult::unwrap()
on anErr
value: Any { .. }', src/sampler.rs:218:22invoked via: sudo /home/foov/venv311/bin/py-spy top --nonblocking --pid 417984