Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binary crashes on 16kb page size arm64 systems #3783

Closed
refi64 opened this issue Jun 19, 2024 · 1 comment
Closed

Binary crashes on 16kb page size arm64 systems #3783

refi64 opened this issue Jun 19, 2024 · 1 comment
Labels
C-bug Category - Bug

Comments

@refi64
Copy link

refi64 commented Jun 19, 2024

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.

@refi64 refi64 added the C-bug Category - Bug label Jun 19, 2024
@Boshen Boshen closed this as completed in a94ef68 Jun 20, 2024
@overlookmotel
Copy link
Contributor

Just to say: thanks loads @refi64 for bringing this to our attention and for providing the info to fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category - Bug
Projects
None yet
Development

No branches or pull requests

2 participants