Skip to content

[3.12] gh-77377: Ensure multiprocessing SemLock is valid for spawn-based Process before serializing it (GH-107275) - #108377

Merged
Yhg1s merged 1 commit into
python:3.12from
miss-islington:backport-1700d34-3.12
Aug 23, 2023
Merged

Yhg1s merged 1 commit into
python:3.12from
miss-islington:backport-1700d34-3.12

Conversation

@miss-islington

@miss-islington miss-islington commented Aug 23, 2023 •

Copy link
Copy Markdown
Contributor

Ensure multiprocessing SemLock is valid for spawn Process before serializing it.

Creating a multiprocessing SemLock with a fork context, and then trying to pass it to a spawn-created Process, would segfault if not detected early.


(cherry picked from commit 1700d34)

Co-authored-by: albanD desmaison.alban@gmail.com
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Antoine Pitrou pitrou@free.fr

…ed Process before serializing it (pythonGH-107275)

Ensure multiprocessing SemLock is valid for spawn Process before serializing it.

Creating a multiprocessing SemLock with a fork context, and then trying to pass it to a spawn-created Process, would segfault if not detected early.

---------

(cherry picked from commit 1700d34)

Co-authored-by: albanD <desmaison.alban@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Antoine Pitrou <pitrou@free.fr>
@Yhg1s
Yhg1s merged commit 9cf49aa into python:3.12 Aug 23, 2023
@miss-islington
miss-islington deleted the backport-1700d34-3.12 branch August 23, 2023 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

5 participants