Skip to content

[browser][coreCLR] Assert GetLoaderModule()->IsReflectionEmit() for InvokeStub_AttributeUsageAttribute.set_AllowMultiple #122419

@pavelsavara

Description

@pavelsavara
ASSERT FAILED
	Expression: GetLoaderModule()->IsReflectionEmit()
	Location:   line 2462 in D:/runtime/src/coreclr/vm/method.cpp
	Function:   Reset
	Process:    42
Frame (InlinedCallFrame): 0x4fe44c
    Skipping 0x4fe44c
Frame (InterpreterFrame): 0x4fff3c
   0) dynamicClass::IL_STUB_PInvoke, IR_0056
   1) System.ModuleHandle::GetDynamicMethod, IR_0070
   2) System.ModuleHandle::GetDynamicMethod, IR_003a
   3) System.Reflection.Emit.DynamicILGenerator::GetCallableMethod, IR_003b
   4) System.Reflection.Emit.DynamicMethod::GetMethodDescriptor, IR_00d7
   5) System.Reflection.Emit.DynamicMethod::CreateDelegate, IR_0053
   6) System.Reflection.InvokerEmitUtil::CreateInvokeDelegate_ObjSpanArgs, IR_0257
   7) System.Reflection.MethodInvokerCommon::DetermineStrategy_ObjSpanArgs, IR_0088
   8) System.Reflection.MethodBaseInvoker::InvokePropertySetter, IR_00f4
   9) System.Reflection.RuntimeMethodInfo::InvokePropertySetter, IR_009a
  10) System.Reflection.CustomAttribute::AddCustomAttributes, IR_029c
  11) System.Reflection.CustomAttribute::GetCustomAttributes, IR_01b7
  12) System.RuntimeType::GetCustomAttributes, IR_0053
  13) System.Attribute::GetCustomAttributes, IR_00c1
  14) System.Reflection.CustomAttributeExtensions::GetCustomAttributes, IR_0014
  15) <>c::<GetAttributeUsage>b__12_0, IR_001d
  16) System.Collections.Concurrent.ConcurrentDictionary`2[__Canon,__Canon]::GetOrAdd, IR_009e
  17) Xunit.Sdk.ReflectionAttributeInfo::GetAttributeUsage, IR_0054
  18) Xunit.Sdk.ReflectionMethodInfo::GetCustomAttributes, IR_001b
  19) Xunit.Sdk.ReflectionMethodInfo::GetCustomAttributes, IR_0012
  20) ReflectionAbstractionExtensions::GetCustomAttributes, IR_0012
  21) Xunit.Sdk.XunitTestFrameworkDiscoverer::FindTestsForMethod, IR_0017
  22) Xunit.Sdk.XunitTestFrameworkDiscoverer::FindTestsForType, IR_006a
  23) Microsoft.DotNet.XHarness.TestRunners.Xunit.ThreadlessXunitDiscoverer::FindWithoutThreads, IR_0093
  24) <Run>d__6::MoveNext, IR_0273
  25) System.Runtime.CompilerServices.AsyncMethodBuilderCore::Start, IR_0046
  26) System.Runtime.CompilerServices.AsyncTaskMethodBuilder::Start, IR_000b
  27) Microsoft.DotNet.XHarness.TestRunners.Xunit.ThreadlessXunitTestRunner::Run, IR_003c
  28) <InternalRunAsync>d__38::MoveNext, IR_021b
  29) System.Runtime.CompilerServices.AsyncMethodBuilderCore::Start, IR_0046
  30) System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[__Canon]::Start, IR_000b
  31) Microsoft.DotNet.XHarness.TestRunners.Common.ApplicationEntryPoint::InternalRunAsync, IR_0042
  32) <InternalRunAsync>d__39::MoveNext, IR_0087
  33) System.Runtime.CompilerServices.AsyncMethodBuilderCore::Start, IR_0046

  34) System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[__Canon]::Start, IR_000b
  35) Microsoft.DotNet.XHarness.TestRunners.Common.ApplicationEntryPoint::InternalRunAsync, IR_0056
  36) <RunAsync>d__4::MoveNext, IR_003c
  37) System.Runtime.CompilerServices.AsyncMethodBuilderCore::Start, IR_0046
  38) System.Runtime.CompilerServices.AsyncTaskMethodBuilder::Start, IR_000b
  39) Microsoft.DotNet.XHarness.TestRunners.Common.WasmApplicationEntryPointBase::RunAsync, IR_0032
  40) WasmTestRunner::RunAsync, IR_0055
  41) <Run>d__36::MoveNext, IR_0025
  42) System.Runtime.CompilerServices.AsyncMethodBuilderCore::Start, IR_0046
  43) System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[Int32]::Start, IR_000b
  44) Microsoft.DotNet.XHarness.TestRunners.Xunit.WasmApplicationEntryPoint::Run, IR_0032
  45) <MainAsync>d__8::MoveNext, IR_057e
  46) AsyncStateMachineBox`1[Int32,__Canon]::ExecutionContextCallback, IR_0034
  47) System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.Int32, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[WasmTestRunner+<MainAsync>d__8, WasmTestRunner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]]::IL_STUB_InstantiatingStub, IR_0013
  48) System.Threading.ContextCallback::IL_STUB_DelegateShuffleThunk, IR_0014
  49) System.Threading.ExecutionContext::RunFromThreadPoolDispatchLoop, IR_0060
  50) AsyncStateMachineBox`1[Int32,__Canon]::MoveNext, IR_00d5
  51) AsyncStateMachineBox`1[Int32,__Canon]::ExecuteFromThreadPool, IR_000e
  52) System.Threading.ThreadPoolWorkQueue::DispatchWorkItem, IR_0028
  53) System.Threading.ThreadPoolWorkQueue::Dispatch, IR_0197
  54) System.Threading.ThreadPool::BackgroundJobHandler, IR_0012

