Skip to content

[3.9] bpo-42146: Fix memory leak in subprocess.Popen() in case of uid/gid overflow (GH-22966) #22980

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 26, 2020

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Oct 26, 2020

Fix memory leak in subprocess.Popen() in case of uid/gid overflow

Also add a test that would catch this leak with --huntrleaks.

Alas, the test for extra_groups also exposes an inconsistency
in our error reporting: we use a custom ValueError for extra_groups,
but propagate OverflowError for user and group.
(cherry picked from commit c0590c0)

Co-authored-by: Alexey Izbyshev [email protected]

https://bugs.python.org/issue42146

Automerge-Triggered-By: GH:gpshead

…verflow (pythonGH-22966)

Fix memory leak in subprocess.Popen() in case of uid/gid overflow

Also add a test that would catch this leak with `--huntrleaks`.

Alas, the test for `extra_groups` also exposes an inconsistency
in our error reporting: we use a custom ValueError for `extra_groups`,
but propagate OverflowError for `user` and `group`.
(cherry picked from commit c0590c0)

Co-authored-by: Alexey Izbyshev <[email protected]>
@miss-islington
Copy link
Contributor Author

@izbyshev and @gpshead: Status check is done, and it's a success ✅ .

@gpshead gpshead added type-bug An unexpected behavior, bug, or error 🤖 automerge labels Oct 26, 2020
@miss-islington
Copy link
Contributor Author

@miss-islington: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit c12afa9 into python:3.9 Oct 26, 2020
@miss-islington miss-islington deleted the backport-c0590c0-3.9 branch October 26, 2020 00:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants