commit | 7c30d12bd5359b0f66c4fbc98aa055398bcc8a7e | [log] [tgz] |
---|---|---|
author | Chris Jerdonek <chris.jerdonek@gmail.com> | Fri May 22 13:33:27 2020 -0700 |
committer | GitHub <noreply@github.com> | Fri May 22 13:33:27 2020 -0700 |
tree | 2719af29b9bd410f1ed7f70b1ab1d3c9357713e0 | |
parent | 909b5714e1303357868bc5e281c1cf508d5d5a17 [diff] |
bpo-40696: Fix a hang that can arise after gen.throw() (GH-20287) This updates _PyErr_ChainStackItem() to use _PyErr_SetObject() instead of _PyErr_ChainExceptions(). This prevents a hang in certain circumstances because _PyErr_SetObject() performs checks to prevent cycles in the exception context chain while _PyErr_ChainExceptions() doesn't.