linux-arm64 binary segfaults on 16K-page kernels (Raspberry Pi 5) since 0.1.2-nightly.20261022.3512
Summary
The linux-arm64 standalone binary in v0.1.2-nightly.20261022.3512 segfaults immediately on kernels with 16K pages (Raspberry Pi 5, default kernel_2712). Even t3 --version exits with SIGSEGV (139). This makes the in-app server update fail with "Could not prepare [email protected]." because the staged __service-preflight crashes. v0.1.2-nightly.20261021.3486 works on the same machine.
Environment
- Raspberry Pi 5, aarch64, kernel
6.12.62+rpt-rpi-2712 getconf PAGESIZE→16384
Evidence
readelf -lW t3, working build 3486 (all LOAD segments 64K-aligned):
LOAD 0x000000 0x0000000000400000 ... R 0x10000
LOAD 0x410000 0x0000000000810000 ... R E 0x10000
LOAD 0x2d90000 0x0000000003190000 ... R 0x10000
LOAD 0x6b8d208 0x0000000006f8d208 ... RW 0x10000
LOAD 0x8dde000 0x0000000010dde000 ... R 0x10000
Broken build 3512 (the last two LOAD segments are only 4K-aligned):
LOAD 0x000000 0x0000000000400000 ... R 0x10000
LOAD 0x420000 0x0000000000820000 ... R E 0x10000
LOAD 0x2e00000 0x0000000003200000 ... R 0x10000
LOAD 0x6cdee00 0x00000000070eee00 ... RW 0x10000
LOAD 0x6dad000 0x00000000071ad000 ... R 0x1000
LOAD 0x8faf000 0x000000001015d000 ... R 0x1000
On a 16K-page kernel, the segment at 0x71ad000 shares a page with the end of the RW segment, and the segment at 0x1015d000 has offset/vaddr that are not congruent modulo 16K. The loader cannot map them correctly.
Server trace from the failed update:
PinnedRuntimeInstallError: Pinned runtime install failed while running the staged service preflight.
[cause]: ProcessReadError: Failed to read exitCode for process '.../runtime/versions/.staging-xcpQz4/t3'
[cause]: Error: Process interrupted due to receipt of signal: 'SIGSEGV'
Likely cause
#23165 (pin Node 26.12.1 for standalone releases) landed in this nightly. The appended segments look like the SEA/injected blob being written with 4K alignment. Building or injecting with 64K max-page-size alignment (as previous builds had) should restore arm64 16K/64K-page compatibility.
Duplicate of #23433: both report the linux-arm64 binary from nightly 0.1.2-nightly.20261022.3512 failing with SIGSEGV on Raspberry Pi 5 kernels using 16 KiB pages, with the same two 4 KiB-aligned LOAD segments. Tracking the fix there.