TSan: data race accessing socket fd #116912
Labels
extension-modules
C modules in the Modules dir
tests
Tests in the Lib/test dir
topic-free-threading
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
The
sock_fd
member inPySocketSockObject
can be mutated while the socket is being used, for example when callingsocket.close
orsocket.detach
. However, some other threads can access that member without holding the GIL, and without using atomic instructions. This can trip up Thread Sanitizer intest_asyncio
, for example:CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
The text was updated successfully, but these errors were encountered: