Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork34k
gh-143706: Fix sys.argv not set during multiprocessing forkserver__main__ preload#143717
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
…er `__main__` preloadThe forkserver was not passing sys.argv to its main() function, causingsys.argv to be empty during `__main__` module import in child processes. Thisfixes a non-obvious regression inadvertently introduced by thepythongh-126631 mainpreloading fix.
bedevere-bot commentedJan 12, 2026
🤖 New build scheduled with the buildbot fleet by@gpshead for commit30b347f 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F143717%2Fmerge If you want to schedule another build, you need to add the🔨 test-with-buildbots label again. |
duaneg left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
LGTM
298d544 intopython:mainUh oh!
There was an error while loading.Please reload this page.
Thanks@gpshead for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
Sorry,@gpshead, I could not cleanly backport this to |
GH-143763 is a backport of this pull request to the3.14 branch. |
…er `__main__` preload (pythonGH-143717)The forkserver was not passing sys.argv to its main() function, causingsys.argv to be empty during `__main__` module import in child processes. Thisfixes a non-obvious regression inadvertently introduced by thepythongh-126631 mainpreloading fix.(cherry picked from commit298d544)Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
…ver `__main__` preload (GH-143717) (#143763)gh-143706: Fix sys.argv not set during multiprocessing forkserver `__main__` preload (GH-143717)The forkserver was not passing sys.argv to its main() function, causingsys.argv to be empty during `__main__` module import in child processes. Thisfixes a non-obvious regression inadvertently introduced by thegh-126631 mainpreloading fix.(cherry picked from commit298d544)Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
bedevere-bot commentedJan 13, 2026
|
bedevere-bot commentedJan 13, 2026
|
…orkserver `__main__` preload (pythonGH-143717)The forkserver was not passing sys.argv to its main() function, causingsys.argv to be empty during `__main__` module import in child processes. Thisfixes a non-obvious regression inadvertently introduced by thepythongh-126631 mainpreloading fix.(cherry picked from commit298d544)
GH-143821 is a backport of this pull request to the3.13 branch. |
…ver `__main__` preload (GH-143717) (#143821)The forkserver was not passing sys.argv to its main() function, causingsys.argv to be empty during `__main__` module import in child processes. Thisfixes a non-obvious regression inadvertently introduced by thegh-126631 mainpreloading fix.(cherry picked from commit298d544)
bedevere-bot commentedJan 14, 2026
|
Uh oh!
There was an error while loading.Please reload this page.
The forkserver was not passing sys.argv to its main() function, causing sys.argv to be empty during
__main__module import in child processes. This fixes a non-obvious regression inadvertently introduced by thegh-126631 main preloading fix.@duaneg FYI
sys.argvno longer correct during main module execution usingforkserver#143706