native stack

_emscripten_debugger (dotnet.native.sw676hzo2y.js:7795)
::DBG_DebugBreak() (stubs.cpp:22)
::DebugBreak() (debug.cpp:411)
MethodDesc::Reset() (method.cpp:2462)
DynamicMethodTable::GetDynamicMethod(unsigned char*, unsigned int, char const*) (dynamicmethod.cpp:263)
::ModuleHandle_GetDynamicMethod(QCall::ModuleHandle, const char *, uint8_t *, INT32, QCall::ObjectHandleOnStack, QCall::ObjectHandleOnStack) (runtimehandles.cpp:2427)
(anonymous namespace)::CallFunc_IND_I32_I32_I32_I32_I32_RetVoid(unsigned long, signed char*, signed char*) (callhelpers-interp-to-managed.cpp:537)
InvokeUnmanagedCalli(unsigned long, void*, signed char*, signed char*) (helpers.cpp:434)
InvokeUnmanagedCalliWithTransition(unsigned long, void*, signed char*, InterpMethodContextFrame*, signed char*, signed char*) (interpexec.cpp:139)
InterpExecMethod(InterpreterFrame*, InterpMethodContextFrame*, InterpThreadContext*, ExceptionClauseArgs*) (interpexec.cpp:2636)
::ExecuteInterpretedMethod(TransitionBlock *, TADDR, void *) (prestub.cpp:1976)
ExecuteInterpretedMethodWithArgs(unsigned long, signed char*, unsigned long, void*, unsigned long) (prestub.cpp:2010)
::ExecuteInterpretedMethodFromUnmanaged(MethodDesc *, int8_t *, size_t, int8_t *, PCODE) (prestub.cpp:2028)
Call_System_Private_CoreLib_System_Threading_ThreadPool_BackgroundJobHandler_Void_RetVoid() (callhelpers-reverse.cpp:38)
::SystemJS_ExecuteBackgroundJobCallback() (callhelpers-reverse.cpp:43)
(anonymous) (dotnet.native.sw676hzo2y.js:711)
SystemJS_ScheduleBackgroundJobTick (dotnet.native.sw676hzo2y.js:5470)
callUserCallback (dotnet.native.sw676hzo2y.js:8999)
(anonymous) (dotnet.native.sw676hzo2y.js:9010)
setTimeout
safeSetTimeout (dotnet.native.sw676hzo2y.js:9008)
_SystemJS_ScheduleBackgroundJob (dotnet.native.sw676hzo2y.js:5467)
(anonymous namespace)::CallFunc_Void_RetVoid(unsigned long, signed char*, signed char*) (callhelpers-interp-to-managed.cpp:399)
InvokeUnmanagedCalli(unsigned long, void*, signed char*, signed char*) (helpers.cpp:434)
InvokeUnmanagedCalliWithTransition(unsigned long, void*, signed char*, InterpMethodContextFrame*, signed char*, signed char*) (interpexec.cpp:139)
InterpExecMethod(InterpreterFrame*, InterpMethodContextFrame*, InterpThreadContext*, ExceptionClauseArgs*) (interpexec.cpp:2636)
::ExecuteInterpretedMethod(TransitionBlock *, TADDR, void *) (prestub.cpp:1976)
ExecuteInterpretedMethodWithArgs(unsigned long, signed char*, unsigned long, void*, unsigned long) (prestub.cpp:2010)
::CallDescrWorkerInternal(CallDescrData *) (calldescrworkerwasm.cpp:29)
CallDescrWorker(CallDescrData*) (callhelpers.cpp:106)
CallDescrWorkerWithHandler(CallDescrData*, int) (callhelpers.cpp:59)
MethodDescCallSite::CallTargetWorker(unsigned long long const*, unsigned long long*, int) (callhelpers.cpp:549)
RunMainInternal(Param*) (callhelpers.h:446)
RunMain(MethodDesc*, short, int*, REF<PtrArray>*)::$_0::operator()(Param*) const::'lambda'(Param*)::operator()(Param*) const (assembly.cpp:1322)
RunMain(MethodDesc*, short, int*, REF<PtrArray>*)::$_0::operator()(Param*) const (assembly.cpp:1324)
RunMain(MethodDesc*, short, int*, REF<PtrArray>*) (assembly.cpp:1324)
Assembly::ExecuteMainMethod(REF<PtrArray>*, int) (assembly.cpp:1450)
CorHost2::ExecuteAssembly(unsigned int, char16_t const*, int, char16_t const**, unsigned int*) (corhost.cpp:349)
::coreclr_execute_assembly(void *, unsigned int, int, const char **, const char *, unsigned int *) (exports.cpp:491)
::BrowserHost_ExecuteAssembly(const char *, int, const char **) (browserhost.cpp:142)
(anonymous) (dotnet.native.sw676hzo2y.js:711)
runMain (dotnet.native.sw676hzo2y.js:1314)
run (test-main.js:361)
await in run
(anonymous) (test-main.js:377)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions