Skip to content

[wasm][coreclr] !CREATE_CHECK_STRING(pMT && pMT->Validate()) assert failures #121107

@radekdoulik

Description

@radekdoulik

This is failing in many runtime tests (56 times on my local run). The repro case is simple.

cc @janvorli, the unhandled EH might be related, this looks like problem after 11) System.RuntimeTypeHandle::GetRuntimeType, IR_0007 though.

Repro

throw new PlatformNotSupportedException();

Failed assert

ASSERT FAILED
	Expression: !CREATE_CHECK_STRING(pMT && pMT->Validate())
	Location:   line 548 in /Users/rodo/git/runtime-main/src/coreclr/vm/object.cpp
	Function:   ValidateInner
	Process:    42
Frame (DynamicHelperFrame): 0x4f8ed8
    Skipping 0x4f8ed8
Frame (InterpreterFrame): 0x4fa07c
   0) System.String::FastAllocateString, IR_001d
   1) System.String::Concat, IR_007f
   2) System.String::Concat, IR_003d
   3) DebugAssertException::.ctor, IR_001c
   4) System.Diagnostics.DebugProvider::FailCore, IR_0056
   5) System.Diagnostics.DebugProvider::Fail, IR_0043
   6) System.Diagnostics.Debug::Fail, IR_001a
   7) System.Diagnostics.Debug::Fail, IR_000e
   8) System.Runtime.EH::OnUnhandledExceptionViaClassLib, IR_000b
   9) System.Runtime.EH::DispatchEx, IR_01ff
  10) System.Runtime.EH::RhThrowEx, IR_004f
Frame (InterpreterFrame): 0x4fb67c
  11) System.RuntimeTypeHandle::GetRuntimeType, IR_0007
  12) System.Object::GetType, IR_0012
  13) System.Exception::GetType, IR_000b
  14) System.Exception::GetClassName, IR_000b
  15) System.Exception::ToString, IR_000b
Frame (InlinedCallFrame): 0x4fc15c
    Skipping 0x4fc15c
Frame (InterpreterFrame): 0x4fd3fc
  16) dynamicClass::IL_STUB_PInvoke, IR_0041
  17) System.Environment::FailFast, IR_0036
  18) System.Environment::FailFast, IR_0024
  19) System.Environment::FailFast, IR_001a
  20) System.Diagnostics.DebugProvider::FailCore, IR_006a
  21) System.Diagnostics.DebugProvider::Fail, IR_0043
  22) System.Diagnostics.Debug::Fail, IR_001a
  23) System.Diagnostics.Debug::Fail, IR_000e
  24) System.Runtime.EH::OnUnhandledExceptionViaClassLib, IR_000b
  25) System.Runtime.EH::DispatchEx, IR_01ff
  26) System.Runtime.EH::RhThrowEx, IR_004f
Frame (InterpreterFrame): 0x4feccc
  27) Program::<Main>$, IR_0009

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions