Repository navigation
Open
Labels
Description
Bug report
CI job: https://github.com/python/cpython/actions/runs/45161336683/job/137647390851?pr=160733
A mimalloc assertion failed in test_free_threading.test_generators on a Sanitizers / TSan (free-threading) CI job:
0:15:26 load avg: 8.25 mem: 795.8 MiB [107/142/1] test_free_threading.test_generators worker non-zero exit code (Exit code -6 (SIGABRT))
test_concurrent_close (test.test_free_threading.test_generators.TestFTGenerators.test_concurrent_close) ... ok
test_concurrent_gi_frame (test.test_free_threading.test_generators.TestFTGenerators.test_concurrent_gi_frame) ... ok
test_concurrent_gi_yieldfrom (test.test_free_threading.test_generators.TestFTGenerators.test_concurrent_gi_yieldfrom) ... ok
test_concurrent_send (test.test_free_threading.test_generators.TestFTGenerators.test_concurrent_send) ... ok
test_concurrent_write (test.test_free_threading.test_generators.TestFTGenerators.test_concurrent_write) ...
mimalloc: assertion failed: at "Objects/mimalloc/arena-abandon.c":162, _mi_arena_segment_mark_abandoned
assertion: "_mi_bitmap_is_claimed(arena->blocks_inuse, arena->field_count, 1, bitmap_idx)"
Fatal Python error: Aborted
Current thread's C stack trace (most recent call first):
Binary file "/home/runner/work/cpython/cpython/python", at ___interceptor_backtrace+0xfe [0x55bb2db7634e]
Binary file "/home/runner/work/cpython/cpython/python", at _Py_DumpStack+0x3d [0x55bb2e09427d]
Binary file "/home/runner/work/cpython/cpython/python", at +0x6b858f [0x55bb2e0cf58f]
Binary file "/home/runner/work/cpython/cpython/python", at +0x142761 [0x55bb2db59761]
Binary file "/home/runner/work/cpython/cpython/python", at +0x142cd5 [0x55bb2db59cd5]
Binary file "/usr/lib/x86_64-linux-gnu/libc.so.6", at +0x47dd0 [0x7f9b2b047dd0]
Binary file "/usr/lib/x86_64-linux-gnu/libc.so.6", at pthread_kill+0x11c [0x7f9b2b0ae0cc]
Binary file "/usr/lib/x86_64-linux-gnu/libc.so.6", at gsignal+0x1e [0x7f9b2b047c9e]
Binary file "/usr/lib/x86_64-linux-gnu/libc.so.6", at abort+0x27 [0x7f9b2b0288ec]
Binary file "/home/runner/work/cpython/cpython/python", at ___interceptor_abort+0x84 [0x55bb2db58124]
Binary file "/home/runner/work/cpython/cpython/python", at +0xca4b3 [0x55bb2dae14b3]
Binary file "/home/runner/work/cpython/cpython/python", at +0x3c72b0 [0x55bb2ddde2b0]
Binary file "/home/runner/work/cpython/cpython/python", at +0x3deb13 [0x55bb2ddf5b13]
Binary file "/home/runner/work/cpython/cpython/python", at +0x3cec9b [0x55bb2dde5c9b]
Binary file "/home/runner/work/cpython/cpython/python", at +0x3d3055 [0x55bb2ddea055]
Binary file "/home/runner/work/cpython/cpython/python", at +0x3e582f [0x55bb2ddfc82f]
Binary file "/usr/lib/x86_64-linux-gnu/libc.so.6", at +0xa8d52 [0x7f9b2b0a8d52]
Binary file "/usr/lib/x86_64-linux-gnu/libc.so.6", at +0xabc81 [0x7f9b2b0abc81]
Binary file "/usr/lib/x86_64-linux-gnu/libc.so.6", at +0x13f4dc [0x7f9b2b13f4dc]
Extension modules: _testcapi (total: 1)
Error: test_free_threading.test_generators worker non-zero exit code
I'm not sure who to ping on mimalloc issues: ping @corona10 @mpage.
CPython versions tested on:
3.16, CPython main branch
Operating systems tested on:
Linux
Activity
corona10 commentedon Nov 23, 2026
I will take a look