Skip to content

[wasm/R2R] JitTest_Directed fails with GC hole assert #135313

Closed

Description

@jkotas
    0: 0x574940 - corerun!DebugBreak
    1: 0x2f3a1d - corerun!MethodTable::Validate()
    2: 0x3215e0 - corerun!Object::ValidateInner(int, int, int)
    3: 0x3213df - corerun!Object::Validate(int, int, int)
    4: 0x321f86 - corerun!OBJECTREF::OBJECTREF(Object*)
    5: 0x2302e8 - corerun!ResolveVirtualFunctionPointer
    6: 0x437c0b - corerun!(anonymous namespace)::CallFunc_I32_I32_I32_I32_RetI32(unsigned long, signed char*, signed char*)
    7: 0x39adfd - corerun!InvokeUnmanagedCalli(unsigned long, void (*)(unsigned long, signed char*, signed char*), signed char*, signed char*)
    8: 0x169575 - corerun!InvokeUnmanagedCalliWithTransition(unsigned long, void (*)(unsigned long, signed char*, signed char*), signed char*, InterpMethodContextFrame*, signed char*, signed char*)
    9: 0x173c73 - corerun!InterpExecMethod(InterpreterFrame*, InterpMethodContextFrame*, InterpThreadContext*, ExceptionClauseArgs*)
   10: 0x1a9e63 - corerun!ExecuteInterpretedMethod
   11: 0x1aae9d - corerun!ExecuteInterpretedMethodWithArgs_PortableEntryPoint(unsigned long, TransitionBlock*, unsigned long, signed char*)
   12: 0xfbcd01 - corerun!WasmR2RToInterpreterThunk(iiiip)

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1625169
Build error leg or test failing: Directed_d.WorkItemExecution
Pull request: #135144

Error Message

DO NOT USE JSON BELOW IF THIS IS A BUILD BREAK otherwise build analysis will allow pull requests to merge that break the build worse. For a build break, do not use this issue form. Make a regular new issue.

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": ["ValidateInner","ResolveVirtualFunctionPointer","WasmR2RToInterpreterThunk"],
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1625169
Error message validated: [ValidateInner ResolveVirtualFunctionPointer WasmR2RToInterpreterThunk]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 10/6/2026 8:55:13 PM UTC

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0

Activity

  1. added
    blocking-clean-ci
    Known Build Error
    on Oct 6, 2026
  2. added
    untriaged
    on Oct 6, 2026
  3. added
    arch-wasm
    and removed
    blocking-clean-ci
    Known Build Error
    on Oct 6, 2026
  4. dotnet-policy-service commented on Oct 6, 2026

    @dotnet-policy-service
    Contributor

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

  5. added
    blocking-clean-ci
    Known Build Error
    and removed on Oct 6, 2026
  6. dotnet-policy-service commented on Oct 6, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @dotnet/crossgen-contrib
    See info in area-owners.md if you want to be subscribed.

  7. dotnet-policy-service commented on Oct 6, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @JulieLeeMSFT, @BrzVlad, @janvorli
    See info in area-owners.md if you want to be subscribed.

  8. dotnet-policy-service commented on Oct 6, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @dotnet/crossgen-contrib
    See info in area-owners.md if you want to be subscribed.

  9. dotnet-policy-service commented on Oct 6, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @JulieLeeMSFT, @BrzVlad, @janvorli
    See info in area-owners.md if you want to be subscribed.

  10. dotnet-policy-service commented on Oct 6, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @dotnet/crossgen-contrib
    See info in area-owners.md if you want to be subscribed.

  11. added this to the 12.0.0 milestone on Oct 8, 2026
  12. removed
    untriaged
    on Oct 8, 2026
  13. self-assigned this
    on Oct 13, 2026
  14. lewing commented on Oct 16, 2026

    @lewing
    Member

    Root cause: on WASI the composed R2R image was installed at function-table slot 1. R2R frames stored their raw table index in the same word the stack walker checks for its sentinels, and TERMINATE_R2R_STACK_WALK is 1, so a GC that ran while the image's first function was on the stack skipped every R2R frame above it. Their GC refs were neither reported nor updated, which explains the varying GC-hole asserts after cmov_Bool_Xor_Op (its Sub_Funclet_442 was that first function). Reproduces every time with DOTNET_GCStress=1.

    #135440 changed the frame identity: ordinary methods now store their portable entrypoint, and reverse P/Invoke methods store 2 * index + 1, so no frame can match the sentinel. Verified locally on main (3994df1, image still at table slot 1): Directed_d (171 tests) and Directed_r (142) pass under DOTNET_GCStress=1, where the pre-#135440 build failed every time.

    Suggest closing once the Known Build Error hit count stays at 0.

    Note

    This comment was generated with GitHub Copilot.

  15. removed
    blocking-clean-ci
    on Nov 19, 2026
  16. jeffschwMSFT commented on Nov 19, 2026

    @jeffschwMSFT
    Member

    removing blocking-clean-ci as it has not failed in 30 days

    24-Hour Hit Count 7-Day Hit Count 1-Month Count
    0 0 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Known Build Errorarch-wasmarea-ReadyToRun

Type

No type

Projects

  • Status
    No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions