Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Description
First appeared ina474e04, where given function was introduced.
Repro:
import_asyncioclassDummyLoop:passclassDummyTask:passl=DummyLoop()_asyncio._swap_current_task(l,DummyTask())t=_asyncio._swap_current_task(l,None)
Output:
Modules/gcmodule.c:461: visit_decref: Assertion "!_PyObject_IsFreed(op)" failedEnable tracemalloc to get the memory block allocation tracebackobject address : 0x7fedad081130object refcount : 1object type : 0x55f665a81fe0object type name: dictobject repr : Segmentation fault (core dumped)I'm working on a fix.
Linked PRs
- gh-105987: Fix reference counting issue in
_asyncio._swap_current_task#105989 - [3.12] gh-105987: Fix reference counting issue in `_asyncio._swap_cur… #106099
- gh-105987: unskip
test_issue105987fromtest_asyncio.test_eager_task_factory#139538 - [3.14] gh-105987: unskip
test_issue105987fromtest_asyncio.test_eager_task_factory(GH-139538) #139539
Metadata
Metadata
Assignees
Projects
Status
Done