Uh oh!
There was an error while loading. Please reload this page.
gh-127085: Fix memoryview->exports race condition. - #127412
Conversation
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.
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.
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.
Sorry, I didn't notice the blurb before. That needs to get changed.
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.
LGTM, this doesn't fix all of the thread safety issues but is a step in right direction so I'm merging it
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