Skip to content

[wasm][coreclr] EH assert: did not expect to collide with a 1st-pass ExInfo during a EH stackwalk #121176

Closed

Description

@radekdoulik

When I was trying to replicate a test failure I run into this issue. The repro source code:

using System;
using System.Collections.Generic;

try
{
    GCMemoryInfo memoryInfoInvalid = GC.GetGCMemoryInfo((GCKind)(-1));
}
catch (Exception e)
{
    if (e is ArgumentOutOfRangeException)
        Console.WriteLine("caught arg exception as expected: {0}", e);
}

The assert:

caught arg exception as expected: System.ArgumentOutOfRangeException: Argument must be between Any and Background. (Parameter 'kind')
   at System.GC.GetGCMemoryInfo(GCKind kind) in /Users/rodo/git/runtime-main/src/coreclr/System.Private.CoreLib/src/System/GC.CoreCLR.cs:line 77
   at Program.<Main>$(String[] args) in /Users/rodo/git/HelloWorld/Program.cs:line 6
warning: unsupported syscall: __syscall_madvise


Assert failure(PID 42 [0x0000002a], Thread: 1 [0x0001]): did not expect to collide with a 1st-pass ExInfo during a EH stackwalk
    File: /Users/rodo/git/runtime-main/src/coreclr/vm/exceptionhandling.cpp:4111
    Image: /managed

@janvorli please take a look

Activity

  1. added this to the Future milestone on Oct 29, 2025
  2. added
    arch-wasm
    area-ExceptionHandling-coreclr
    on Oct 29, 2025
  3. dotnet-policy-service commented on Oct 29, 2025

    @dotnet-policy-service
    Contributor

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

  4. radekdoulik commented on Nov 25, 2025

    @radekdoulik
    MemberAuthor

    This is fixed by #121817

  5. locked and limited conversation to collaborators on Dec 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

arch-wasmarea-ExceptionHandling-coreclr

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions