Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failure GC\\LargeMemory\\API\\gc\\suppressfinalize\\suppressfinalize.cmd #77820

Closed
v-wenyuxu opened this issue Nov 3, 2022 · 21 comments
Closed
Assignees
Labels
arch-arm64 area-GC-coreclr blocking-outerloop Blocking the 'runtime-coreclr outerloop' and 'runtime-libraries-coreclr outerloop' runs os-windows
Milestone

Comments

@v-wenyuxu
Copy link

Failed in Run: runtime-coreclr outerloop 20221102.5

Failed tests:

R2R-CG2 windows arm64 Checked no_tiered_compilation @ Windows.10.Arm64v8.Open
    - GC\\LargeMemory\\API\\gc\\suppressfinalize\\suppressfinalize.cmd

Error message:

Fatal error. Internal CLR error. (0x80131506)
  at System.ModuleHandle.ResolveType(System.Runtime.CompilerServices.QCallModule, Int32, IntPtr*, Int32, IntPtr*, Int32, System.Runtime.CompilerServices.ObjectHandleOnStack)
  at System.ModuleHandle.ResolveTypeHandle(Int32, System.RuntimeTypeHandle[], System.RuntimeTypeHandle[])
  at System.Reflection.RuntimeModule.ResolveType(Int32, System.Type[], System.Type[])
  at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(System.Reflection.MetadataToken, System.Reflection.MetadataImport ByRef, System.Reflection.RuntimeModule, System.Reflection.MetadataToken, System.RuntimeType, Boolean, ListBuilder`1<System.Object> ByRef, System.RuntimeType ByRef, System.IRuntimeMethodInfo ByRef, Boolean 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.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, Boolean)
  at System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type, Boolean)
  at System.Reflection.CustomAttributeExtensions.GetCustomAttribute[[System.__Canon, System.Private.CoreLib, Version=7.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.SR.get_ResourceManager()
  at System.SR.InternalGetResourceString(System.String)
  at System.SR.GetResourceString(System.String)
  at System.Exception.get_Message()
  at System.Diagnostics.Tracing.EventSource.Initialize(System.Guid, System.String, System.String[])
  at ILCompiler.PerfEventSource..cctor()
  at ILCompiler.PerfEventSource+StartStopEvents.LoadingEvents()
  at ILCompiler.Program.Run()
  at ILCompiler.Crossgen2RootCommand+<>c__DisplayClass184_0.<.ctor>b__0(System.CommandLine.Invocation.InvocationContext)
  at System.CommandLine.Invocation.AnonymousCommandHandler.Invoke(System.CommandLine.Invocation.InvocationContext)
  at System.CommandLine.Invocation.InvocationPipeline+<>c__DisplayClass4_0+<<BuildInvocationChain>b__0>d.MoveNext()
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[System.CommandLine.Invocation.InvocationPipeline+<>c__DisplayClass4_0+<<BuildInvocationChain>b__0>d, System.CommandLine, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<<BuildInvocationChain>b__0>d ByRef)
  at System.CommandLine.Invocation.InvocationPipeline+<>c__DisplayClass4_0.<BuildInvocationChain>b__0(System.CommandLine.Invocation.InvocationContext, System.Func`2<System.CommandLine.Invocation.InvocationContext,System.Threading.Tasks.Task>)
  at System.CommandLine.CommandLineBuilderExtensions+<>c__DisplayClass17_0+<<UseParseErrorReporting>b__0>d.MoveNext()
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[System.CommandLine.CommandLineBuilderExtensions+<>c__DisplayClass17_0+<<UseParseErrorReporting>b__0>d, System.CommandLine, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<<UseParseErrorReporting>b__0>d ByRef)
  at System.CommandLine.CommandLineBuilderExtensions+<>c__DisplayClass17_0.<UseParseErrorReporting>b__0(System.CommandLine.Invocation.InvocationContext, System.Func`2<System.CommandLine.Invocation.InvocationContext,System.Threading.Tasks.Task>)
  at System.CommandLine.CommandLineBuilderExtensions+<>c__DisplayClass12_0+<<UseHelp>b__0>d.MoveNext()
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[System.CommandLine.CommandLineBuilderExtensions+<>c__DisplayClass12_0+<<UseHelp>b__0>d, System.CommandLine, Version=2.0.0.0

Stack trace:

   at GC_LargeMemory._API_gc_suppressfinalize_suppressfinalize_._API_gc_suppressfinalize_suppressfinalize_cmd()
  at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
  at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
@v-wenyuxu v-wenyuxu added arch-arm64 os-windows blocking-outerloop Blocking the 'runtime-coreclr outerloop' and 'runtime-libraries-coreclr outerloop' runs labels Nov 3, 2022
@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@ghost ghost added the untriaged New issue has not been triaged by the area owner label Nov 3, 2022
@jkotas
Copy link
Member

jkotas commented Nov 3, 2022

This is likely regression from the GC PAL switch. There are multiple failure modes depending on OS and build flavor. On Linux debug builds, the tests are failing with assertion failure:

    GC/LargeMemory/Regressions/largearraytest/largearraytest.sh [FAIL]
      Assertion failed: ret == 0 (/__w/1/s/src/coreclr/gc/unix/gcenv.unix.cpp: VirtualReserveInner: 651)
      [createdump] waitpid() returned successfully (wstatus 00000000)

cc @mangod9

@ghost
Copy link

ghost commented Nov 3, 2022

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

Issue Details

Failed in Run: runtime-coreclr outerloop 20221102.5

Failed tests:

R2R-CG2 windows arm64 Checked no_tiered_compilation @ Windows.10.Arm64v8.Open
    - GC\\LargeMemory\\API\\gc\\suppressfinalize\\suppressfinalize.cmd

Error message:

Fatal error. Internal CLR error. (0x80131506)
  at System.ModuleHandle.ResolveType(System.Runtime.CompilerServices.QCallModule, Int32, IntPtr*, Int32, IntPtr*, Int32, System.Runtime.CompilerServices.ObjectHandleOnStack)
  at System.ModuleHandle.ResolveTypeHandle(Int32, System.RuntimeTypeHandle[], System.RuntimeTypeHandle[])
  at System.Reflection.RuntimeModule.ResolveType(Int32, System.Type[], System.Type[])
  at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(System.Reflection.MetadataToken, System.Reflection.MetadataImport ByRef, System.Reflection.RuntimeModule, System.Reflection.MetadataToken, System.RuntimeType, Boolean, ListBuilder`1<System.Object> ByRef, System.RuntimeType ByRef, System.IRuntimeMethodInfo ByRef, Boolean 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.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, Boolean)
  at System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type, Boolean)
  at System.Reflection.CustomAttributeExtensions.GetCustomAttribute[[System.__Canon, System.Private.CoreLib, Version=7.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.SR.get_ResourceManager()
  at System.SR.InternalGetResourceString(System.String)
  at System.SR.GetResourceString(System.String)
  at System.Exception.get_Message()
  at System.Diagnostics.Tracing.EventSource.Initialize(System.Guid, System.String, System.String[])
  at ILCompiler.PerfEventSource..cctor()
  at ILCompiler.PerfEventSource+StartStopEvents.LoadingEvents()
  at ILCompiler.Program.Run()
  at ILCompiler.Crossgen2RootCommand+<>c__DisplayClass184_0.<.ctor>b__0(System.CommandLine.Invocation.InvocationContext)
  at System.CommandLine.Invocation.AnonymousCommandHandler.Invoke(System.CommandLine.Invocation.InvocationContext)
  at System.CommandLine.Invocation.InvocationPipeline+<>c__DisplayClass4_0+<<BuildInvocationChain>b__0>d.MoveNext()
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[System.CommandLine.Invocation.InvocationPipeline+<>c__DisplayClass4_0+<<BuildInvocationChain>b__0>d, System.CommandLine, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<<BuildInvocationChain>b__0>d ByRef)
  at System.CommandLine.Invocation.InvocationPipeline+<>c__DisplayClass4_0.<BuildInvocationChain>b__0(System.CommandLine.Invocation.InvocationContext, System.Func`2<System.CommandLine.Invocation.InvocationContext,System.Threading.Tasks.Task>)
  at System.CommandLine.CommandLineBuilderExtensions+<>c__DisplayClass17_0+<<UseParseErrorReporting>b__0>d.MoveNext()
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[System.CommandLine.CommandLineBuilderExtensions+<>c__DisplayClass17_0+<<UseParseErrorReporting>b__0>d, System.CommandLine, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<<UseParseErrorReporting>b__0>d ByRef)
  at System.CommandLine.CommandLineBuilderExtensions+<>c__DisplayClass17_0.<UseParseErrorReporting>b__0(System.CommandLine.Invocation.InvocationContext, System.Func`2<System.CommandLine.Invocation.InvocationContext,System.Threading.Tasks.Task>)
  at System.CommandLine.CommandLineBuilderExtensions+<>c__DisplayClass12_0+<<UseHelp>b__0>d.MoveNext()
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[System.CommandLine.CommandLineBuilderExtensions+<>c__DisplayClass12_0+<<UseHelp>b__0>d, System.CommandLine, Version=2.0.0.0

Stack trace:

   at GC_LargeMemory._API_gc_suppressfinalize_suppressfinalize_._API_gc_suppressfinalize_suppressfinalize_cmd()
  at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
  at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
Author: v-wenyuxu
Assignees: -
Labels:

arch-arm64, os-windows, area-GC-coreclr, untriaged, blocking-outerloop

Milestone: -

@mangod9 mangod9 removed the untriaged New issue has not been triaged by the area owner label Nov 3, 2022
@mangod9 mangod9 added this to the 8.0.0 milestone Nov 3, 2022
@mangod9
Copy link
Member

mangod9 commented Nov 3, 2022

I will take a look. @jkotas do you have a link to the linux assert failure you point to above?

@mangod9
Copy link
Member

mangod9 commented Nov 3, 2022

Never mind. I found one here: #77477 (comment)

@mangod9
Copy link
Member

mangod9 commented Nov 3, 2022

The windows arm64 failure has this callstack which is probably a separate issue:

 # Call Site
00 coreclr!FixupPrecode::Init
01 coreclr!Precode::Init
02 coreclr!Precode::AllocateTemporaryEntryPoints
03 coreclr!MethodDescChunk::CreateTemporaryEntryPoints
04 coreclr!MethodDescChunk::EnsureTemporaryEntryPointsCreated
05 coreclr!MethodTableBuilder::SetupMethodTable2
06 coreclr!MethodTableBuilder::BuildMethodTableThrowing
07 coreclr!ClassLoader::CreateTypeHandleForTypeDefThrowing
08 coreclr!ClassLoader::CreateTypeHandleForTypeKey
09 coreclr!ClassLoader::LoadTypeHandleForTypeKey_Body
0a coreclr!ClassLoader::LoadTypeHandleForTypeKey
0b coreclr!ClassLoader::LoadTypeDefThrowing
0c coreclr!ClassLoader::LoadTypeDefOrRefThrowing
0d coreclr!ClassLoader::LoadTypeDefOrRefOrSpecThrowing
0e coreclr!ModuleHandle_ResolveType
0f System.ModuleHandle.ResolveType(System.Runtime.CompilerServices.QCallModule, Int32, IntPtr*, Int32, IntPtr*, Int32, System.Runtime.CompilerServices.ObjectHandleOnStack)
10 

@janvorli
Copy link
Member

janvorli commented Nov 3, 2022

which is probably a separate issue:

It might be related - if the unmap gets wrong size, we might be unmapping memory that was allocated by something else, e.g. the precode above.

@mangod9
Copy link
Member

mangod9 commented Nov 3, 2022

from what I can see we dont unmap after reserving on Windows, its just a straight call to VirtualAlloc.

@mangod9
Copy link
Member

mangod9 commented Nov 8, 2022

The gc pal assert noted above is now fixed. If this issue continues to repro its a separate issue.

@trylek
Copy link
Member

trylek commented Nov 8, 2022

I have double-checked that the last outerloop run that failed due to the same issue in largearraytest was run before the fix was checked in so for now I presume the bug has been indeed fixed. Having said that, the last half a dozen or so outerloop runs hit various infra issues so it remains to be seen whether they might be hiding additional bugs. I'm now working on the ParallelCrash bug, my current working theory is that the problem is caused by subtle Windows shell script issues related to recently added support for R2RDump validation of Crossgen2-compiled assemblies in the presence of multiple tests using the same underlying project with different command-line parameters but I haven't yet managed to actually prove it.

@v-wenyuxu
Copy link
Author

Failed again in: runtime-coreclr outerloop 20221116.5

Failed test:

coreclr windows arm64 Checked no_tiered_compilation @ Windows.10.Arm64v8.Open

- Regressions\\coreclr\\GitHub_61104\\test61104\\test61104.cmd

Error message:

Fatal error. Internal CLR error. (0x80131506)
at System.Resources.ManifestBasedResourceGroveler.GetNeutralResourcesLanguage(System.Reflection.Assembly, System.Resources.UltimateResourceFallbackLocation ByRef)
at System.Resources.ResourceManager.CommonAssemblyInit()
at System.SR.get_ResourceManager()
at System.SR.InternalGetResourceString(System.String)
at System.SR.GetResourceString(System.String)
at System.TypeInitializationException..ctor(System.String, System.Exception)
at System.Globalization.CultureInfo.get_CurrentCulture()
at R2RDump.TextDumper.DumpAllMethods()
at R2RDump.Program.Dump(ILCompiler.Reflection.ReadyToRun.ReadyToRunReader)
at R2RDump.Program.Run()
at R2RDump.R2RDumpRootCommand.<.ctor>b__94_0(System.CommandLine.Invocation.InvocationContext)
at System.CommandLine.Invocation.AnonymousCommandHandler.Invoke(System.CommandLine.Invocation.InvocationContext)
at System.CommandLine.Invocation.InvocationPipeline+<>c__DisplayClass4_0+<<BuildInvocationChain>b__0>d.MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[System.CommandLine.Invocation.InvocationPipeline+<>c__DisplayClass4_0+<<BuildInvocationChain>b__0>d, System.CommandLine, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<<BuildInvocationChain>b__0>d ByRef)
at System.CommandLine.Invocation.InvocationPipeline+<>c__DisplayClass4_0.<BuildInvocationChain>b__0(System.CommandLine.Invocation.InvocationContext, System.Func2<System.CommandLine.Invocation.InvocationContext,System.Threading.Tasks.Task>) at System.CommandLine.CommandLineBuilderExtensions+<>c__DisplayClass17_0+<<UseParseErrorReporting>b__0>d.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[System.CommandLine.CommandLineBuilderExtensions+<>c__DisplayClass17_0+<<UseParseErrorReporting>b__0>d, System.CommandLine, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<<UseParseErrorReporting>b__0>d ByRef) at System.CommandLine.CommandLineBuilderExtensions+<>c__DisplayClass17_0.<UseParseErrorReporting>b__0(System.CommandLine.Invocation.InvocationContext, System.Func2<System.CommandLine.Invocation.InvocationContext,System.Threading.Tasks.Task>)
at System.CommandLine.CommandLineBuilderExtensions+<>c__DisplayClass12_0+<<UseHelp>b__0>d.MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[System.CommandLine.CommandLineBuilderExtensions+<>c__DisplayClass12_0+<<UseHelp>b__0>d, System.CommandLine, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<<UseHelp>b__0>d ByRef)
at System.CommandLine.CommandLineBuilderExtensions+<>c__DisplayClass12_0.<UseHelp>b__0(System.CommandLine.Invocation.InvocationContext, System.Func`2<System.CommandLine.Invocation.InvocationContext,System.Threading.Tasks.Task>)
at System.CommandLine.Invocation.InvocationPipeline.<Invoke>g__FullInvocationChain|3_0(System.CommandLine.Invocation.InvocationContext)
at R2RDump.Program.Main(System.String[])

Return code:      1
Raw output file:      D:\h\w\B1C70979\w\B2F409B4\uploads\Reports\Regressions.coreclr\GitHub_61104\test61104\test61104.output.txt
Raw output:
BEGIN EXECUTION
test61104.dll
1 file(s) copied.
20:03:02.42
Response file: D:\h\w\B1C70979\w\B2F409B4\e\Regressions\coreclr\GitHub_61104\test61104\composite-r2r.dll.rsp
D:\h\w\B1C70979\w\B2F409B4\e\Regressions\coreclr\GitHub_61104\test61104\IL-CG2*.dll
-o:D:\h\w\B1C70979\w\B2F409B4\e\Regressions\coreclr\GitHub_61104\test61104\composite-r2r.dll
--targetarch:arm64
--verify-type-and-field-layout
--method-layout:random
-r:D:\h\w\B1C70979\p\System..dll
-r:D:\h\w\B1C70979\p\Microsoft..dll
-r:D:\h\w\B1C70979\p\mscorlib.dll
-r:D:\h\w\B1C70979\p\netstandard.dll
-O
" "dotnet" "D:\h\w\B1C70979\p\crossgen2\crossgen2.dll" @"D:\h\w\B1C70979\w\B2F409B4\e\Regressions\coreclr\GitHub_61104\test61104\composite-r2r.dll.rsp"   --composite"
Emitting R2R PE file: D:\h\w\B


Stack trace
   at Regressions_coreclr._GitHub_61104_test61104_test61104_._GitHub_61104_test61104_test61104_cmd()
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

@v-wenyuxu
Copy link
Author

Failed again in: runtime-coreclr outerloop 20221128.2

Failed tests:

R2R-CG2 windows arm64 Checked no_tiered_compilation @ Windows.10.Arm64v8.Open

- Regressions\\coreclr\\22728\\createdelegate\\createdelegate.cmd

Error message:

Fatal error. Internal CLR error. (0x80131506)
  at System.IO.Strategies.BufferedFileStreamStrategy.Flush(Boolean)
  at System.IO.Strategies.BufferedFileStreamStrategy.Dispose(Boolean)
  at System.IO.Stream.Dispose()
  at ILCompiler.DependencyAnalysis.ReadyToRunObjectWriter.EmitPortableExecutable()
  at ILCompiler.ReadyToRunCodegenCompilation.Compile(System.String)
  at ILCompiler.Program.RunSingleCompilation(System.Collections.Generic.Dictionary`2<System.String,System.String>, ILCompiler.InstructionSetSupport, System.String, System.Collections.Generic.Dictionary`2<System.String,System.String>, System.Collections.Generic.HashSet`1<Internal.TypeSystem.ModuleDesc>, ILCompiler.ReadyToRunCompilerContext)
  at ILCompiler.Program.Run()
  at ILCompiler.Crossgen2RootCommand+<>c__DisplayClass187_0.<.ctor>b__0(System.CommandLine.Invocation.InvocationContext)
  at System.CommandLine.Invocation.AnonymousCommandHandler.Invoke(System.CommandLine.Invocation.InvocationContext)
  at System.CommandLine.Invocation.InvocationPipeline+<>c__DisplayClass4_0+<<BuildInvocationChain>b__0>d.MoveNext()
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[System.CommandLine.Invocation.InvocationPipeline+<>c__DisplayClass4_0+<<BuildInvocationChain>b__0>d, System.CommandLine, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<<BuildInvocationChain>b__0>d ByRef)
  at System.CommandLine.Invocation.InvocationPipeline+<>c__DisplayClass4_0.<BuildInvocationChain>b__0(System.CommandLine.Invocation.InvocationContext, System.Func`2<System.CommandLine.Invocation.InvocationContext,System.Threading.Tasks.Task>)
  at System.CommandLine.CommandLineBuilderExtensions+<>c__DisplayClass16_0+<<UseParseErrorReporting>b__0>d.MoveNext()
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[System.CommandLine.CommandLineBuilderExtensions+<>c__DisplayClass16_0+<<UseParseErrorReporting>b__0>d, System.CommandLine, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<<UseParseErrorReporting>b__0>d ByRef)
  at System.CommandLine.CommandLineBuilderExtensions+<>c__DisplayClass16_0.<UseParseErrorReporting>b__0(System.CommandLine.Invocation.InvocationContext, System.Func`2<System.CommandLine.Invocation.InvocationContext,System.Threading.Tasks.Task>)
  at System.CommandLine.CommandLineBuilderExtensions+<>c__DisplayClass11_0+<<UseHelp>b__0>d.MoveNext()
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[System.CommandLine.CommandLineBuilderExtensions+<>c__DisplayClass11_0+<<UseHelp>b__0>d, System.CommandLine, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<<UseHelp>b__0>d ByRef)
  at System.CommandLine.CommandLineBuilderExtensions+<>c__DisplayClass11_0.<UseHelp>b__0(System.CommandLine.Invocation.InvocationContext, System.Func`2<System.CommandLine.Invocation.InvocationContext,System.Threading.Tasks.Task>)
  at System.CommandLine.CommandLineBuilderExtensions+<>c__DisplayClass22_0+<<UseVersionOption>b__0>d.MoveNext()
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[System.CommandLine.CommandLineBuilderExtensions+<>c__DisplayClass22_0+<<UseVersionOption>b__0>d, System.CommandLine, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<<UseVersionOption>b__0>d ByRef)
  at System.CommandLine.CommandLineBuilderExtensions+<>c__DisplayClass22_0.<UseVersionOption>b__0(System.CommandLine.Invocation.InvocationContext, System.Func`2<System.CommandLine.Invocation.InvocationContext,System.Threading.Tasks.Task>)
  at System.CommandLine.Invocation.InvocationPipeline.<Invoke>g__FullInvocationChain|3_0(System.CommandLine.Invocation.InvocationContext)
  at System.CommandLine.Invocation.InvocationPipeline.Invoke(System.CommandLine.IConsole)
  at ILCompiler.Program.Main(System.String[])

Return code:      1
Raw output file:      D:\h\w\B12909A7\w\AF6E09CC\uploads\Reports\Regressions.coreclr\22728\createdelegate\createdelegate.output.txt

Stack trace:

   at Regressions_coreclr._22728_createdelegate_createdelegate_._22728_createdelegate_createdelegate_cmd()
  at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
  at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

@v-wenyuxu
Copy link
Author

Failed in Run: runtime-coreclr r2r 20221208.1

Failed tests:

R2R-CG2 windows arm64 Checked no_tiered_compilation @ Windows.10.Arm64v8.Open

- GC\\LargeMemory\\API\\gc\\keepalive\\keepalive.cmd
- GC\\LargeMemory\\API\\gc\\suppressfinalize\\suppressfinalize.cmd

Error message:

Fatal error. Internal CLR error. (0x80131506)
  at ILCompiler.Win32Resources.ResourceData.AddResource(System.Object, System.Object, UInt16, Byte[])
  at ILCompiler.Win32Resources.ResourceData+<>c__DisplayClass8_2.<ReadResourceData>g__ProcessLanguageList|2(System.Object, UInt32, Boolean)
  at ILCompiler.Win32Resources.ResourceData.DoResourceDirectoryRead(System.Reflection.Metadata.BlobReader, UInt32, System.Action`3<System.Object,UInt32,Boolean>)
  at ILCompiler.Win32Resources.ResourceData+<>c__DisplayClass8_1.<ReadResourceData>g__ProcessNameList|1(System.Object, UInt32, Boolean)
  at ILCompiler.Win32Resources.ResourceData.DoResourceDirectoryRead(System.Reflection.Metadata.BlobReader, UInt32, System.Action`3<System.Object,UInt32,Boolean>)
  at ILCompiler.Win32Resources.ResourceData+<>c__DisplayClass8_0.<ReadResourceData>g__ProcessOuterResource|0(System.Object, UInt32, Boolean)
  at ILCompiler.Win32Resources.ResourceData.DoResourceDirectoryRead(System.Reflection.Metadata.BlobReader, UInt32, System.Action`3<System.Object,UInt32,Boolean>)
  at ILCompiler.Win32Resources.ResourceData..ctor(Internal.TypeSystem.Ecma.EcmaModule, System.Func`4<System.Object,System.Object,UInt16,Boolean>)
  at ILCompiler.ReadyToRunCodegenCompilationBuilder.ToCompilation()
  at ILCompiler.Program.RunSingleCompilation(System.Collections.Generic.Dictionary`2<System.String,System.String>, ILCompiler.InstructionSetSupport, System.String, System.Collections.Generic.Dictionary`2<System.String,System.String>, System.Collections.Generic.HashSet`1<Internal.TypeSystem.ModuleDesc>, ILCompiler.ReadyToRunCompilerContext)
  at ILCompiler.Program.Run()
  at ILCompiler.Crossgen2RootCommand+<>c__DisplayClass187_0.<.ctor>b__0(System.CommandLine.Invocation.InvocationContext)
  at System.CommandLine.Invocation.AnonymousCommandHandler.Invoke(System.CommandLine.Invocation.InvocationContext)
  at System.CommandLine.Invocation.InvocationPipeline+<>c__DisplayClass4_0+<<BuildInvocationChain>b__0>d.MoveNext()
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[System.CommandLine.Invocation.InvocationPipeline+<>c__DisplayClass4_0+<<BuildInvocationChain>b__0>d, System.CommandLine, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<<BuildInvocationChain>b__0>d ByRef)
  at System.CommandLine.Invocation.InvocationPipeline+<>c__DisplayClass4_0.<BuildInvocationChain>b__0(System.CommandLine.Invocation.InvocationContext, System.Func`2<System.CommandLine.Invocation.InvocationContext,System.Threading.Tasks.Task>)
  at System.CommandLine.CommandLineBuilderExtensions+<>c__DisplayClass16_0+<<UseParseErrorReporting>b__0>d.MoveNext()
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[System.CommandLine.CommandLineBuilderExtensions+<>c__DisplayClass16_0+<<UseParseErrorReporting>b__0>d, System.CommandLine, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<<UseParseErrorReporting>b__0>d ByRef)
  at System.CommandLine.CommandLineBuilderExtensions+<>c__DisplayClass16_0.<UseParseErrorReporting>b__0(System.CommandLine.Invocation.InvocationContext, System.Func`2<System.CommandLine.Invocation.InvocationContext,System.Threading.Tasks.Task>)
  at System.CommandLine.CommandLineBuilderExtensions+<>c__DisplayClass11_0+<<UseHelp>b__0>d.MoveNext()
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[System.CommandLine.CommandLineBuilderExtensions+<>c__DisplayClass11_0+<<UseHelp>b__0>d, System.CommandLine, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<<UseHelp>b__0>d ByRef)
  at System.CommandLine.CommandLineBuilderExtensions+<>c__DisplayClass11_0.<UseHelp>b__0(System.CommandLine.Invocation.InvocationContext, System.Func`2<System.CommandLine.Invocation.InvocationContext,System.Threading.Tasks.Task>)
  at System.CommandLine.CommandLineBuilderExtensions+<>c__DisplayClass22_0+<<UseVersionOption>b__0>d.MoveNext()
  at System.Runtime.CompilerServices.AsyncMethodBuilder

Stack trace:

   at GC_LargeMemory._API_gc_keepalive_keepalive_._API_gc_keepalive_keepalive_cmd()
  at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
  at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

@v-wenyuxu
Copy link
Author

Run: runtime-coreclr outerloop 20230112.3

Failed test:

R2R-CG2 windows x64 Checked no_tiered_compilation @ Windows.10.Amd64.Open

- JIT\\opt\\ObjectStackAllocation\\ObjectStackAllocationTests\\ObjectStackAllocationTests.cmd

R2R-CG2 windows arm64 Checked no_tiered_compilation @ Windows.11.Arm64.Open

- JIT\\opt\\ObjectStackAllocation\\ObjectStackAllocationTests\\ObjectStackAllocationTests.cmd

R2R-CG2 windows x64 Checked @ Windows.10.Amd64.Open

- JIT\\opt\\ObjectStackAllocation\\ObjectStackAllocationTests\\ObjectStackAllocationTests.cmd

R2R-CG2 windows arm Checked no_tiered_compilation @ Windows.11.Arm64.Open

- profiler\\gc\\gc\\gc.cmd

R2R-CG2 windows arm64 Checked @ Windows.11.Arm64.Open

- JIT\\opt\\ObjectStackAllocation\\ObjectStackAllocationTests\\ObjectStackAllocationTests.cmd

Error message:

Fatal error. Internal CLR error. (0x80131506)
at System.GC.AllocateNewArray(IntPtr, Int32, GC_ALLOC_FLAGS)
at System.Text.StringBuilder.ExpandByABlock(Int32)
at System.Text.StringBuilder.Append(Char, Int32)
at System.Text.StringBuilder.Append(Char)
at System.Diagnostics.StackTrace.ToString(TraceFormat, System.Text.StringBuilder)
at System.Diagnostics.StackTrace.ToString(TraceFormat)
at System.Exception.get_StackTrace()
at System.Exception.ToString()
at Internal.JitInterface.CorInfoImpl.AllocException(System.Exception)
at Internal.JitInterface.CorInfoImpl._resolveToken(IntPtr, IntPtr*, Internal.JitInterface.CORINFO_RESOLVED_TOKEN*)
at Internal.JitInterface.CorInfoImpl.JitCompileMethod(IntPtr ByRef, IntPtr, IntPtr, IntPtr, Internal.JitInterface.CORINFO_METHOD_INFO ByRef, UInt32, IntPtr ByRef, UInt32 ByRef)
at Internal.JitInterface.CorInfoImpl.CompileMethodInternal(ILCompiler.DependencyAnalysis.IMethodNode, Internal.IL.MethodIL)
at Internal.JitInterface.CorInfoImpl.CompileMethod(ILCompiler.DependencyAnalysis.ReadyToRun.MethodWithGCInfo, ILCompiler.Logger)
at ILCompiler.ReadyToRunCodegenCompilation+<>c__DisplayClass46_0.<ComputeDependencyNodeDependencies>g__CompileOneMethod|5(ILCompiler.DependencyAnalysisFramework.DependencyNodeCore`1<ILCompiler.DependencyAnalysis.NodeFactory>, Int32)
at ILCompiler.ReadyToRunCodegenCompilation+<>c__DisplayClass46_0.<ComputeDependencyNodeDependencies>g__CompileOnThread|4(Int32)
at ILCompiler.ReadyToRunCodegenCompilation+<>c__DisplayClass46_0.<ComputeDependencyNodeDependencies>g__CompilationThread|3(System.Object)
at System.Threading.Thread.StartCallback()

Return code:      1
Raw output file:      C:\h\w\A73E0914\w\AADC096C\uploads\Reports\profiler.gc\gc\gc.output.txt
Raw output:
BEGIN EXECUTION
common.dll
gc.dll
Microsoft.Diagnostics.NETCore.Client.dll
Profiler.dll
profiler_common.dll
TestLibrary.dll
6 file(s) copied.
20:24:00.41
Response file: C:\h\w\A73E0914\w\AADC096C\e\profiler\gc\gc\common.dll.rsp
C:\h\w\A73E0914\w\AADC096C\e\profiler\gc\gc\IL-CG2\common.dll
-o:C:\h\w\A73E0914\w\AADC096C\e\profiler\gc\gc\common.dll
--targetarch:arm
--targetos:windows
--verify-type-and-field-layout
--method-layout:random
-r:C:\h\w\A73E0914\p\System..dll
-r:C:\h\w\A73E0914\p\Microsoft..dll
-r:C:\h\w\A73E0914\p\mscorlib.dll
-r:C:\h\w\A73E0914\p\netstandard.dll
-O
" "dotnet" "C:\h\w\A73E0914\p\crossgen2\crossgen2.dll" @"C:\h\w\A73E0914\w\AADC096C\e\profiler\gc\gc\common.dll.rsp"   -r:C:\h\w\A73E0914\w\AADC096C\e\profiler\gc\gc\IL-CG2*.dll"
Emitting R2R PE file: C:\h\w\A73E0914\w\AADC096C\e\profiler\gc\gc\common.dll
" "dotnet" "C:\h\w\A73E0914\p\r2rdump\r2rdump.dll" --header --sc --in C:\h\w\A73E0914\w\AADC096C\e\profiler\gc\gc\common.dll --out C:\h\w\A73E0914\w\AADC096C\e\profiler\gc\gc\common.dll.r2rdump --val"
20:24:03.16
20:24:03.16
Response file: C:\h\w\A73E0914\w\AADC096C\e\profiler\gc\gc\gc.dll.rsp
C:\h\w\A73E0914\w\AADC096C\e\profiler\gc\gc\IL-CG2\gc.dll
-o:C:\h\w\A73E0914\w\AADC096C\e\profiler\gc\gc\gc.dll
--targetarch:arm
--targetos:windows
--verify-type-and-field-layout
--method-layout:random
-r:C:\h\w\A73E0914\p\System..dll
-r:C:\h\w\A73E0914\p\Microsoft..dll
-r:C:\h\w\A73E0914\p\mscorlib.dll
-r:C:\h\w\A73E0914\p\netstandard.dll
-O
" "dotnet" "C:\h\w\A73E0914\p\crossgen2\crossgen2.dll" @"C:\h\w\A73E0914\w\AADC096C\e\profiler\gc\gc\gc.dll.rsp"   -r:C:\h\w\A73E0914\w\AADC096C\e\profiler\gc\gc\IL-CG2*.dll"
Emitting R2R PE file: C:\h\w\A73E0914\w\AADC096C\e\profiler\gc\gc\gc.dll
" "dotnet" "C:\h\w\A73E0914\p\r2rdump\r2rdump.dll" --header --sc --in C:\h\w\A73E0914\w\AADC096C\e\profiler\gc\gc\gc.dll --out C:\h\w\A73E0914\w\AADC096C\e\profiler\gc\gc\gc.dll.r2rdump --val"
20:24:05.44
20:24:05.44
Response file: C:\h\w\A73E0914\w\AADC096C\e\profiler\gc\gc\Microsoft.Diagnostics.NETCore.Client.dll.rsp
C:\h\w\A73E0914\w\AADC096C\e\profiler\gc\gc\IL-CG2\Microsoft.Diagnostics.NETCore.Clie


Stack trace
   at profiler_gc._gc_gc_._gc_gc_cmd()
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

@v-wenyuxu
Copy link
Author

Failed again in: runtime-coreclr outerloop 20230206.2

Failed tests:

R2R-CG2 windows arm Checked no_tiered_compilation @ Windows.11.Arm64.Open

- JIT/Methodical/xxobj/sizeof/sizeof64_Target_64Bit_and_arm_il_d/sizeof64_Target_64Bit_and_arm.cmd

Error message:

Fatal error. Internal CLR error. (0x80131506)
  at System.GC.AllocateNewArray(IntPtr, Int32, GC_ALLOC_FLAGS)
  at System.Text.StringBuilder.ExpandByABlock(Int32)
  at System.Text.StringBuilder.Append(Char, Int32)
  at System.Text.StringBuilder.Append(Char)
  at System.Diagnostics.StackTrace.ToString(TraceFormat, System.Text.StringBuilder)
  at System.Diagnostics.StackTrace.ToString(TraceFormat)
  at System.Exception.get_StackTrace()
  at System.Exception.ToString()
  at Internal.JitInterface.CorInfoImpl.AllocException(System.Exception)
  at Internal.JitInterface.CorInfoImpl._resolveToken(IntPtr, IntPtr*, Internal.JitInterface.CORINFO_RESOLVED_TOKEN*)
  at Internal.JitInterface.CorInfoImpl.JitCompileMethod(IntPtr ByRef, IntPtr, IntPtr, IntPtr, Internal.JitInterface.CORINFO_METHOD_INFO ByRef, UInt32, IntPtr ByRef, UInt32 ByRef)
  at Internal.JitInterface.CorInfoImpl.CompileMethodInternal(ILCompiler.DependencyAnalysis.IMethodNode, Internal.IL.MethodIL)
  at Internal.JitInterface.CorInfoImpl.CompileMethod(ILCompiler.DependencyAnalysis.ReadyToRun.MethodWithGCInfo, ILCompiler.Logger)
  at ILCompiler.ReadyToRunCodegenCompilation+<>c__DisplayClass46_0.<ComputeDependencyNodeDependencies>g__CompileOneMethod|5(ILCompiler.DependencyAnalysisFramework.DependencyNodeCore`1<ILCompiler.DependencyAnalysis.NodeFactory>, Int32)
  at ILCompiler.ReadyToRunCodegenCompilation+<>c__DisplayClass46_0.<ComputeDependencyNodeDependencies>g__CompileOnThread|4(Int32)
  at ILCompiler.ReadyToRunCodegenCompilation+<>c__DisplayClass46_0.<ComputeDependencyNodeDependencies>g__CompileMethodList|2(System.Collections.Generic.IEnumerable`1<ILCompiler.DependencyAnalysisFramework.DependencyNodeCore`1<ILCompiler.DependencyAnalysis.NodeFactory>>)
  at ILCompiler.ReadyToRunCodegenCompilation.ComputeDependencyNodeDependencies(System.Collections.Generic.List`1<ILCompiler.DependencyAnalysisFramework.DependencyNodeCore`1<ILCompiler.DependencyAnalysis.NodeFactory>>)
  at ILCompiler.DependencyAnalysisFramework.DependencyAnalyzer`2[[ILCompiler.DependencyAnalysisFramework.NoLogStrategy`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], ILCompiler.DependencyAnalysisFramework, Version=8.0.0.0, Culture=neutral, PublicKeyToken=null],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].ComputeMarkedNodes()
  at ILCompiler.ReadyToRunCodegenCompilation.Compile(System.String)
  at ILCompiler.Program.RunSingleCompilation(System.Collections.Generic.Dictionary`2<System.String,System.String>, ILCompiler.InstructionSetSupport, System.String, System.Collections.Generic.Dictionary`2<System.String,System.String>, System.Collections.Generic.HashSet`1<Internal.TypeSystem.ModuleDesc>, ILCompiler.ReadyToRunCompilerContext)
  at ILCompiler.Program.Run()
  at ILCompiler.Crossgen2RootCommand+<>c__DisplayClass187_0.<.ctor>b__0(System.CommandLine.Invocation.InvocationContext)
  at System.CommandLine.Invocation.AnonymousCommandHandler.Invoke(System.CommandLine.Invocation.InvocationContext)
  at System.CommandLine.Invocation.InvocationPipeline+<>c__DisplayClass4_0+<<BuildInvocationChain>b__0>d.MoveNext()
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[System.CommandLine.Invocation.InvocationPipeline+<>c__DisplayClass4_0+<<BuildInvocationChain>b__0>d, System.CommandLine, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<<BuildInvocationChain>b__0>d ByRef)
  at System.CommandLine.Invocation.InvocationPipeline+<>c__DisplayClass4_0.<BuildInvocationChain>b__0(System.CommandLine.Invocation.InvocationContext, System.Func`2<System.CommandLine.Invocation.InvocationContext,System.Threading.Tasks.Task>)
  at System.CommandLine.CommandLineBuilderExtensions+<>c__DisplayClass16_0+<<UseParseErrorReporting>b__0>d.MoveNext()
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[System.CommandLine.CommandLineBuilderExtensions+<>c__D

Stack trace:

   at Xunit.Assert.True(Nullable`1 condition, String userMessage) in /_/src/xunit.assert/Asserts/BooleanAsserts.cs:line 132
  at TestLibrary.OutOfProcessTest.RunOutOfProcessTest(String basePath, String assemblyPath)
  at Program.<<Main>$>g__TestExecutor7|0_6(<>c__DisplayClass0_0&)

@v-wenyuxu
Copy link
Author

Failed in Run: runtime-coreclr r2r-extra 20230212.1

Failed tests:

R2R-CG2 windows arm64 Checked jitstressregs1 @ Windows.11.Arm64.Open
    - Loader\\classloader\\generics\\Instantiation\\Negative\\Type_ofT_Inherit_FromT\\Type_ofT_Inherit_FromT.cmd

Error message:

Fatal error. Internal CLR error. (0x80131506)
  at System.GC.AllocateNewArray(IntPtr, Int32, GC_ALLOC_FLAGS)
  at System.Text.StringBuilder.ExpandByABlock(Int32)
  at System.Text.StringBuilder.AppendWithExpansion(Char ByRef, Int32)
  at System.Text.StringBuilder.AppendFormatHelper(System.IFormatProvider, System.String, System.ReadOnlySpan`1<System.Object>)
  at System.Diagnostics.StackTrace.ToString(TraceFormat, System.Text.StringBuilder)
  at System.Diagnostics.StackTrace.ToString(TraceFormat)
  at System.Exception.get_StackTrace()
  at System.Exception.ToString()
  at Internal.JitInterface.CorInfoImpl.AllocException(System.Exception)
  at Internal.JitInterface.CorInfoImpl._getArgType(IntPtr, IntPtr*, Internal.JitInterface.CORINFO_SIG_INFO*, Internal.JitInterface.CORINFO_ARG_LIST_STRUCT_*, Internal.JitInterface.CORINFO_CLASS_STRUCT_**)
  at Internal.JitInterface.CorInfoImpl.JitCompileMethod(IntPtr ByRef, IntPtr, IntPtr, IntPtr, Internal.JitInterface.CORINFO_METHOD_INFO ByRef, UInt32, IntPtr ByRef, UInt32 ByRef)
  at Internal.JitInterface.CorInfoImpl.JitCompileMethod(IntPtr ByRef, IntPtr, IntPtr, IntPtr, Internal.JitInterface.CORINFO_METHOD_INFO ByRef, UInt32, IntPtr ByRef, UInt32 ByRef)
  at Internal.JitInterface.CorInfoImpl.CompileMethodInternal(ILCompiler.DependencyAnalysis.IMethodNode, Internal.IL.MethodIL)
  at Internal.JitInterface.CorInfoImpl.CompileMethod(ILCompiler.DependencyAnalysis.ReadyToRun.MethodWithGCInfo, ILCompiler.Logger)
  at ILCompiler.ReadyToRunCodegenCompilation+<>c__DisplayClass46_0.<ComputeDependencyNodeDependencies>g__CompileOneMethod|5(ILCompiler.DependencyAnalysisFramework.DependencyNodeCore`1<ILCompiler.DependencyAnalysis.NodeFactory>, Int32)
  at ILCompiler.ReadyToRunCodegenCompilation+<>c__DisplayClass46_0.<ComputeDependencyNodeDependencies>g__CompileOnThread|4(Int32)
  at ILCompiler.ReadyToRunCodegenCompilation+<>c__DisplayClass46_0.<ComputeDependencyNodeDependencies>g__CompileMethodList|2(System.Collections.Generic.IEnumerable`1<ILCompiler.DependencyAnalysisFramework.DependencyNodeCore`1<ILCompiler.DependencyAnalysis.NodeFactory>>)
  at ILCompiler.ReadyToRunCodegenCompilation.ComputeDependencyNodeDependencies(System.Collections.Generic.List`1<ILCompiler.DependencyAnalysisFramework.DependencyNodeCore`1<ILCompiler.DependencyAnalysis.NodeFactory>>)
  at ILCompiler.DependencyAnalysisFramework.DependencyAnalyzer`2[[ILCompiler.DependencyAnalysisFramework.NoLogStrategy`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], ILCompiler.DependencyAnalysisFramework, Version=8.0.0.0, Culture=neutral, PublicKeyToken=null],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].ComputeMarkedNodes()
  at ILCompiler.ReadyToRunCodegenCompilation.Compile(System.String)
  at ILCompiler.Program.RunSingleCompilation(System.Collections.Generic.Dictionary`2<System.String,System.String>, ILCompiler.InstructionSetSupport, System.String, System.Collections.Generic.Dictionary`2<System.String,System.String>, System.Collections.Generic.HashSet`1<Internal.TypeSystem.ModuleDesc>, ILCompiler.ReadyToRunCompilerContext)
  at ILCompiler.Program.Run()
  at ILCompiler.Crossgen2RootCommand+<>c__DisplayClass187_0.<.ctor>b__0(System.CommandLine.Invocation.InvocationContext)
  at System.CommandLine.Invocation.AnonymousCommandHandler.Invoke(System.CommandLine.Invocation.InvocationContext)
  at System.CommandLine.Invocation.InvocationPipeline+<>c__DisplayClass4_0+<<BuildInvocationChain>b__0>d.MoveNext()
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[System.CommandLine.Invocation.InvocationPipeline+<>c__DisplayClass4_0+<<BuildInvocationChain>b__0>d, System.CommandLine, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<<BuildInvocationChain>b__0>d ByRef)
  at System.CommandLine.Invocation.InvocationPipeline+<>c__DisplayClass4_0.<BuildInvoca

Stack trace:

  at Loader_classloader._generics_Instantiation_Negative_Type_ofT_Inherit_FromT_Type_ofT_Inherit_FromT_._generics_Instantiation_Negative_Type_ofT_Inherit_FromT_Type_ofT_Inherit_FromT_cmd()
  at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
  at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

@v-wenyuxu
Copy link
Author

Failed again in: runtime-coreclr r2r 20230220.1

Failed tests:

R2R-CG2 windows arm Checked @ Windows.11.Arm64.Open
    - Interop\\PInvoke\\Generics\\GenericsTest\\GenericsTest.cmd

Error message:

Fatal error. Internal CLR error. (0x80131506)
  at System.GC.AllocateNewArray(IntPtr, Int32, GC_ALLOC_FLAGS)
  at System.Text.StringBuilder.ExpandByABlock(Int32)
  at System.Text.StringBuilder.Append(Char, Int32)
  at System.Text.StringBuilder.Append(Char)
  at System.Diagnostics.StackTrace.ToString(TraceFormat, System.Text.StringBuilder)
  at System.Diagnostics.StackTrace.ToString(TraceFormat)
  at System.Exception.get_StackTrace()
  at System.Exception.ToString()
  at Internal.JitInterface.CorInfoImpl.AllocException(System.Exception)
  at Internal.JitInterface.CorInfoImpl._resolveToken(IntPtr, IntPtr*, Internal.JitInterface.CORINFO_RESOLVED_TOKEN*)
  at Internal.JitInterface.CorInfoImpl.JitCompileMethod(IntPtr ByRef, IntPtr, IntPtr, IntPtr, Internal.JitInterface.CORINFO_METHOD_INFO ByRef, UInt32, IntPtr ByRef, UInt32 ByRef)
  at Internal.JitInterface.CorInfoImpl.CompileMethodInternal(ILCompiler.DependencyAnalysis.IMethodNode, Internal.IL.MethodIL)
  at Internal.JitInterface.CorInfoImpl.CompileMethod(ILCompiler.DependencyAnalysis.ReadyToRun.MethodWithGCInfo, ILCompiler.Logger)
  at ILCompiler.ReadyToRunCodegenCompilation+<>c__DisplayClass46_0.<ComputeDependencyNodeDependencies>g__CompileOneMethod|5(ILCompiler.DependencyAnalysisFramework.DependencyNodeCore`1<ILCompiler.DependencyAnalysis.NodeFactory>, Int32)
  at ILCompiler.ReadyToRunCodegenCompilation+<>c__DisplayClass46_0.<ComputeDependencyNodeDependencies>g__CompileOnThread|4(Int32)
  at ILCompiler.ReadyToRunCodegenCompilation+<>c__DisplayClass46_0.<ComputeDependencyNodeDependencies>g__CompilationThread|3(System.Object)
  at System.Threading.Thread.StartCallback()

Return code:      1
Raw output file:      C:\h\w\B4FF099A\w\B91909B4\uploads\Reports\Interop.PInvoke\Generics\GenericsTest\GenericsTest.output.txt
Raw output:
BEGIN EXECUTION
GenericsNative.dll
GenericsTest.dll
TestLibrary.dll
       3 file(s) copied.
7:35:40.17
Response file: C:\h\w\B4FF099A\w\B91909B4\e\Interop\PInvoke\Generics\GenericsTest\GenericsNative.dll.rsp
C:\h\w\B4FF099A\w\B91909B4\e\Interop\PInvoke\Generics\GenericsTest\IL-CG2\GenericsNative.dll
-o:C:\h\w\B4FF099A\w\B91909B4\e\Interop\PInvoke\Generics\GenericsTest\GenericsNative.dll
--targetarch:arm
--targetos:windows
--verify-type-and-field-layout
--method-layout:random
-r:C:\h\w\B4FF099A\p\System.*.dll
-r:C:\h\w\B4FF099A\p\Microsoft.*.dll
-r:C:\h\w\B4FF099A\p\mscorlib.dll
-r:C:\h\w\B4FF099A\p\netstandard.dll
-O
" "dotnet" "C:\h\w\B4FF099A\p\crossgen2\crossgen2.dll" @"C:\h\w\B4FF099A\w\B91909B4\e\Interop\PInvoke\Generics\GenericsTest\GenericsNative.dll.rsp"   -r:C:\h\w\B4FF099A\w\B91909B4\e\Interop\PInvoke\Generics\GenericsTest\IL-CG2\*.dll"
No input files are loadable
7:35:40.59
7:35:40.61
Response file: C:\h\w\B4FF099A\w\B91909B4\e\Interop\PInvoke\Generics\GenericsTest\GenericsTest.dll.rsp
C:\h\w\B4FF099A\w\B91909B4\e\Interop\PInvoke\Generics\GenericsTest\IL-CG2\GenericsTest.dll
-o:C:\h\w\B4FF099A\w\B91909B4\e\Interop\PInvoke\Generics\GenericsTest\GenericsTest.dll
--targetarch:arm
--targetos:windows
--verify-type-and-field-layout
--method-layout:random
-r:C:\h\w\B4FF099A\p\System.*.dll
-r:C:\h\w\B4FF099A\p\Microsoft.*.dll
-r:C:\h\w\B4FF099A\p\mscorlib.dll
-r:C:\h\w\B4FF099A\p\netstandard.dll
-O
" "dotnet" "C:\h\w\B4FF099A\p\crossgen2\crossgen2.dll" @"C:\h\w\B4FF099A\w\B91909B4\e\Interop\PInvoke\Generics\GenericsTest\GenericsTest.dll.rsp"   -r:C:\h\w\B4FF099A\w\B91909B4\e\Interop\PInvoke\Generics\GenericsTest\IL-CG2\*.dll"
7:35:48.28
Crossgen2 failed with exitcode - -1073741819
Test Harness Exitcode is : 1
To run the test:
> set CORE_ROOT=C:\h\w\B4FF099A\p
> C:\h\w\B4FF099A\w\B91909B4\e\Interop\PInvoke\Generics\GenericsTest\GenericsTest.cmd
Expected: True
Actual:   False

Stack trace:

  at Interop_PInvoke._Generics_GenericsTest_GenericsTest_._Generics_GenericsTest_GenericsTest_cmd()
  at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
  at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

@v-wenyuxu
Copy link
Author

Failed again in: runtime-coreclr outerloop 20230302.2

Failed test:

R2R-CG2 windows arm Checked @ Windows.11.Arm64.Open

- JIT/Methodical/ELEMENT_TYPE_IU/i_array_merge_Target_32BIT_il_d/i_array_merge_Target_32BIT.cmd

Error message:

Fatal error. Internal CLR error. (0x80131506)
at System.GC.AllocateNewArray(IntPtr, Int32, GC_ALLOC_FLAGS)
at System.Text.StringBuilder.ExpandByABlock(Int32)
at System.Text.StringBuilder.Append(Char, Int32)
at System.Text.StringBuilder.Append(Char)
at System.Diagnostics.StackTrace.ToString(TraceFormat, System.Text.StringBuilder)
at System.Diagnostics.StackTrace.ToString(TraceFormat)
at System.Exception.get_StackTrace()
at System.Exception.ToString()
at Internal.JitInterface.CorInfoImpl.AllocException(System.Exception)
at Internal.JitInterface.CorInfoImpl._resolveToken(IntPtr, IntPtr*, Internal.JitInterface.CORINFO_RESOLVED_TOKEN*)
at Internal.JitInterface.CorInfoImpl.JitCompileMethod(IntPtr ByRef, IntPtr, IntPtr, IntPtr, Internal.JitInterface.CORINFO_METHOD_INFO ByRef, UInt32, IntPtr ByRef, UInt32 ByRef)
at Internal.JitInterface.CorInfoImpl.CompileMethodInternal(ILCompiler.DependencyAnalysis.IMethodNode, Internal.IL.MethodIL)
at Internal.JitInterface.CorInfoImpl.CompileMethod(ILCompiler.DependencyAnalysis.ReadyToRun.MethodWithGCInfo, ILCompiler.Logger)
at ILCompiler.ReadyToRunCodegenCompilation+<>c__DisplayClass46_0.<ComputeDependencyNodeDependencies>g__CompileOneMethod|5(ILCompiler.DependencyAnalysisFramework.DependencyNodeCore`1<ILCompiler.DependencyAnalysis.NodeFactory>, Int32)
at ILCompiler.ReadyToRunCodegenCompilation+<>c__DisplayClass46_0.<ComputeDependencyNodeDependencies>g__CompileOnThread|4(Int32)
at ILCompiler.ReadyToRunCodegenCompilation+<>c__DisplayClass46_0.<ComputeDependencyNodeDependencies>g__CompilationThread|3(System.Object)
at System.Threading.Thread.StartCallback()

Return code:      1
Raw output file:      C:hwA83E08F3w9BAE084AuploadsELEMENT_TYPE_IUi_array_merge_Target_32BIT_il_doutput.txt
Raw output:
BEGIN EXECUTION
i_array_merge_Target_32BIT.dll
TestLibrary.dll
2 file(s) copied.
19:55:57.18
Response file: C:hwA83E08F3w9BAE084AeJITMethodicalELEMENT_TYPE_IUi_array_merge_Target_32BIT_il_di_array_merge_Target_32BIT.dll.rsp
C:hwA83E08F3w9BAE084AeJITMethodicalELEMENT_TYPE_IUi_array_merge_Target_32BIT_il_dIL-CG2i_array_merge_Target_32BIT.dll
-o:C:hwA83E08F3w9BAE084AeJITMethodicalELEMENT_TYPE_IUi_array_merge_Target_32BIT_il_di_array_merge_Target_32BIT.dll
--targetarch:arm
--targetos:windows
--verify-type-and-field-layout
--method-layout:random
-r:C:hwA83E08F3pSystem..dll
-r:C:hwA83E08F3pMicrosoft..dll
-r:C:hwA83E08F3pmscorlib.dll
-r:C:hwA83E08F3p
etstandard.dll
-O
" "dotnet" "C:hwA83E08F3pcrossgen2crossgen2.dll" @"C:hwA83E08F3w9BAE084AeJITMethodicalELEMENT_TYPE_IUi_array_merge_Target_32BIT_il_di_array_merge_Target_32BIT.dll.rsp"   -r:C:hwA83E08F3w9BAE084AeJITMethodicalMethodical_d1IL-CG2*.dll  -r:C:hwA83E08F3w9BAE084AeJITMethodicalELEMENT_TYPE_IUi_array_merge_Target_32BIT_il_dIL-CG2*.dll"
Emitting R2R PE file: C:hwA83E08F3w9BAE084AeJITMethodicalELEMENT_TYPE_IUi_array_merge_Target_32BIT_il_di_array_merge_Target_32BIT.dll
" "dotnet" "C:hwA83E08F3p
2rdump
2rdump.dll" --header --sc --in C:hwA83E08F3w9BAE084AeJITMethodicalELEMENT_TYPE_IUi_array_merge_Target_32BIT_il_di_array_merge_Target_32BIT.dll --out C:hwA83E08F3w9BAE084AeJITMethodicalELEMENT_TYPE_IUi_array_merge_Target_32BIT_il_di_array_merge_Target_32BIT.dll.r2rdump --val"
19:55:59.37
19:55:59.38
Response file: C:hwA83E08F3w9BAE084AeJITMethodicalELEMENT_TYPE_IUi_array_merge_Target_32BIT_il_dTestLibrary.dll.rsp
C:hwA83E08F3w9BAE084AeJITMethodicalELEMENT_TYPE_IUi_array_merge_Target_32BIT_il_dIL-CG2TestLibrary.dll
-o:C:hwA83E08F3w9BAE084AeJITMethodicalELEMENT_TYPE_IUi_array_merge_Target_32BIT_il_dTestLibrary.dll
--targetarch:arm
--targetos:windows
--verify-type-and-field-layout
--method-layout:random
-r:C:hwA83E08F3pSystem..dll
-r:C:hwA83E08F3pMicrosoft..dll
-r:C:hwA83E08F3pmscorlib.dll
-r:C:hwA83E08F3p
etstandard.dll
-O
" "dotnet" "C:hwA83E08F3pcrossgen2crossgen2.dll" @"C:hwA83E08F3w9BAE084AeJITMethodicalELEMENT_TYPE_IUi_array_merge_Target_32BIT_il_dTestLibrary.dll.rsp"   -r:C:hwA83E08F3w9BAE084AeJITMet


Stack trace
   at Xunit.Assert.True(Nullable`1 condition, String userMessage) in /_/src/xunit.assert/Asserts/BooleanAsserts.cs:line 132
   at TestLibrary.OutOfProcessTest.RunOutOfProcessTest(String basePath, String assemblyPath)
   at Program.<<Main>$>g__TestExecutor8|0_7(StreamWriter tempLogSw, StreamWriter statsCsvSw, <>c__DisplayClass0_0&)

@v-wenyuxu
Copy link
Author

Failed again in: runtime-coreclr r2r-extra 20230311.1

Failed tests:

R2R-CG2 windows arm64 Checked gcstress0xc @ Windows.11.Arm64.Open
    - Loader\\classloader\\generics\\Instantiation\\Negative\\param07\\param07.cmd

Error message:

Fatal error. Internal CLR error. (0x80131506)
  at System.GC.AllocateNewArray(IntPtr, Int32, GC_ALLOC_FLAGS)
  at System.Text.StringBuilder.ExpandByABlock(Int32)
  at System.Text.StringBuilder.AppendWithExpansion(Char ByRef, Int32)
  at System.Text.StringBuilder.AppendFormatHelper(System.IFormatProvider, System.String, System.ReadOnlySpan`1<System.Object>)
  at System.Diagnostics.StackTrace.ToString(TraceFormat, System.Text.StringBuilder)
  at System.Diagnostics.StackTrace.ToString(TraceFormat)
  at System.Exception.get_StackTrace()
  at System.Exception.ToString()
  at Internal.JitInterface.CorInfoImpl.AllocException(System.Exception)
  at Internal.JitInterface.CorInfoImpl._getCallInfo(IntPtr, IntPtr*, Internal.JitInterface.CORINFO_RESOLVED_TOKEN*, Internal.JitInterface.CORINFO_RESOLVED_TOKEN*, Internal.JitInterface.CORINFO_METHOD_STRUCT_*, Internal.JitInterface.CORINFO_CALLINFO_FLAGS, Internal.JitInterface.CORINFO_CALL_INFO*)
  at Internal.JitInterface.CorInfoImpl.JitCompileMethod(IntPtr ByRef, IntPtr, IntPtr, IntPtr, Internal.JitInterface.CORINFO_METHOD_INFO ByRef, UInt32, IntPtr ByRef, UInt32 ByRef)
  at Internal.JitInterface.CorInfoImpl.JitCompileMethod(IntPtr ByRef, IntPtr, IntPtr, IntPtr, Internal.JitInterface.CORINFO_METHOD_INFO ByRef, UInt32, IntPtr ByRef, UInt32 ByRef)
  at Internal.JitInterface.CorInfoImpl.CompileMethodInternal(ILCompiler.DependencyAnalysis.IMethodNode, Internal.IL.MethodIL)
  at Internal.JitInterface.CorInfoImpl.CompileMethod(ILCompiler.DependencyAnalysis.ReadyToRun.MethodWithGCInfo, ILCompiler.Logger)
  at ILCompiler.ReadyToRunCodegenCompilation+<>c__DisplayClass46_0.<ComputeDependencyNodeDependencies>g__CompileOneMethod|5(ILCompiler.DependencyAnalysisFramework.DependencyNodeCore`1<ILCompiler.DependencyAnalysis.NodeFactory>, Int32)
  at ILCompiler.ReadyToRunCodegenCompilation+<>c__DisplayClass46_0.<ComputeDependencyNodeDependencies>g__CompileOnThread|4(Int32)
  at ILCompiler.ReadyToRunCodegenCompilation+<>c__DisplayClass46_0.<ComputeDependencyNodeDependencies>g__CompilationThread|3(System.Object)

Return code:      1
Raw output file:      C:\h\w\97C00839\w\9B08091B\uploads\Reports\Loader.classloader\generics\Instantiation\Negative\param07\param07.output.txt
Raw output:
BEGIN EXECUTION
param07.dll
       1 file(s) copied.
3:59:06.97
Response file: C:\h\w\97C00839\w\9B08091B\e\Loader\classloader\generics\Instantiation\Negative\param07\param07.dll.rsp
C:\h\w\97C00839\w\9B08091B\e\Loader\classloader\generics\Instantiation\Negative\param07\IL-CG2\param07.dll
-o:C:\h\w\97C00839\w\9B08091B\e\Loader\classloader\generics\Instantiation\Negative\param07\param07.dll
--targetarch:arm64
--targetos:windows
--verify-type-and-field-layout
--method-layout:random
-r:C:\h\w\97C00839\p\System.*.dll
-r:C:\h\w\97C00839\p\Microsoft.*.dll
-r:C:\h\w\97C00839\p\mscorlib.dll
-r:C:\h\w\97C00839\p\netstandard.dll
-O
" "dotnet" "C:\h\w\97C00839\p\crossgen2\crossgen2.dll" @"C:\h\w\97C00839\w\9B08091B\e\Loader\classloader\generics\Instantiation\Negative\param07\param07.dll.rsp"   -r:C:\h\w\97C00839\w\9B08091B\e\Loader\classloader\generics\Instantiation\Negative\param07\IL-CG2\*.dll"
3:59:15.20
Crossgen2 failed with exitcode - -1073741819
Test failed. Trying to see if dump file was created in C:\cores since 3/12/2023 3:59:06 AM
Processing C:\cores\dotnet.exe.4492.dmp
Unable to find cdb.exe at C:\Program Files (x86)\Windows Kits\10\Debuggers\arm64\cdb.exe
Test Harness Exitcode is : 1
To run the test:
> set CORE_ROOT=C:\h\w\97C00839\p
> C:\h\w\97C00839\w\9B08091B\e\Loader\classloader\generics\Instantiation\Negative\param07\param07.cmd
Expected: True
Actual:   False

Stack trace:

  at Loader_classloader._generics_Instantiation_Negative_param07_param07_._generics_Instantiation_Negative_param07_param07_cmd()
  at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
  at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

@jkotas
Copy link
Member

jkotas commented Mar 13, 2023

Fatal error. Internal CLR error. (0x80131506)
  at System.GC.AllocateNewArray(IntPtr, Int32, GC_ALLOC_FLAGS)

The crash is caused by null arrayTypeHandle passed into GCInterface::AllocateNewArray. This is caused by known race condition that was fixed by #81947. We need to wait for LGK SDK to be upgraded to .NET 8 Preview 2 to pick up this fix.

@jkotas jkotas added the blocked Issue/PR is blocked on something - see comments label Mar 13, 2023
@markples
Copy link
Member

Closing alongside #81109 as SDK has been updated to preview.3

@markples markples removed the blocked Issue/PR is blocked on something - see comments label Apr 17, 2023
@ghost ghost locked as resolved and limited conversation to collaborators May 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-arm64 area-GC-coreclr blocking-outerloop Blocking the 'runtime-coreclr outerloop' and 'runtime-libraries-coreclr outerloop' runs os-windows
Projects
None yet
Development

No branches or pull requests

6 participants