You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Miscellaneous errors in asyncio speedup module #75368
Proposed patch fixes miscellaneous errors in asyncio speedup module. It is hard to enumerate they all, but they are mostly NULL dereferencing, reference leaks, and handling exceptions in corner cases.
FYI, there is a missing Py_DECREF from this change: https://bugs.python.org/issue40559
(though it's an obscure code path as mentioned elsewhere in these comments)
Activity
serhiy-storchaka commentedon Aug 11, 2017
Proposed patch fixes miscellaneous errors in asyncio speedup module. It is hard to enumerate they all, but they are mostly NULL dereferencing, reference leaks, and handling exceptions in corner cases.
1st1 commentedon Aug 11, 2017
Adding INADA, he is a co-author/reviewer of that code.
1st1 commentedon Aug 11, 2017
Huge thanks, Serhiy, btw.
vstinner commentedon Aug 11, 2017
"reference leaks" oh? our Refleaks buildbots didn't catch them. Do your new tests reproduce the bugs, to make sure that we don't leak anymore?
1st1 commentedon Aug 11, 2017
The test suite for Tasks and Futures is pretty extensive, but it obviously doesn't cover some obscure use cases.
+1 to make sure that any refleak that was discovered should have a new regression test for it.
serhiy-storchaka commentedon Aug 11, 2017
They are occurred in very obscure cases like calling __init__ multiple times. The patch doesn't contain tests for them.
serhiy-storchaka commentedon Sep 3, 2017
New changeset bca4939 by Serhiy Storchaka in branch 'master':
bpo-31185: Fixed miscellaneous errors in asyncio speedup module. (bpo-3076)
bca4939
serhiy-storchaka commentedon Sep 3, 2017
New changeset 98bbeb7 by Serhiy Storchaka in branch '3.6':
bpo-31185: Fixed miscellaneous errors in asyncio speedup module. (bpo-3076) (bpo-3269)
98bbeb7
cjerdonek commentedon May 8, 2020
FYI, there is a missing Py_DECREF from this change: https://bugs.python.org/issue40559
(though it's an obscure code path as mentioned elsewhere in these comments)