-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Closed
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixestopic-free-threadingtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
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
typedef struct { | |
PyObject_HEAD | |
PyObject *dict; | |
int ufd_uptodate; | |
int ufd_len; | |
struct pollfd *ufds; | |
int poll_running; | |
} pollObject; |
Linked PRs
Metadata
Metadata
Assignees
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixestopic-free-threadingtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error