Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
gh-127085: Fix memoryview->exports race condition.#127412
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
Conversation
LindaSummer commented Nov 29, 2024 • edited by bedevere-app bot
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by bedevere-app bot
Uh oh!
There was an error while loading. Please reload this page.
ghost commented Nov 29, 2024 • edited by ghost
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by ghost
Uh oh!
There was an error while loading. Please reload this page.
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
ZeroIntensity left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for contributing! I'm always happy to see new contributors 😄. Please address my comments and let me know if you have any questions.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
ZeroIntensity commented Nov 30, 2024
Please add a news entry so the bot stops spamming. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
ZeroIntensity left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some formatting nitpicks. I'll do a more thorough audit of the thread safety later today.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
LindaSummer commented Dec 1, 2024
Hi @ZeroIntensity , Thanks very much for your patience and warm help! 😊 Wish a nice day! Best Regards, |
picnixz commented Dec 2, 2024
@LindaSummer Please do not update the branch with the latest main unless you have conflicts to resolve. This wastes resources and notifies everyone subscribed to the PR. |
LindaSummer commented Dec 2, 2024
Hi @ZeroIntensity , @picnixz , Thanks again for your guidance and patience! ❤ Best Regards, |
LindaSummer commented Dec 5, 2024
Hi @ZeroIntensity , Sorry to bother you again. 😊 This PR has been pending for three days in awaiting core review. Should I mention someone in this thread for next steps? 😊 Best Regards, |
ZeroIntensity commented Dec 5, 2024
No worries. Typically the |
ZeroIntensity left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I didn't notice the blurb before. That needs to get changed.
Misc/NEWS.d/next/Core_and_Builtins/2024-11-30-23-35-45.gh-issue-127085.KLKylb.rst Outdated Show resolvedHide resolved
Uh oh!
There was an error while loading. Please reload this page.
kumaraditya303 commented Dec 9, 2024 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
I'll be reviewing this by next week |
kumaraditya303 left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, this doesn't fix all of the thread safety issues but is a step in right direction so I'm merging it
4937ba5 into python:mainUh oh!
There was an error while loading. Please reload this page.
Thanks @LindaSummer for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
Sorry, @LindaSummer and @kumaraditya303, I could not cleanly backport this to |
kumaraditya303 commented Dec 16, 2024
I'll take of backporting this if needed as part of #127716 |
bedevere-bot commented Dec 16, 2024
|
bedevere-bot commented Dec 16, 2024
|
bedevere-bot commented Dec 16, 2024
|
mhsmith commented Dec 16, 2024
iOS and Android don't support subprocesses, and therefore don't support the |
LindaSummer commented Dec 17, 2024
Hi @mhsmith , Thanks for your suggestion! 😊 I will try to fix the test case issue. Best Regards, |
hugovk commented Feb 26, 2025
@kumaraditya303 Triage: Please could you make the backport if needed? Otherwise let's remove the label. Thanks! |
Issue
Close#127085 .
Proposed Changes
memoryview->exportsprotected by critical section.Cause of the problem
With TSAN, I find that the root cause should be racing between
memory_getbufandmemory_releasebuf.After adding the critical section, this racing has been fixed.
Here are the TSAN outputs.
ShareableList.countin threads aborts:Assertion 'self->exports == 0' failed#127085