gh-144194: Fix mmap failure check in perf_jit_trampoline.c#143713
gh-144194: Fix mmap failure check in perf_jit_trampoline.c#143713vstinner merged 1 commit intopython:mainfrom
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. |
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 <cstratak@redhat.com>
|
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 <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 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 <cstratak@redhat.com>
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.