Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork34k
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
aisk commentedJan 12, 2026
Hi, I think a related issue and a news entry file are needed for this PR. Please read the Dev Guide (especiallyhttps://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 OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
StanFromIreland commentedJan 23, 2026
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 OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
mmap() returns MAP_FAILED ((void*)-1) on error, not NULL. The currentcheck never detects mmap failures, so jitdump initialization proceedseven when the memory mapping fails.
vstinner commentedJan 28, 2026
Thanks for fixing the Linter issue ;-) |
8fe8a94 intopython:mainUh oh!
There was an error while loading.Please reload this page.
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 currentcheck never detects mmap failures, so jitdump initialization proceedseven when the memory mapping fails.(cherry picked from commit8fe8a94)Co-authored-by: stratakis <cstratak@redhat.com>
Sorry,@stratakis and@vstinner, I could not cleanly backport this to |
GH-144301 is a backport of this pull request to the3.14 branch. |
GH-144304 is a backport of this pull request to the3.13 branch. |
vstinner commentedJan 28, 2026
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 currentcheck never detects mmap failures, so jitdump initialization proceedseven when the memory mapping fails.(cherry picked from commit8fe8a94)Co-authored-by: stratakis <cstratak@redhat.com>
…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 currentcheck never detects mmap failures, so jitdump initialization proceedseven when the memory mapping fails.(cherry picked from commit8fe8a94)Co-authored-by: stratakis <cstratak@redhat.com>
Uh oh!
There was an error while loading.Please reload this page.
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.