-
- Notifications
You must be signed in to change notification settings - Fork 33.1k
Closed
wolfi-dev/advisories
#8607Labels
topic-asynciotype-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump
Description
First appeared in a474e04, where given function was introduced.
Repro:
import _asyncio class DummyLoop: pass class DummyTask: pass l = 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)" failed Enable tracemalloc to get the memory block allocation traceback object address : 0x7fedad081130 object refcount : 1 object type : 0x55f665a81fe0 object type name: dict object 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_issue105987
fromtest_asyncio.test_eager_task_factory
#139538 - [3.14] gh-105987: unskip
test_issue105987
fromtest_asyncio.test_eager_task_factory
(GH-139538) #139539
Metadata
Metadata
Assignees
Labels
topic-asynciotype-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump
Projects
Status
Done