]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] gh-149619: Fix `_remote_debugging` permissions error on Linux (GH-150012)...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 24 May 2026 13:39:29 +0000 (15:39 +0200)
committerGitHub <noreply@github.com>
Sun, 24 May 2026 13:39:29 +0000 (13:39 +0000)
commitd52dad6989eb79fd01378654954cd79c363c1179
treef83017611d14652e4f9a6cfd2110c4678b92acd7
parent3573b3b1ecbd99030a0b18658e1bfece771b2566
[3.15] gh-149619: Fix `_remote_debugging` permissions error on Linux (GH-150012) (#150339)

gh-149619: Fix `_remote_debugging` permissions error on Linux (GH-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.
(cherry picked from commit 0563890872b3c63f94953e983fe396615b708540)

Co-authored-by: ivonastojanovic <80911834+ivonastojanovic@users.noreply.github.com>
Python/remote_debug.h