Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-151029: Fix sys.remote_exec() unable to find writable memory when libpython replaced on disk#151032

Open
ambv wants to merge 5 commits into
python:mainpython/cpython:mainfrom
ambv:remote-exec-on-deleted-elfambv/cpython:remote-exec-on-deleted-elfCopy head branch name to clipboard
Open

gh-151029: Fix sys.remote_exec() unable to find writable memory when libpython replaced on disk#151032
ambv wants to merge 5 commits into
python:mainpython/cpython:mainfrom
ambv:remote-exec-on-deleted-elfambv/cpython:remote-exec-on-deleted-elfCopy head branch name to clipboard

Conversation

@ambv
Copy link
Copy Markdown
Contributor

@ambv ambv commented Jun 6, 2026

In the case where /proc/<pid>/maps points at a libpython that got deleted from disk or replaced with a new file, sys.remote_exec() used to fail to find the remote memory address to write the debug script path to.

This change makes it able to recover and read this information from the remote process' memory. See issue for rationale and details.

@ambv ambv added needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels Jun 6, 2026
@johnslavik johnslavik self-requested a review June 7, 2026 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.