Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

perf_jit_trampoline: mmap failure check uses wrong error value #144194

Open
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)topic-JITtype-bugAn unexpected behavior, bug, or error
@stratakis

Description

@stratakis

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.

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

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)topic-JITtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2026 Movatter.jp