Skip to content

[wasm][coreclr] fix resources lookup #120318

@radekdoulik

Description

@radekdoulik

We are currently failing in the interpreter test with

TestConvOvfUn
TID 0001: EX_THROW Type = 0x45452020 HR = 0x80131516, /Users/rodo/git/runtime-main/src/coreclr/vm/excep.cpp line 10707
TID 0001: UNWIND_AND_CONTINUE inside catch, unwinding frame chain
Process terminated.
Encountered infinite recursion while looking up resource 'ArgumentNull_Generic' in System.Private.CoreLib. Verify the installation of .NET is complete and does not need repairing, and that the state of the process has not become corrupted.
   at System.Environment.<FailFast>g____PInvoke|11_0(System.Runtime.CompilerServices.StackCrawlMarkHandle, UInt16*, System.Runtime.CompilerServices.ObjectHandleOnStack, UInt16*)
   at System.Environment.FailFast(System.Runtime.CompilerServices.StackCrawlMarkHandle, System.String, System.Runtime.CompilerServices.ObjectHandleOnStack, System.String)
   at System.Environment.FailFast(System.Threading.StackCrawlMark ByRef, System.String, System.Exception, System.String)
   at System.Environment.FailFast(System.String)
   at System.SR.InternalGetResourceString(System.String)
   at System.SR.GetResourceString(System.String)
   at System.SR.get_ArgumentNull_Generic()
   at System.ArgumentNullException..ctor(System.String)
   at System.ArgumentNullException.Throw(System.String)
   at System.ArgumentNullException.ThrowIfNull(System.Object, System.String)
   at System.Resources.NeutralResourcesLanguageAttribute..ctor(System.String)
   at System.Reflection.CustomAttribute.<CreateCustomAttributeInstance>g____PInvoke|30_0(System.Runtime.CompilerServices.QCallModule, System.Runtime.CompilerServices.ObjectHandleOnStack, System.Runtime.CompilerServices.ObjectHandleOnStack, IntPtr*, IntPtr, Int32*, System.Runtime.CompilerServices.ObjectHandleOnStack)
   at System.Reflection.CustomAttribute.CreateCustomAttributeInstance(System.Runtime.CompilerServices.QCallModule, System.Runtime.CompilerServices.ObjectHandleOnStack, System.Runtime.CompilerServices.ObjectHandleOnStack, IntPtr ByRef, IntPtr, Int32 ByRef, System.Runtime.CompilerServices.ObjectHandleOnStack)
   at System.Reflection.CustomAttribute.CreateCustomAttributeInstance(System.Reflection.RuntimeModule, System.RuntimeType, System.IRuntimeMethodInfo, IntPtr ByRef, IntPtr, Int32 ByRef)
   at System.Reflection.CustomAttribute.AddCustomAttributes(ListBuilder`1<System.Object> ByRef, System.Reflection.RuntimeModule, Int32, System.RuntimeType, Boolean, ListBuilder`1<System.Object>)
   at System.Reflection.CustomAttribute.GetCustomAttributes(System.Reflection.RuntimeModule, Int32, Int32, System.RuntimeType)
   at System.Reflection.CustomAttribute.GetCustomAttributes(System.Reflection.RuntimeAssembly, System.RuntimeType)
   at System.Reflection.RuntimeAssembly.GetCustomAttributes(System.Type, Boolean)
   at System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, Boolean)
   at System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type, Boolean)
   at System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type)
   at System.Reflection.CustomAttributeExtensions.GetCustomAttribute(System.Reflection.Assembly, System.Type)
   at System.Reflection.CustomAttributeExtensions.GetCustomAttribute[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.Reflection.Assembly)
   at System.Resources.ManifestBasedResourceGroveler.GetNeutralResourcesLanguage(System.Reflection.Assembly, System.Resources.UltimateResourceFallbackLocation ByRef)
   at System.Resources.ResourceManager.CommonAssemblyInit()
   at System.Resources.ResourceManager..ctor(System.Type)
   at System.SR.get_ResourceManager()
   at System.SR.InternalGetResourceString(System.String)
   at System.SR.GetResourceString(System.String)
   at System.SR.get_ArgumentNull_Generic()
   at System.ArgumentNullException..ctor(System.String)
   at System.ArgumentNullException.Throw(System.String)
   at System.ArgumentNullException.ThrowIfNull(System.Object, System.String)
   at System.Resources.NeutralResourcesLanguageAttribute..ctor(System.String)
   at System.Reflection.CustomAttribute.<CreateCustomAttributeInstance>g____PInvoke|30_0(System.Runtime.CompilerServices.QCallModule, System.Runtime.CompilerServices.ObjectHandleOnStack, System.Runtime.CompilerServices.ObjectHandleOnStack, IntPtr*, IntPtr, Int32*, System.Runtime.CompilerServices.ObjectHandleOnStack)
   at System.Reflection.CustomAttribute.CreateCustomAttributeInstance(System.Runtime.CompilerServices.QCallModule, System.Runtime.CompilerServices.ObjectHandleOnStack, System.Runtime.CompilerServices.ObjectHandleOnStack, IntPtr ByRef, IntPtr, Int32 ByRef, System.Runtime.CompilerServices.ObjectHandleOnStack)
   at System.Reflection.CustomAttribute.CreateCustomAttributeInstance(System.Reflection.RuntimeModule, System.RuntimeType, System.IRuntimeMethodInfo, IntPtr ByRef, IntPtr, Int32 ByRef)
   at System.Reflection.CustomAttribute.AddCustomAttributes(ListBuilder`1<System.Object> ByRef, System.Reflection.RuntimeModule, Int32, System.RuntimeType, Boolean, ListBuilder`1<System.Object>)
   at System.Reflection.CustomAttribute.GetCustomAttributes(System.Reflection.RuntimeModule, Int32, Int32, System.RuntimeType)
   at System.Reflection.CustomAttribute.GetCustomAttributes(System.Reflection.RuntimeAssembly, System.RuntimeType)
   at System.Reflection.RuntimeAssembly.GetCustomAttributes(System.Type, Boolean)
   at System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, Boolean)
   at System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type, Boolean)
   at System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type)
   at System.Reflection.CustomAttributeExtensions.GetCustomAttribute(System.Reflection.Assembly, System.Type)
   at System.Reflection.CustomAttributeExtensions.GetCustomAttribute[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.Reflection.Assembly)
   at System.Resources.ManifestBasedResourceGroveler.GetNeutralResourcesLanguage(System.Reflection.Assembly, System.Resources.UltimateResourceFallbackLocation ByRef)
   at System.Resources.ResourceManager.CommonAssemblyInit()
   at System.Resources.ResourceManager..ctor(System.Type)
   at System.SR.get_ResourceManager()
   at System.SR.InternalGetResourceString(System.String)
   at System.SR.GetResourceString(System.String)
   at System.SR.get_Arg_OverflowException()
   at System.OverflowException..ctor()
   at InterpreterTest.TestConvOvfUn(UInt16, UInt32, UInt64, UInt32, UInt64)
   at InterpreterTest.RunInterpreterTests()
   at InterpreterTest.Main(System.String[])
TID 0001: in Thread::SetLastThrownObject: obj = 0x8c00d4
TID 0001: D::WLC: Enter WatsonLastChance
TID 0001: WatsonLastChance: Debugger not attached at sp 0 ...
TID 0001: WatsonLastChance: should not notify debugger.  Returning EXCEPTION_CONTINUE_SEARCH
Aborted(native code called abort())
/Users/rodo/git/runtime-main/artifacts/obj/coreclr/browser.wasm.Debug/hosts/corerun/corerun.js:144
      throw ex;
      ^

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Relationships

None yet

Development

No branches or pull requests

Issue actions