stackless-dev / stackless

The Stackless Python programming language
http://www.stackless.com/
Other
1.03k stars 60 forks source link

More bugs in hard switching error handling #262

Closed akruis closed 3 years ago

akruis commented 3 years ago

In #220 I fixed some hard switching errors and added a few tests. Unfortunately, I didn't run these tests with a Stackless compiled with SLP_WITH_FRAME_REF_DEBUG defined: the result is an assertion error, caused by an incorrect usage of the frame transfer mechanism. Additionally I was able to fix the reference leaks in test_transfer_errors.py. Fortunately normal Python code can't trigger these bugs, because the hard switching code usually can't fail.

akruis commented 3 years ago

Fixed in main-slp and 3.7-slp