-
-
Notifications
You must be signed in to change notification settings - Fork 34k
gh-144194: Fix mmap failure check in perf_jit_trampoline.c #143713
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
|
Hi, I think a related issue and a news entry file are needed for this PR. Please read the Dev Guide (especially https://devguide.python.org/getting-started/pull-request-lifecycle/) to see what is required when creating a PR. |
vstinner
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.
The change LGTM, but I agree with @aisk: it would be nice to document the fix in a NEWS entry.
Misc/NEWS.d/next/Core_and_Builtins/2026-01-23-20-20-42.gh-issue-144194.IbXfxd.rst
Outdated
Show resolved
Hide resolved
|
You need to update your branch to fix the CI, it is incompatible. |
Misc/NEWS.d/next/Core_and_Builtins/2026-01-23-20-20-42.gh-issue-144194.IbXfxd.rst
Outdated
Show resolved
Hide resolved
mmap() returns MAP_FAILED ((void*)-1) on error, not NULL. The current check never detects mmap failures, so jitdump initialization proceeds even when the memory mapping fails.
|
Thanks for fixing the Linter issue ;-) |
|
Thanks @stratakis for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
…honGH-143713) mmap() returns MAP_FAILED ((void*)-1) on error, not NULL. The current check never detects mmap failures, so jitdump initialization proceeds even when the memory mapping fails. (cherry picked from commit 8fe8a94) Co-authored-by: stratakis <[email protected]>
|
Sorry, @stratakis and @vstinner, I could not cleanly backport this to |
|
GH-144301 is a backport of this pull request to the 3.14 branch. |
|
GH-144304 is a backport of this pull request to the 3.13 branch. |
|
PR merged, thanks for the fix. |
…-143713) (#144301) gh-144194: Fix mmap failure check in perf_jit_trampoline.c (GH-143713) mmap() returns MAP_FAILED ((void*)-1) on error, not NULL. The current check never detects mmap failures, so jitdump initialization proceeds even when the memory mapping fails. (cherry picked from commit 8fe8a94) Co-authored-by: stratakis <[email protected]>
…43713) (#144304) gh-144194: Fix mmap failure check in perf_jit_trampoline.c (#143713) mmap() returns MAP_FAILED ((void*)-1) on error, not NULL. The current check never detects mmap failures, so jitdump initialization proceeds even when the memory mapping fails. (cherry picked from commit 8fe8a94) Co-authored-by: stratakis <[email protected]>
mmap() returns MAP_FAILED ((void*)-1) on error, not NULL. The current check never detects mmap failures, so jitdump initialization proceeds even when the memory mapping fails.