Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refs #32061 -- Fixed test_crash_password_does_not_leak() crash on Windows. #13629

Merged
merged 1 commit into from Nov 3, 2020

Conversation

felixxm
Copy link
Member

@felixxm felixxm commented Nov 2, 2020

When env is passed to subprocess.run() we should pass all existing environment variables. This fixes crash on Windows:

  • Python 3.6:
    Fatal Python error: failed to get random numbers to initialize Python
  • Python 3.7+:
    Fatal Python error: _Py_HashRandomization_Init: failed to get random numbers to initialize Python
    Python runtime state: preinitialized
    

See CI logs.

@felixxm felixxm changed the title Refs #32061 -- Fixed test_crash_password_does_not_leak() crash on Windows with Python 3.6. Refs #32061 -- Fixed test_crash_password_does_not_leak() crash on Windows. Nov 2, 2020
…dows.

When env is passed to subprocess.run() we should pass all existing
environment variables. This fixes crash on Windows:

Fatal Python error: failed to get random numbers to initialize Python

Fatal Python error: _Py_HashRandomization_Init: failed to get random
numbers to initialize Python
Python runtime state: preinitialized
Copy link
Member

@carltongibson carltongibson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep. Super. Thanks.

@carltongibson carltongibson merged commit 009fddc into django:master Nov 3, 2020
@felixxm felixxm deleted the refs-32061-windows branch November 4, 2020 05:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants