Skip to content

Binary crashes on 16kb page size arm64 systems #3783

@refi64

Description

@refi64

On Asahi Linux, the binaries on npm crash:

$ node_modules/oxlint/bin/oxlint
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
memory allocation of 56 bytes failed

This is because jemalloc hardcodes the max system page size at build time, and on arm64 systems, that might not be 4kb like it is on CI; in particular, Asahi Linux & Raspberry Pi OS use a 16k page size.

Other projects have resolved this by compiling jemalloc on arm64 to use a 16k page size, e.g. see fd's change which just does export JEMALLOC_SYS_WITH_LG_PAGE=16 before the build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory - Bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions