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: Fatal error. Internal CLR error at System.GC.AllocateNewArray #83407

Closed
JulieLeeMSFT opened this issue Mar 14, 2023 · 4 comments
Closed
Labels
area-Interop-coreclr blocking-outerloop Blocking the 'runtime-coreclr outerloop' and 'runtime-libraries-coreclr outerloop' runs

Comments

@JulieLeeMSFT
Copy link
Member

Run: runtime-coreclr outerloop 20230312.3

Failed test:

R2R-CG2 windows arm Checked no_tiered_compilation @ Windows.11.Arm64.Open
-Interop\\PInvoke\\CriticalHandles\\StructTest\\StructTest\\StructTest.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\A8B5093A\w\B0BC097D\uploads\Reports\Interop.PInvoke\CriticalHandles\StructTest\StructTest\StructTest.output.txt
Raw output:
BEGIN EXECUTION
CriticalHandlesNative.dll
StructTest.dll
TestLibrary.dll
3 file(s) copied.
2:43:41.13
Response file: C:\h\w\A8B5093A\w\B0BC097D\e\Interop\PInvoke\CriticalHandles\StructTest\StructTest\CriticalHandlesNative.dll.rsp
C:\h\w\A8B5093A\w\B0BC097D\e\Interop\PInvoke\CriticalHandles\StructTest\StructTest\IL-CG2\CriticalHandlesNative.dll
-o:C:\h\w\A8B5093A\w\B0BC097D\e\Interop\PInvoke\CriticalHandles\StructTest\StructTest\CriticalHandlesNative.dll
--targetarch:arm
--targetos:windows
--verify-type-and-field-layout
--method-layout:random
-r:C:\h\w\A8B5093A\p\System..dll
-r:C:\h\w\A8B5093A\p\Microsoft..dll
-r:C:\h\w\A8B5093A\p\mscorlib.dll
-r:C:\h\w\A8B5093A\p\netstandard.dll
-O
" "dotnet" "C:\h\w\A8B5093A\p\crossgen2\crossgen2.dll" @"C:\h\w\A8B5093A\w\B0BC097D\e\Interop\PInvoke\CriticalHandles\StructTest\StructTest\CriticalHandlesNative.dll.rsp"   -r:C:\h\w\A8B5093A\w\B0BC097D\e\Interop\PInvoke\CriticalHandles\StructTest\StructTest\IL-CG2*.dll"
No input files are loadable
2:43:41.55
2:43:41.55
Response file: C:\h\w\A8B5093A\w\B0BC097D\e\Interop\PInvoke\CriticalHandles\StructTest\StructTest\StructTest.dll.rsp
C:\h\w\A8B5093A\w\B0BC097D\e\Interop\PInvoke\CriticalHandles\StructTest\StructTest\IL-CG2\StructTest.dll
-o:C:\h\w\A8B5093A\w\B0BC097D\e\Interop\PInvoke\CriticalHandles\StructTest\StructTest\StructTest.dll
--targetarch:arm
--targetos:windows
--verify-type-and-field-layout
--method-layout:random
-r:C:\h\w\A8B5093A\p\System..dll
-r:C:\h\w\A8B5093A\p\Microsoft..dll
-r:C:\h\w\A8B5093A\p\mscorlib.dll
-r:C:\h\w\A8B5093A\p\netstandard.dll
-O
" "dotnet" "C:\h\w\A8B5093A\p\crossgen2\crossgen2.dll" @"C:\h\w\A8B5093A\w\B0BC097D\e\Interop\PInvoke\CriticalHandles\StructTest\StructTest\StructTest.dll.rsp"   -r:C:\h\w\A8B5093A\w\B0BC097D\e\Interop\PInvoke\CriticalHandles\StructTest\StructTest\IL-CG2*.dll"
Emitting R2R PE file: C:\h\w\A8B5093A\w\B0BC097D\e\Interop\PInvoke\CriticalHandles\StructTest\StructTest\StructTest.dll
" "dotnet" "C:\h\w\A8B5093A\p\r2rdump\r2rdump.dll" --header --sc --in C:\h\w\A8B5093A\w\B0BC097D\e\Interop\PInvoke\CriticalHandles\StructTe

Stack trace:

   at Interop_PInvoke._CriticalHandles_StructTest_StructTest_StructTest_._CriticalHandles_StructTest_StructTest_StructTest_cmd()
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
@JulieLeeMSFT JulieLeeMSFT added area-Interop-coreclr blocking-outerloop Blocking the 'runtime-coreclr outerloop' and 'runtime-libraries-coreclr outerloop' runs labels Mar 14, 2023
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Mar 14, 2023
@JulieLeeMSFT
Copy link
Member Author

cc @jakobbotsch if it is related to our struct work.

@JulieLeeMSFT
Copy link
Member Author

JulieLeeMSFT commented Mar 14, 2023

Also failed in run 20230311.4.

Failed test:

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

@JulieLeeMSFT
Copy link
Member Author

JulieLeeMSFT commented Mar 14, 2023

Failed in run 20230311.3.

Failed test:

R2R-CG2 windows arm Checked no_tiered_compilation @ Windows.11.Arm64.Open
- Interop\\COM\\NETClients\\ComDisabled\\NETClientComDisabled\\NETClientComDisabled.cmd

R2R-CG2 windows arm Checked no_tiered_compilation @ Windows.11.Arm64.Open
- JIT\\Regression\\JitBlue\\GitHub_21625\\GitHub_21625\\GitHub_21625.cmd

Failed in run: 20230311.2

Failed test:

R2R-CG2 windows arm64 Checked no_tiered_compilation @ Windows.11.Arm64.Open
- Loader\\classloader\\generics\\Layout\\General\\Base02d_seq_ser\\Base02d_seq_ser.cmd

Failed in run: 20230310.8

Failed test:

R2R-CG2 windows arm Checked no_tiered_compilation @ Windows.11.Arm64.Open
- profiler\\elt\\slowpatheltenter\\slowpatheltenter.cmd

Failed in run: 20230310.3
Failed test:

R2R-CG2 windows arm Checked no_tiered_compilation @ Windows.11.Arm64.Open
- Interop\\DisabledRuntimeMarshalling\\DisabledRuntimeMarshalling_Disabled_NativeTypeInAssembly_ro\\DisabledRuntimeMarshalling_Disabled_NativeTypeInAssembly_ro.cmd

@EgorBo
Copy link
Member

EgorBo commented Mar 14, 2023

Duplicates #81109 ?

@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Mar 14, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Apr 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Interop-coreclr blocking-outerloop Blocking the 'runtime-coreclr outerloop' and 'runtime-libraries-coreclr outerloop' runs
Projects
None yet
Development

No branches or pull requests

2 participants