commit | 7f77ac463cff219e0c8afef2611cad5080cc9df1 | [log] [tgz] |
---|---|---|
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | Fri May 22 14:35:22 2020 -0700 |
committer | GitHub <noreply@github.com> | Fri May 22 14:35:22 2020 -0700 |
tree | 8d28a7f990479fcf34d2493553a8583b515d7e39 | |
parent | a08b7c3bb0ef9da32400d23b13f78245cd7a9541 [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. (cherry picked from commit 7c30d12bd5359b0f66c4fbc98aa055398bcc8a7e) Co-authored-by: Chris Jerdonek <chris.jerdonek@gmail.com>