Skip to content

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

Merged
miss-islington merged 1 commit into
python:3.9from
miss-islington:backport-c0590c0-3.9
Oct 26, 2020
Merged

[3.9] bpo-42146: Fix memory leak in subprocess.Popen() in case of uid/gid overflow (GH-22966)#22980
miss-islington merged 1 commit into
python:3.9from
miss-islington:backport-c0590c0-3.9

Conversation

@miss-islington

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

Copy link
Copy Markdown
Contributor

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 izbyshev@ispras.ru

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 <izbyshev@ispras.ru>
@miss-islington

Copy link
Copy Markdown
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
Copy Markdown
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