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
Race in _ctypes_alloc_callback and libffi under free-threading #128485
The issue is with dlmalloc of libffi (reported here)
Discussing the issue with @colesbury and @Yhg1s on discord, Thomas proposed the following fix (agreed by Sam):
I still think the easy fix is to cause dlmalloc to do its initialization early, like during ctypes import time. Maybe just calling ffi_closure_alloc() (and immediately freeing) is enough.
Activity
gh-128485: ensure that dlmalloc initializes itself at import time in …
pythongh-128485: ensure that dlmalloc initializes itself at import ti…