]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-149619: Fix `_remote_debugging` permissions error on Linux (#150012)
authorivonastojanovic <80911834+ivonastojanovic@users.noreply.github.com>
Sun, 24 May 2026 13:12:05 +0000 (14:12 +0100)
committerGitHub <noreply@github.com>
Sun, 24 May 2026 13:12:05 +0000 (14:12 +0100)
commit0563890872b3c63f94953e983fe396615b708540
treed008ab14a7fe5fbab4a47405e823b3a6c19464e1
parenta5cb7c34dd25aaa639a512f0dbbaaa6c9e03f1a1
gh-149619: Fix `_remote_debugging` permissions error on Linux (#150012)

When running profiling on Linux without sudo, attempts to read
process memory would fail with the misleading error 'Failed to find
the PyRuntime section in process <pid> on Linux platform'.

The actual issue is a permissions error because profiling was not
run with sudo. We were clearing the exception on Linux when trying
to read memory, instead, we should bubble up the permissions error
and show it properly.
Python/remote_debug.h