-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
Comments
pitrou
added
type-bug
An unexpected behavior, bug, or error
tests
Tests in the Lib/test dir
labels
Mar 16, 2024
pitrou
changed the title
TSan: data race access socket fd
TSan: data race accessing socket fd
Mar 16, 2024
It happens from https://github.com/python/cpython/actions/runs/11160718143/job/31021782828?pr=124914 too |
|
Superseded by #128277 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: