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
multithreading.Pool.map() crashes Windows computer #50397
Comments
When calling multithreading.Pool().map() to distribute computational The attached minimalist script exhibits this issue. This behavior started occurring recently, immediately after attempting The error output retrievable from Keyboard Interrupt (which only works Identical code running in Unix operates just fine, and the identical Any possible workarounds and/or understanding of root cause is |
Can you wrap the execution of the main code in a if __name__ == |
Ok Jesse, that did stop the bomb problem. Looking like this just turned into a feature request. |
Hey Alex; This isn't a bug, or a feature request. On win32, the way For more information, see: Search for "# Windows" in that file, you'll see the basic process we use |
Two questions: I think it makes sense to prevent any accidental forkbombs, especially if they are /this/ easy to create. Untested (for obvious reasons...), but this should be enough: import multiprocessing
def x(val):
return val
multiprocessing.Pool().map(x, range(10)) |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: