[issue28779] set_forkserver_preload() can crash the forkserver if preloaded module instantiate multiprocessing classes

Davin Potts report at bugs.python.org
Tue Nov 29 00:21:01 EST 2016


Davin Potts added the comment:

I don't see any negative consequences for the helpers if the `force=True` is made in spawn.prepare's invocation of set_start_method().  In tracing backwards to figure out why this wasn't done already, it seems unchanged since sbt's patch in issue18999.


This change may impact users of execution-bundling tools like cx-freeze -- issue22255 suggests this could make freezing things easier for some.  I admit I don't fully appreciate the details of how these tools are implemented.


> (that said, if you think this is out of scope for this issue, I can revert that part of the patch)

Given the nature of BaseContext's implementation, I don't see a problem with keeping your change.  In case I was missing something, I spent some time searching for code possibly depending upon BaseContext.set_start_method's calling arguments but turned up nothing (no surprises).  It feels cleaner to update it to be in sync with DefaultContext.


Overall, LGTM the way you have it.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28779>
_______________________________________


More information about the Python-bugs-list mailing list