You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unfriendly traceback when sampling from an unknown PID #142654
OSError: Cannot open process memory map file '/proc/-1/maps' for PID -1 section search: No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/keming/GitHub/cpython/Lib/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
"__main__", mod_spec)
File "/home/keming/GitHub/cpython/Lib/runpy.py", line 87, in _run_code
exec(code, run_globals)
~~~~^^^^^^^^^^^^^^^^^^^
File "/home/keming/GitHub/cpython/Lib/profiling/sampling/__main__.py", line 64, in <module>
main()
~~~~^^
File "/home/keming/GitHub/cpython/Lib/profiling/sampling/cli.py", line 592, in main
handler(args)
~~~~~~~^^^^^^
File "/home/keming/GitHub/cpython/Lib/profiling/sampling/cli.py", line 620, in _handle_attach
collector = sample(
args.pid,
...<8 lines>...
opcodes=args.opcodes,
)
File "/home/keming/GitHub/cpython/Lib/profiling/sampling/sample.py", line 327, in sample
profiler = SampleProfiler(
pid,
...<7 lines>...
collect_stats=realtime_stats,
)
File "/home/keming/GitHub/cpython/Lib/profiling/sampling/sample.py", line 39, in __init__
self.unwinder = _remote_debugging.RemoteUnwinder(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
self.pid, all_threads=self.all_threads, mode=mode, native=native, gc=gc,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
opcodes=opcodes, skip_non_matching_threads=skip_non_matching_threads,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cache_frames=True, stats=collect_stats
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
RuntimeError: Failed to find the PyRuntime section in process -1 on Linux platform
Activity
pythongh-142654: show the clear error message when sampling on an unk…
Merge branch 'main' into pythongh-142654
gh-142654: show the clear error message when sampling on an unknown P…
pythongh-142654: Add blocking mode for accurate stack traces in Tachyon