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

wasm-opt: Assertion failed: it != indexes.memoryIndexes.end() #23782

Open
jspanchu opened this issue Feb 27, 2025 · 1 comment
Open

wasm-opt: Assertion failed: it != indexes.memoryIndexes.end() #23782

jspanchu opened this issue Feb 27, 2025 · 1 comment

Comments

@jspanchu
Copy link
Contributor

This is hard to reproduce and happens very rarely. wasm-opt fails with error

Assertion failed: it != indexes.memoryIndexes.end(), file
C:\b\s\w\ir\cache\builder\emscripten-releases\binaryen\src\wasm\wasm-binary.cpp, line 685

Version of emscripten/emsdk:

emcc --version
shared:INFO: (Emscripten: Running sanity checks)
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 4.0.3 (a9651ff57165f5710bb09a5fe52590fd6ddb72df)
Copyright (C) 2014 the Emscripten authors (see AUTHORS.txt)
This is free and open source software under the MIT license.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Build log: https://open.cdash.org/viewBuildError.php?buildid=10234437

Failing command line in full:

FAILED: Rendering/WebGPU/Testing/Cxx/vtkRenderingWebGPUCxxTests.js 
cmd.exe /C "cd . && C:\glr\builds\vtk\vtk-ci-ext\0\.gitlab\emsdk\upstream\emscripten\em++.bat -fexceptions -sDISABLE_EXCEPTION_CATCHING=0 -O3 -DNDEBUG -fexceptions -sDISABLE_EXCEPTION_CATCHING=0 -sEXCEPTION_STACK_TRACES=1    -sASYNCIFY=1 -sASYNCIFY_STACK_SIZE=81920 -sDISABLE_EXCEPTION_CATCHING=0 -fexceptions -sUSE_WEBGPU=0 --js-library=/.../.gitlab/dawn/lib/cmake/emdawnwebgpu/../../../lib/library_webgpu_enum_tables.js --js-library=/.../.gitlab/dawn/lib/cmake/emdawnwebgpu/../../../lib/library_webgpu_generated_struct_info.js --js-library=/.../.gitlab/dawn/lib/cmake/emdawnwebgpu/../../../lib/library_webgpu_generated_sig_info.js --js-library=/.../.gitlab/dawn/lib/cmake/emdawnwebgpu/../../../lib/library_webgpu.js --closure-args=--externs=/.../.gitlab/dawn/lib/cmake/emdawnwebgpu/../../../lib/webgpu-externs.js --js-library=/.../build/install/lib/vtkWebAssemblyRenderWindowInteractor.js --js-library=/.../build/install/lib/vtkEmscriptenTestUtilities.js -O1 --profiling-funcs -sEXIT_RUNTIME=1 -sALLOW_MEMORY_GROWTH=1 @CMakeFiles\vtkRenderingWebGPUCxxTests.rsp -o Rendering\WebGPU\Testing\Cxx\vtkRenderingWebGPUCxxTests.js  && cd ."
cache:INFO: generating system asset: symbol_lists/38eb0f003c1138bc1f3fdb504b7889591263f296.json... (this will be cached in "C:\glr\builds\vtk\vtk-ci-ext\0\.gitlab\emsdk\upstream\emscripten\cache\symbol_lists\38eb0f003c1138bc1f3fdb504b7889591263f296.json" for subsequent builds)
cache:INFO:  - ok
Assertion failed: it != indexes.memoryIndexes.end(), file C:\b\s\w\ir\cache\builder\emscripten-releases\binaryen\src\wasm\wasm-binary.cpp, line 685

em++: error: 'C:\glr\builds\vtk\vtk-ci-ext\0\.gitlab\emsdk\upstream\bin\wasm-opt --asyncify --pass-arg=asyncify-propagate-addlist [email protected]_*,env.__asyncjs__*,*.$asyncLoad,*.fd_sync,*.emscripten_promise_await,*.emscripten_async_load_script,*.emscripten_async_wget_data,*.emscripten_idb_load,*.emscripten_idb_store,*.emscripten_idb_delete,*.emscripten_idb_exists,*.emscripten_idb_clear,*.emscripten_idb_load_blob,*.emscripten_idb_store_blob,*.emscripten_sleep,*.emscripten_wget_data,*.emscripten_scan_registers,*.emscripten_lazy_load_code,*._load_secondary_module,*.emscripten_fiber_swap,*.SDL_Delay,*.emwgpuWaitAny Rendering\WebGPU\Testing\Cxx\vtkRenderingWebGPUCxxTests.wasm -o Rendering\WebGPU\Testing\Cxx\vtkRenderingWebGPUCxxTests.wasm -g --mvp-features --enable-bulk-memory --enable-bulk-memory-opt --enable-call-indirect-overlong --enable-multivalue --enable-mutable-globals --enable-nontrapping-float-to-int --enable-reference-types --enable-sign-ext' failed (returned 3221226505)
@jspanchu jspanchu changed the title is:issue state:open Assertion failed: it != indexes.memoryIndexes.end(), wasm-opt: Assertion failed: it != indexes.memoryIndexes.end(), Feb 27, 2025
@jspanchu jspanchu changed the title wasm-opt: Assertion failed: it != indexes.memoryIndexes.end(), wasm-opt: Assertion failed: it != indexes.memoryIndexes.end() Feb 27, 2025
@kripken
Copy link
Member

kripken commented Feb 27, 2025

Very strange, I can't guess what could cause this. I think we will need a testcase to investigate it.

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