NethermindEth / juno

Starknet client implementation.
https://juno.nethermind.io
Apache License 2.0
371 stars 157 forks source link

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

Open xJonathanLEI opened 1 month ago

xJonathanLEI commented 1 month ago

This is because the default build option in jemalloc uses the host page size, even when cross-compiling. See https://github.com/jemalloc/jemalloc/issues/467#issuecomment-2054282344 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).