[issue27122] Hang with contextlib.ExitStack and subprocess.Popen (regression)
STINNER Victor
report at bugs.python.org
Wed May 25 10:43:01 EDT 2016
STINNER Victor added the comment:
> The loop seems to be in PyErr_SetObject in a loop that recursively go through PyException_GetContext.
We should also fix this function to avoid the infinite loop.
Maybe we should deny setting "exc.__context__=exc" (modify PyException_SetContext for that). Maybe raise a new RuntimeError in this case?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27122>
_______________________________________
More information about the Python-bugs-list
mailing list