cpython/Lib/multiprocessing
Miss Islington (bot) 34ef75d3ef
[3.11] gh-77377: Ensure multiprocessing SemLock is valid for spawn-based Process before serializing it (GH-107275) (#108378)
gh-77377: Ensure multiprocessing SemLock is valid for spawn-based Process before serializing it (GH-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 1700d34d31)

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>
2023-08-23 21:11:20 +00:00
..
dummy
__init__.py
connection.py [3.11] gh-97514: Don't use Linux abstract sockets for multiprocessing (GH-98501) (GH-98502) 2022-10-20 16:55:37 -07:00
context.py
forkserver.py [3.11] gh-107963: Fix set_forkserver_preload to check the type of given list (GH-107965) (gh-107976) 2023-08-15 23:53:25 +09:00
heap.py
managers.py
pool.py
popen_fork.py
popen_forkserver.py
popen_spawn_posix.py
popen_spawn_win32.py
process.py [3.11] gh-104536: Improve multiprocessing.process._cleanup logic (GH-104537) (#104737) 2023-05-22 12:49:33 +02:00
queues.py
reduction.py
resource_sharer.py
resource_tracker.py
shared_memory.py [3.11] bpo-40882: Fix a memory leak in SharedMemory on Windows (GH-20684) (#99973) 2022-12-05 13:38:25 +01:00
sharedctypes.py
spawn.py [3.11] More actionable error message when spawn is incorrectly used. (GH-102203) (#107991) 2023-08-16 01:43:28 +00:00
synchronize.py [3.11] gh-77377: Ensure multiprocessing SemLock is valid for spawn-based Process before serializing it (GH-107275) (#108378) 2023-08-23 21:11:20 +00:00
util.py