mirror of
https://github.com/python/cpython.git
synced 2025-07-12 22:05:16 +00:00
apply a fix for #3611 where the current exception context was deleted with a generator causing a segfault
This commit is contained in:
parent
41e36676cd
commit
6e7740c790
2 changed files with 23 additions and 1 deletions
|
@ -2453,7 +2453,7 @@ fast_block_end:
|
|||
|
||||
if (b->b_type == EXCEPT_HANDLER) {
|
||||
UNWIND_EXCEPT_HANDLER(b);
|
||||
if (why == WHY_EXCEPTION) {
|
||||
if (why == WHY_EXCEPTION && !throwflag) {
|
||||
Py_CLEAR(tstate->exc_type);
|
||||
Py_CLEAR(tstate->exc_value);
|
||||
Py_CLEAR(tstate->exc_traceback);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue