summaryrefslogtreecommitdiffstats
path: root/Python/Python-ast.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-05-22 21:35:22 (GMT)
committerGitHub <noreply@github.com>2020-05-22 21:35:22 (GMT)
commit7f77ac463cff219e0c8afef2611cad5080cc9df1 (patch)
tree8d28a7f990479fcf34d2493553a8583b515d7e39 /Python/Python-ast.c
parenta08b7c3bb0ef9da32400d23b13f78245cd7a9541 (diff)
downloadcpython-7f77ac463cff219e0c8afef2611cad5080cc9df1.zip
cpython-7f77ac463cff219e0c8afef2611cad5080cc9df1.tar.gz
cpython-7f77ac463cff219e0c8afef2611cad5080cc9df1.tar.bz2
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. (cherry picked from commit 7c30d12bd5359b0f66c4fbc98aa055398bcc8a7e) Co-authored-by: Chris Jerdonek <chris.jerdonek@gmail.com>
Diffstat (limited to 'Python/Python-ast.c')
0 files changed, 0 insertions, 0 deletions