Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork34k
Open
Description
Bug report
Bug description:
InPython/perf_jit_trampoline.c, theperf_map_jit_init function checks forNULL to detect mmap failures, but mmap() returnsMAP_FAILED (which is(void*)-1) on error, notNULL.
cpython/Python/perf_jit_trampoline.c
Line 1086 in25a10b6
| if (perf_jit_map_state.mapped_buffer==NULL) { |
This means mmap failures are never detected, and jitdump initialization proceeds with an invalid pointer.
CPython versions tested on:
CPython main branch, 3.15, 3.14, 3.13
Operating systems tested on:
Linux