diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-03-21 12:10:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-21 12:10:36 -0700 |
commit | d5fdc3f07ec64d6e17a63f995ed03f0f107cda78 (patch) | |
tree | 0fef80a2883c2e33f8392a9af8c1df0769867237 /Python/ceval.c | |
parent | e732a859340353e982c69a80b753830756ee85bf (diff) | |
download | cpython3-d5fdc3f07ec64d6e17a63f995ed03f0f107cda78.tar.gz |
gh-98608: Fix Failure-handling in new_interpreter() (gh-102658)
The error-handling code in new_interpreter() has been broken for a while. We hadn't noticed because those code mostly doesn't fail. (I noticed while working on gh-101660.) The problem is that we try to clear/delete the newly-created thread/interpreter using itself, which just failed. The solution is to switch back to the calling thread state first.
(cherry picked from commit d1b883b52a99427d234c20e4a92ddfa6a1da8880)
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
https: //github.com/python/cpython/issues/98608
Diffstat (limited to 'Python/ceval.c')
0 files changed, 0 insertions, 0 deletions