Skip to content

gh-149619 Fix _remote_debugging permissions error on Linux#150012

Open
ivonastojanovic wants to merge 1 commit into
python:mainfrom
ivonastojanovic:fix_permission_error
Open

gh-149619 Fix _remote_debugging permissions error on Linux#150012
ivonastojanovic wants to merge 1 commit into
python:mainfrom
ivonastojanovic:fix_permission_error

Conversation

@ivonastojanovic
Copy link
Copy Markdown
Contributor

@ivonastojanovic ivonastojanovic commented May 18, 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.

@ivonastojanovic ivonastojanovic changed the title gh-149619 Fix _remote_debugging permissions error on Linux gh-149619 Fix _remote_debugging permissions error on Linux May 18, 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 <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.
@ivonastojanovic
Copy link
Copy Markdown
Contributor Author

cc @maurycy

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.

1 participant