Closed
Description
Bug report
The polling objects returned by select.poll
and related functions are not thread-safe in the free-threaded build.
The fix might be as simple as adding critical sections to the functions on pollObject
or it may require more work.
The following test exercises the thread-unsafe behavior:
./python -m test test_poll -m test_threaded_poll
Relevant object:
cpython/Modules/selectmodule.c
Lines 434 to 441 in 3ec719f