runtime: [wasm][aot] Uncaught errors in `System.Runtime.Tests`
info: Discovering: System.Runtime.Tests.dll (method display = ClassAndMethod, method display options = None)
info: Discovered: System.Runtime.Tests.dll (found 8909 of 9059 test cases)
info: Using random seed for test cases: 867690635
info: Using random seed for collections: 867690635
info: Starting: System.Runtime.Tests.dll
fail: 143503392
fail: 143503392
fail: 143503392
fail: 143503392
info: WASM EXIT 1
info: Waiting to flush log messages with a timeout of 120 secs ..
fail: Application has finished with exit code TESTS_FAILED but 0 was expected
fail: [out of order message from the browser]: http://127.0.0.1:49190/test-main.js 342:0 Uncaught (in promise)
fail: [out of order message from the browser]: http://127.0.0.1:49190/dotnet.js 1882:6 Uncaught
XHarness exit code: 71 (GENERAL_FAILURE)
This is when building [wasm] Unwrap exception when calling entrypoint (#74235) on main.
/cc @maraf @pavelsavara
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 18 (18 by maintainers)
Commits related to this issue
- [wasm] Run System.Runtime tests in a deterministic order to work around https://github.com/dotnet/runtime/issues/74302. — committed to vargaz/runtime by vargaz 2 years ago
- [wasm] Run System.Runtime tests in a deterministic order to work around https://github.com/dotnet/runtime/issues/74302. (#76287) — committed to dotnet/runtime by vargaz 2 years ago
- [mono][interp] Fix an issue with deopt and interpreter tiering. If a method is tiered while being run from interp_run_clause_with_il_state (), the clause_args argument to interp_exec_method () still ... — committed to vargaz/runtime by vargaz 2 years ago
- [mono][interp] Fix an issue with deopt and interpreter tiering. If a method is tiered while being run from interp_run_clause_with_il_state (), the clause_args argument to interp_exec_method () still ... — committed to vargaz/runtime by vargaz 2 years ago
- [mono][interp] Fix an issue with deopt and interpreter tiering. If a method is tiered while being run from interp_run_clause_with_il_state (), the clause_args argument to interp_exec_method () still ... — committed to vargaz/runtime by vargaz 2 years ago
- [mono][interp] Fix an issue with deopt and interpreter tiering. If a method is tiered while being run from interp_run_clause_with_il_state (), the clause_args argument to interp_exec_method () still ... — committed to vargaz/runtime by vargaz 2 years ago
- [mono][interp] Fix an issue with deopt and interpreter tiering. (#76743) * [mono][interp] Fix an issue with deopt and interpreter tiering. If a method is tiered while being run from interp_run_cla... — committed to dotnet/runtime by vargaz 2 years ago
- [mono][interp] Fix an issue with deopt and interpreter tiering. If a method is tiered while being run from interp_run_clause_with_il_state (), the clause_args argument to interp_exec_method () still ... — committed to dotnet/runtime by vargaz 2 years ago
- Revert "[wasm] Run System.Runtime tests in a deterministic order to work around https://github.com/dotnet/runtime/issues/74302. (#76287)" This reverts commit 68593dd718390853b4c74dc1d79906390aaf1589.... — committed to vargaz/runtime by vargaz 2 years ago
- Revert "[wasm] Run System.Runtime tests in a deterministic order to work around https://github.com/dotnet/runtime/issues/74302. (#76287)" (#77063) This reverts commit 68593dd718390853b4c74dc1d7990639... — committed to dotnet/runtime by vargaz 2 years ago
- [runtime] Sync d337cba → 5108757 Diff: https://github.com/dotnet/runtime/compare/d337cba786fa105d1b97ebe5e2f7f89ff0361627..5108757b997c59ab8ba1fc5309ab0d4e730e2b77 From: https://github.com/dotnet/run... — committed to dotnet/dotnet by dotnet-maestro[bot] 2 years ago
- [mono][interp] Fix an issue with deopt and interpreter tiering. (#76743) * [mono][interp] Fix an issue with deopt and interpreter tiering. If a method is tiered while being run from interp_run_cla... — committed to mdh1418/runtime by vargaz 2 years ago
- Revert "[wasm] Run System.Runtime tests in a deterministic order to work around https://github.com/dotnet/runtime/issues/74302. (#76287)" (#77063) This reverts commit 68593dd718390853b4c74dc1d7990639... — committed to mdh1418/runtime by vargaz 2 years ago
- [release/7.0] [mono][interp] Fix an issue with deopt and interpreter tiering. (#77059) * [mono][interp] Fix an issue with deopt and interpreter tiering. If a method is tiered while being run from ... — committed to dotnet/runtime by github-actions[bot] 2 years ago
Looking at this one, https://github.com/dotnet/runtime/issues/74302#issuecomment-1247760180, I think
mono_wasm_invoke_method_boundor maybemono_runtime_invoke(on wasm?) needs a C++ catch clause. because our LLVM code assumes it can throw and unwind until we get back to the interpreter (todo_jit_call), but in this case we have JS->C->C# and there’s no C# code to get back to. it’s happening withcall_entry_pointbut it could probalby happen with other JS export entrypoints.Actually I wonder if we’re missing a
do_jit_call(or reallymono_llvm_cpp_catch_exception) for some opcode?Another thought: do we load/register AOT images asynchronously? is it possible we executed
mainbefore all the AOT images were loaded? So the interp thought it was doing a normal call, but by the time the exception is thrown we registered AOT images and they throw a C++ exception?