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] Mixed mode with profile and dedup failure: function signature mismatch #49648

Closed
jeromelaban opened this issue Mar 15, 2021 · 3 comments · Fixed by #49758
Closed
Assignees
Labels
arch-wasm WebAssembly architecture area-VM-meta-mono
Milestone

Comments

@jeromelaban
Copy link
Contributor

Description

When running :

System.Console.WriteLine("Hello");

With a profile, the following error happens:

RuntimeError: function signature mismatch
    at corlib_System_Runtime_Loader_AssemblyLoadContext_get_AllContexts (<anonymous>:wasm-function[16567]:0x21a92a)
    at corlib_System_Runtime_Loader_AssemblyLoadContext__ctor_bool_bool_string (<anonymous>:wasm-function[16568]:0x21abcf)
    at corlib_System_Runtime_Loader_DefaultAssemblyLoadContext__ctor (<anonymous>:wasm-function[16572]:0x21b0c9)
    at corlib_System_Runtime_Loader_DefaultAssemblyLoadContext__cctor (<anonymous>:wasm-function[16573]:0x21b111)
    at aot_instances_aot_wrapper_gsharedvt_out_sig_void_ (<anonymous>:wasm-function[17376]:0x24412c)
    at invoke_vi (https://localhost:44395/package_3cafc2561ee14398dada40b3438c16ee83398b38/dotnet.js:11579:25)
    at aot_instances_wrapper_runtime_invoke_object_runtime_invoke_sig_void_intptr_object_intptr_intptr_intptr (<anonymous>:wasm-function[17492]:0x24a5e2)
    at mono_llvmonly_runtime_invoke (<anonymous>:wasm-function[6157]:0xe2d01)
    at mono_jit_runtime_invoke (<anonymous>:wasm-function[6133]:0xe12ef)
    at do_runtime_invoke (<anonymous>:wasm-function[3197]:0x8e4ed)

Configuration

c116047, not fixed by #49538

Regression?

No

Other information

@dotnet-issue-labeler dotnet-issue-labeler bot added area-VM-meta-mono untriaged New issue has not been triaged by the area owner labels Mar 15, 2021
@ghost
Copy link

ghost commented Mar 15, 2021

Tagging subscribers to this area: @CoffeeFlux
See info in area-owners.md if you want to be subscribed.

Issue Details

Description

When running :

System.Console.WriteLine("Hello");

With a profile, the following error happens:

RuntimeError: function signature mismatch
    at corlib_System_Runtime_Loader_AssemblyLoadContext_get_AllContexts (<anonymous>:wasm-function[16567]:0x21a92a)
    at corlib_System_Runtime_Loader_AssemblyLoadContext__ctor_bool_bool_string (<anonymous>:wasm-function[16568]:0x21abcf)
    at corlib_System_Runtime_Loader_DefaultAssemblyLoadContext__ctor (<anonymous>:wasm-function[16572]:0x21b0c9)
    at corlib_System_Runtime_Loader_DefaultAssemblyLoadContext__cctor (<anonymous>:wasm-function[16573]:0x21b111)
    at aot_instances_aot_wrapper_gsharedvt_out_sig_void_ (<anonymous>:wasm-function[17376]:0x24412c)
    at invoke_vi (https://localhost:44395/package_3cafc2561ee14398dada40b3438c16ee83398b38/dotnet.js:11579:25)
    at aot_instances_wrapper_runtime_invoke_object_runtime_invoke_sig_void_intptr_object_intptr_intptr_intptr (<anonymous>:wasm-function[17492]:0x24a5e2)
    at mono_llvmonly_runtime_invoke (<anonymous>:wasm-function[6157]:0xe2d01)
    at mono_jit_runtime_invoke (<anonymous>:wasm-function[6133]:0xe12ef)
    at do_runtime_invoke (<anonymous>:wasm-function[3197]:0x8e4ed)

Configuration

c116047, not fixed by #49538

Regression?

No

Other information

Author: jeromelaban
Assignees: -
Labels:

area-VM-meta-mono, untriaged

Milestone: -

@jeromelaban jeromelaban changed the title [Wasm][AOT] Mixed mode with profile and dedup enabled failure: function signature mismatch [Wasm][AOT] Mixed mode with profile and dedup failure: function signature mismatch Mar 15, 2021
@lewing lewing removed the untriaged New issue has not been triaged by the area owner label Mar 15, 2021
@lewing lewing added this to the 6.0.0 milestone Mar 15, 2021
@lewing lewing added the arch-wasm WebAssembly architecture label Mar 15, 2021
@ghost
Copy link

ghost commented Mar 15, 2021

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

Description

When running :

System.Console.WriteLine("Hello");

With a profile, the following error happens:

RuntimeError: function signature mismatch
    at corlib_System_Runtime_Loader_AssemblyLoadContext_get_AllContexts (<anonymous>:wasm-function[16567]:0x21a92a)
    at corlib_System_Runtime_Loader_AssemblyLoadContext__ctor_bool_bool_string (<anonymous>:wasm-function[16568]:0x21abcf)
    at corlib_System_Runtime_Loader_DefaultAssemblyLoadContext__ctor (<anonymous>:wasm-function[16572]:0x21b0c9)
    at corlib_System_Runtime_Loader_DefaultAssemblyLoadContext__cctor (<anonymous>:wasm-function[16573]:0x21b111)
    at aot_instances_aot_wrapper_gsharedvt_out_sig_void_ (<anonymous>:wasm-function[17376]:0x24412c)
    at invoke_vi (https://localhost:44395/package_3cafc2561ee14398dada40b3438c16ee83398b38/dotnet.js:11579:25)
    at aot_instances_wrapper_runtime_invoke_object_runtime_invoke_sig_void_intptr_object_intptr_intptr_intptr (<anonymous>:wasm-function[17492]:0x24a5e2)
    at mono_llvmonly_runtime_invoke (<anonymous>:wasm-function[6157]:0xe2d01)
    at mono_jit_runtime_invoke (<anonymous>:wasm-function[6133]:0xe12ef)
    at do_runtime_invoke (<anonymous>:wasm-function[3197]:0x8e4ed)

Configuration

c116047, not fixed by #49538

Regression?

No

Other information

Author: jeromelaban
Assignees: vargaz
Labels:

arch-wasm, area-VM-meta-mono

Milestone: 6.0.0

@lewing lewing modified the milestones: 6.0.0, Future Mar 15, 2021
@vargaz
Copy link
Contributor

vargaz commented Mar 16, 2021

I can reproduce, just put the aot.profile file into src/mono/sample/wasm/console, set AOTProfilePath and compile with make AOT=1.

vargaz added a commit to vargaz/runtime that referenced this issue Mar 17, 2021
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Mar 17, 2021
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Mar 18, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Apr 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-VM-meta-mono
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants