Skip to content

[wasm][R2R] variant static interface dispatch has signature mismatch #133466

Description

@lewing

Description

Loader/classloader/StaticVirtualMethods/InterfaceVariance/ComplexHierarchyPositive traps during variant static-interface dispatch in the browser-wasm CoreCLR ReadyToRun lane.

Reproduction Steps

Run the runtime-wasm-non-libtests pipeline with ReadyToRun tests enabled on dotnet/runtime commit ef1850bdc9e7d142888247d9bb5df3b74a7ae341 (Azure DevOps build 1588226, Helix job 2a25b357-0ff1-40a2-9fe9-5e205f73cb27, work item Loader).

Expected behavior

ComplexHierarchyPositive completes its variant static-interface dispatch checks.

Actual behavior

Running test: Loader/classloader/StaticVirtualMethods/InterfaceVariance/ComplexHierarchyPositive/ComplexHierarchyPositive.dll
Test cases
---FooBar
TestTheFooString FooBar Base IFoo<Base>
RuntimeError: null function or function signature mismatch
    at ComplexHierarchyPositive_VariantStaticInterfaceDispatchRegressionTest_Test__GetTheFooStringInstance<System___Canon__System___Canon>
    at WasmInterpreterToR2RThunk(iip)
    at WasmR2RToInterpreterThunk(viip)
    at WasmDelayLoadHelper->EagerImports->SignaturePointer_ReadyToRunHelper_DelayLoad_MethodCall

Regression?

Unknown. This was reproduced on current main during the #133305 census.

Known Workarounds

Skip only this test method for browser CoreCLR ReadyToRun. Mono, WASI, non-browser, and non-R2R coverage remain enabled.

Configuration

  • dotnet/runtime commit ef1850bdc9e7d142888247d9bb5df3b74a7ae341
  • CoreCLR browser-wasm
  • Checked runtime
  • ReadyToRun / crossgen2
  • Node.js 23.11.1

Other information

Tracking issue: #133305.

Note

This issue was authored with GitHub Copilot.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-wasmWebAssembly architecturearea-ReadyToRundisabled-testThe test is disabled in source code against the issueos-browserBrowser variant of arch-wasm

    Type

    No type

    Projects

    • Status
      No status

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions