Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-129069: Fix listobject.c data races due to memmove#142957

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
colesbury wants to merge1 commit intopython:main
base:main
Choose a base branch
Loading
fromcolesbury:gh-129069-list-memmove

Conversation

@colesbury
Copy link
Contributor

@colesburycolesbury commentedDec 18, 2025
edited
Loading

The use of memmove and _Py_memory_repeat were not thread-safe in the free threading build in some cases. In theory, memmove and _Py_memory_repeat can copy byte-by-byte instead of pointer-by-pointer, so concurrent readers could see uninitialized data or tearing.

Additionally, we should be using "release" (or stronger) ordering to be compliant with the C11 memory model when copying objects within a list.

I've also updatedlist_resize so it definitively doesn't fail when shrinking a list. This simplifies some of the call sites.

The use of memmove and _Py_memory_repeat were not thread-safe in thefree threading build in some cases. In theory, memmove and_Py_memory_repeat can copy byte-by-byte instead of pointer-by-pointer,so concurrent readers could see uninitialized data or tearing.Additionally, we should be using "release" (or stronger) ordering to becompliant with the C11 memory model when copying objects within a list.
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by@colesbury for commit97e8d13 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F142957%2Fmerge

If you want to schedule another build, you need to add the🔨 test-with-refleak-buildbots label again.

@bedevere-botbedevere-bot removed the 🔨 test-with-refleak-buildbotsTest PR w/ refleak buildbots; report in status section labelDec 18, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@colesbury@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp