You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@LindaSummer you don't need to be assigned an issue to work on it. If you're interested in this issue, I suggest you read through the code where the crash happens to understand it. If you feel you found something useful, you can post on this issue with your findings. If you find a possible solution, you can open a PR with your fix.
@LindaSummer you don't need to be assigned an issue to work on it. If you're interested in this issue, I suggest you read through the code where the crash happens to understand it. If you feel you found something useful, you can post on this issue with your findings. If you find a possible solution, you can open a PR with your fix.
Activity
LindaSummer commentedon Nov 22, 2024
Hi @devdanzin ,
I'm a newbie of CPython and want to have a try on this issue.
Could it be assigned to me?😊
Best Regards,
Edward
JelleZijlstra commentedon Nov 22, 2024
@LindaSummer you don't need to be assigned an issue to work on it. If you're interested in this issue, I suggest you read through the code where the crash happens to understand it. If you feel you found something useful, you can post on this issue with your findings. If you find a possible solution, you can open a PR with your fix.
LindaSummer commentedon Nov 23, 2024
Hi @JelleZijlstra ,
Got it! Thanks very much for your warm guidance! 😊
I will try to go through the code and search for the root cause.
Best Regards,
Edward
LindaSummer commentedon Nov 26, 2024
Hi @JelleZijlstra ,
Here are some updates during these days.
This should be inside the SharedMemory release function.
I use an bytearray memoryview and this issue doesn't happen again. I think it should be related to SharedMemory accessors.
I searched for the
exportsreferences and find it is incremented and decremented in filememory_getbufandmemory_releasebuf.I think it should be a race condition issue on the
shm.bufmemoryview object.I will try to learn more about the non-gil synchronization logic and try to find the root cause.
Please correct me if my analysis has any problems. 😊
Best Regards,
Edward
pythongh-127085: fix `memoryview->exports` race condition.
pythongh-127085: fix `memoryview->exports` race condition.
pythongh-127085: fix `memoryview->exports` race condition.
pythongh-127085: fix `memoryview->exports` race condition.
Merge branch 'main' into bugfix/pythongh-127085
2 remaining items
Merge branch 'main' into bugfix/pythongh-127085
pythongh-127085: refactor test case and add macro for exports atomic …
Merge branch 'main' into bugfix/pythongh-127085
Merge branch 'main' into bugfix/pythongh-127085
Merge branch 'main' into bugfix/pythongh-127085
pythongh-127085: fix formatting issue.
Merge branch 'main' into bugfix/pythongh-127085
Merge branch 'main' into bugfix/pythongh-127085
Merge branch 'main' of github.com:LindaSummer/cpython into bugfix/pyt…
Merge branch 'main' of github.com:python/cpython into bugfix/pythongh…
gh-127085: fix some data races in memoryview in free-threading (#127412)
gh-127085: Add a test skip if multiprocessing isn't available (#128019)
pythongh-127085: fix some data races in memoryview in free-threading (p…
pythongh-127085: Add a test skip if multiprocessing isn't available (p…