You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
forkserver.set_forkserver_preload() silent preload import failures when sys.path is required #117378
Thanks! This is an ironic bug. It has been there from the start for the forkserver. I suspect in a lot of environments it just didn't matter as the default path or PYTHONPATH from the environment was correct. But I can easily imagine situations where this would defeat the purpose of preloading or even potentially cause subtle bugs based on "" vs the absolute path determined at parent multiprocessing import time being in that preload's sys.path.
Activity
pythongh-117378: Fix multiprocessing forkserver preload sys.path inhe…
gpshead commentedon Nov 7, 2024
Thanks! This is an ironic bug. It has been there from the start for the forkserver. I suspect in a lot of environments it just didn't matter as the default path or PYTHONPATH from the environment was correct. But I can easily imagine situations where this would defeat the purpose of preloading or even potentially cause subtle bugs based on "" vs the absolute path determined at parent multiprocessing import time being in that preload's sys.path.
doublex commentedon Nov 7, 2024
@gpshead
Thank you very much for your efforts!
gh-117378: Fix multiprocessing forkserver preload sys.path inheritanc…
pythongh-117378: Fix multiprocessing forkserver preload sys.path inhe…
[3.13] gh-117378: Fix multiprocessing forkserver preload sys.path inh…
[3.12] pythongh-117378: Fix multiprocessing forkserver preload sys.pa…
6 remaining items
[3.12] gh-117378: Only run the new multiprocessing SysPath test when …
[3.13] gh-117378: Only run the new multiprocessing SysPath test when …
gh-117378: Clear up the NEWS entry wording (GH-126634)
pythongh-117378: Clear up the NEWS entry wording (pythonGH-126634)
pythongh-117378: Clear up the NEWS entry wording (pythonGH-126634)
[3.13] gh-117378: Clear up the NEWS entry wording (GH-126634) (#126668)
[3.12] gh-117378: Clear up the NEWS entry wording (GH-126634) (#126669)
pythongh-117378: Fix multiprocessing forkserver preload sys.path inhe…
pythongh-117378: Only run the new multiprocessing SysPath test when a…
pythongh-117378: Clear up the NEWS entry wording (pythonGH-126634)
pythongh-117378: Fix multiprocessing forkserver preload sys.path inhe…
pythongh-117378: Only run the new multiprocessing SysPath test when a…
pythongh-117378: Clear up the NEWS entry wording (pythonGH-126634)