You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Node.js 22.16.0 on Windows11-on-ARM is broken with respect to Wasm heap growth #25627
C:\buildbot\win11-arm64-32gb-snapdragon-x\emscripten_win11_arm64\build\emscripten\main>emcc a.c -pthread -sALLOW_MEMORY_GROWTH -sINITIAL_MEMORY=32MB -sMAXIMUM_MEMORY=256MB -sMINIMAL_RUNTIME -g -Oz -o a.js
emcc: warning: -pthread + ALLOW_MEMORY_GROWTH may run non-wasm code slowly, see https://github.com/WebAssembly/design/issues/1271 [-Wpthreads-mem-growth]
emcc: warning: running limited binaryen optimizations because DWARF info requested (or indirectly required) [-Wlimited-postlink-optimizations]
C:\buildbot\win11-arm64-32gb-snapdragon-x\emscripten_win11_arm64\build\emscripten\main>%EMSDK_NODE% a.js
wasm://wasm/a.wasm-000f691e:1
RuntimeError: memory access out of bounds
at a.wasm.__original_main (wasm://wasm/a.wasm-000f691e:wasm-function[19]:0x661)
at a.wasm.main (wasm://wasm/a.wasm-000f691e:wasm-function[20]:0x684)
at run (C:\buildbot\win11-arm64-32gb-snapdragon-x\emscripten_win11_arm64\build\emscripten\main\a.js:1022:3)
at ready (C:\buildbot\win11-arm64-32gb-snapdragon-x\emscripten_win11_arm64\build\emscripten\main\a.js:48:5)
at C:\buildbot\win11-arm64-32gb-snapdragon-x\emscripten_win11_arm64\build\emscripten\main\a.js:1071:5
Node.js v22.16.0
The test case is minimally reduced version of test other.test_pthread_growth which deterministically fails on Node.js on Windows 11 on ARM.
Only Node.js 22.16.0 fails. Node.js v24.7.0 works correctly.
Activity
Skip other.test_pthread_growth test on Windows on ARM if Node.js is 2…
sbc100 commentedon Oct 22, 2025
Do we know what the actual bug is here? Or why it effects only windows?
juj commentedon Oct 22, 2025
I don't know.
To be precise, the issue doesn't occur on x64 Node.js 22.16.0. Only ARM64 version of Node.
juj commentedon Oct 22, 2025
The out of bounds access itself takes place on expression
*bufferon the lineassert(*buffer == 42);. Removing that avoids the issue.Skip other.test_pthread_growth test on Windows on ARM (#25628)
Skip other.test_pthread_growth test on Windows on ARM (emscripten-cor…