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][AOT] Assertion at mono/mono/mini/exceptions-wasm.c:71 condition `ji' not met #45078

Closed
jeromelaban opened this issue Nov 22, 2020 · 3 comments
Assignees
Labels
arch-wasm WebAssembly architecture area-Codegen-AOT-mono
Milestone

Comments

@jeromelaban
Copy link
Contributor

Description

The following error can happen when invoking Type.GetType(string) in mixed Interpreter/AOT mode:

dotnet.js:1511 * Assertion at /__w/1/s/runtime/src/mono/mono/mini/exceptions-wasm.c:71, condition `ji' not met
  | _emscripten_asm_const_int | @ | dotnet.js:6149
  | wasm_trace_logger | @ | driver.c:141
  | eglib_log_adapter | @ | mono-logger.c:407
  | monoeg_g_logstr | @ | goutput.c:151
  | monoeg_g_logv_nofree | @ | goutput.c:166
  | monoeg_assertion_message | @ | goutput.c:207
  | mono_assertion_message | @ | goutput.c:226
  | mono_arch_unwind_frame | @ | exceptions-wasm.c:68
  | arch_unwind_frame | @ | mini-exceptions.c:463
  | mono_find_jit_info_ext | @ | mini-exceptions.c:651
  | unwinder_unwind_frame | @ | mini-exceptions.c:772
  | mono_walk_stack_full | @ | mini-exceptions.c:1332
  | mono_walk_stack_with_ctx | @ | mini-exceptions.c:1193
  | mono_runtime_walk_stack_with_ctx | @ | mini-exceptions.c:1170
  | mono_stack_walk_no_il | @ | loader.c:1719
  | mono_method_get_last_managed | @ | loader.c:1786
  | type_from_parsed_name | @ | icall.c:1845
  | ves_icall_System_RuntimeTypeHandle_internal_from_name | @ | icall.c:1929
  | ves_icall_System_RuntimeTypeHandle_internal_from_name_raw | @ | icall-def-netcore.h:427
  | aot_wrapper_corlib_System_System_dot_RuntimeTypeHandle__internal_from_name_pinvoke_clsb_RuntimeType__cl6_string_bcls1c_Threading_dStackCrawlMark_26_cls14_Reflection_dAssembly_boolboolboolclsb_RuntimeType__cl6_string_bcls1c_Threading_dStackCrawlMark_26_cls14_Reflection_dAssembly_boolboolbool | @ | corebindings.c:175
  | corlib_System_RuntimeTypeHandle_GetTypeByName_string_bool_bool_bool_System_Threading_StackCrawlMark__bool | @ | corebindings.c:175
  | corlib_System_RuntimeType_GetType_string_bool_bool_bool_System_Threading_StackCrawlMark_ | @ | corebindings.c:175
  | corlib_System_Type_GetType_string

Repro case has yet to be defined.

Configuration

Commit: 38c9b98

Regression?

No

Other information

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added area-Codegen-AOT-mono untriaged New issue has not been triaged by the area owner labels Nov 22, 2020
@lewing lewing added the arch-wasm WebAssembly architecture label Nov 22, 2020
@vargaz vargaz self-assigned this Nov 22, 2020
@lewing lewing added this to the 6.0.0 milestone Nov 22, 2020
@marek-safar marek-safar removed the untriaged New issue has not been triaged by the area owner label Nov 22, 2020
jeromelaban added a commit to unoplatform/uno that referenced this issue Nov 25, 2020
jeromelaban added a commit to unoplatform/uno that referenced this issue Nov 25, 2020
@vargaz
Copy link
Contributor

vargaz commented Nov 26, 2020

Could you try with master, esp. after e274015 ?

@jeromelaban
Copy link
Contributor Author

Running with 78adc93 (commit right after) shows the same issue.

ajpinedam pushed a commit to ajpinedam/uno that referenced this issue Dec 17, 2020
@steveisok
Copy link
Member

It happens w/ full aot as well.

https://gist.github.com/steveisok/1436ed670e0c6812101cb130554ecb48

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-Codegen-AOT-mono
Projects
None yet
Development

No branches or pull requests

6 participants