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

Bug: Docker image won't run on ARM64 systems with non 4KB page size #1854

Open
xJonathanLEI opened this issue May 2, 2024 · 4 comments
Open

Comments

@xJonathanLEI
Copy link
Contributor

This is because the default build option in jemalloc uses the host page size, even when cross-compiling. See jemalloc/jemalloc#467 (comment) for details.

The --with-lg-page option must be set to fix this.

Running the ARM64 images on such devices results in an immediate seg fault.

This affects lots of ARM64 devices like Macs with Apple Silicon and Raspberry Pi 5 running Raspberry Pi OS (Ubuntu on RPI 5 uses 4KB page size so it still works).

@AnkushinDaniil
Copy link
Contributor

Hi @xJonathanLEI , could you please describe in more detail how to reproduce this?
I tried on macbook pro m2 with page size 16384 and I don't have this bug.

@xJonathanLEI
Copy link
Contributor Author

Are you running with Docker Desktop on macOS? I'm pretty sure it uses a Linux VM whose page size is still 4KB.

Dojo and Pathfinder both had the same bug but both have resolved.

@AnkushinDaniil
Copy link
Contributor

telegram-cloud-photo-size-2-5229065169429192205-y

@xJonathanLEI
Copy link
Contributor Author

Yeah Docker Desktop works by running a Linux virtual machine. The macOS page size has nothing to do with the VM page size. You can run getconf PAGESIZE inside the container to find out.

Here are the Dojo and Pathfinder issues for your reference:

eqlabs/pathfinder#1982

dojoengine/dojo#1913

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

No branches or pull requests

2 participants