-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
gh-103987: fix crash in mmap module #103990
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
Merged
Merged
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
d5cf0dd
gh-103987: fix crash in mmap module
Agent-Hellboy af99baa
fix test
Agent-Hellboy 6b7af10
fix test
Agent-Hellboy 6ab6a70
fix test
Agent-Hellboy 50cc20b
📜🤖 Added by blurb_it.
blurb-it[bot] 4d26d53
fix doc
Agent-Hellboy d8a1365
fix test
Agent-Hellboy 428338f
add new test
Agent-Hellboy 0a8213f
fix test
Agent-Hellboy b460efe
add checks in mmap_ass_subscript
Agent-Hellboy 55bd26e
fix test
Agent-Hellboy 7adecc4
fix test
Agent-Hellboy caab85b
Merge branch 'main' into fix-issue-103987
sunmy2019 d8b9897
Update Misc/NEWS.d/next/Library/2023-04-29-18-23-16.gh-issue-103987.s…
sunmy2019 6d50192
gh-103987: fix crash in mmap module
Agent-Hellboy 3784382
fix test
Agent-Hellboy 5e19249
fix test
Agent-Hellboy b0d1fcd
fix test
Agent-Hellboy 1482ee7
📜🤖 Added by blurb_it.
blurb-it[bot] 8c76209
fix doc
Agent-Hellboy 2018297
fix test
Agent-Hellboy 2cea232
add new test
Agent-Hellboy e0de742
fix test
Agent-Hellboy 5389a41
add checks in mmap_ass_subscript
Agent-Hellboy b5e37d7
fix test
Agent-Hellboy ed1715e
fix test
Agent-Hellboy 49d1094
Update Misc/NEWS.d/next/Library/2023-04-29-18-23-16.gh-issue-103987.s…
sunmy2019 61cdd6e
Add new test
Agent-Hellboy 5c8d709
Merge branch 'fix-issue-103987' of https://github.com/Agent-Hellboy/c…
Agent-Hellboy 341b90a
Update Misc/NEWS.d/next/Library/2023-04-29-18-23-16.gh-issue-103987.s…
sunmy2019 6dece9f
Update Misc/NEWS.d/next/Library/2023-04-29-18-23-16.gh-issue-103987.s…
sunmy2019 5cf8f90
fix test
Agent-Hellboy 93163d9
Merge branch 'fix-issue-103988' of https://github.com/Agent-Hellboy/c…
Agent-Hellboy 3b61c74
Merge branch 'main' into fix-issue-103987
sunmy2019 f2d2d00
Merge branch 'main' into fix-issue-103987
sunmy2019 843c2eb
add more checks, fix test cases
sunmy2019 168f5b1
Update Misc/NEWS.d/next/Library/2023-04-29-18-23-16.gh-issue-103987.s…
sunmy2019 435ed41
remove trailing spaces
sunmy2019 320feac
Update Lib/test/test_mmap.py
sunmy2019 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
Misc/NEWS.d/next/Library/2023-04-29-18-23-16.gh-issue-103987.sRgALL.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
In :mod:`mmap`, fix several bugs that could lead to access to memory-mapped files after | ||
they have been invalidated. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Could the buffer have been invalidated here as a side effect of the PyMem_Malloc call above triggering GC? I seem to recall that's possible, but not 100% sure.
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.
I cannot find any GC-related code in
Object/obmalloc.c