Skip to content

[3.15] gh-149619: Fix _remote_debugging permissions error on Linux (GH-150012)#150339

Merged
pablogsal merged 1 commit into
python:3.15from
miss-islington:backport-0563890-3.15
May 24, 2026
Merged

[3.15] gh-149619: Fix _remote_debugging permissions error on Linux (GH-150012)#150339
pablogsal merged 1 commit into
python:3.15from
miss-islington:backport-0563890-3.15

Conversation

@miss-islington
Copy link
Copy Markdown
Contributor

@miss-islington miss-islington commented May 24, 2026

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 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 0563890)

Co-authored-by: ivonastojanovic 80911834+ivonastojanovic@users.noreply.github.com

…ythonGH-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 0563890)

Co-authored-by: ivonastojanovic <80911834+ivonastojanovic@users.noreply.github.com>
@pablogsal pablogsal merged commit d52dad6 into python:3.15 May 24, 2026
59 checks passed
@miss-islington miss-islington deleted the backport-0563890-3.15 branch May 24, 2026 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants