-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Remove spurious assertion check causing .NET Core crashes #89986
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
Conversation
I started this investigation based on heads-up from Rich Lander who hit the issue in a PR run. Thanks to help from Jan Vorlicek I have been able to repro the issue and I discussed it with Tanner Gooding who proposed this fix - removing the superfluous assertion check duplicating an upfront check in the method NarrowUtf16ToAscii before calling into the intrinsified version. I sincerely admit I'm not an expert in the field of instruction set extensions and I have driven this investigation mostly because David Wrighton is OOF on parental leave for the entire month of August so I'm trying to make sure we ship .NET 8 in the best possible quality; I'll be more than happy for any suggestions for improvements or any other feedback. Thanks Tomas
Tagging subscribers to this area: @dotnet/area-system-text-encoding Issue DetailsI started this investigation based on heads-up from Rich Lander who hit the issue in a PR run. Thanks to help from Jan Vorlicek I have been able to repro the issue and I discussed it with Tanner Gooding who proposed this fix - removing the superfluous assertion check duplicating an upfront check in the method NarrowUtf16ToAscii before calling into the intrinsified version. I sincerely admit I'm not an expert in the field of instruction set extensions and I have driven this investigation mostly because David Wrighton is OOF on parental leave for the entire month of August so I'm trying to make sure we ship .NET 8 in the best possible quality; I'll be more than happy for any suggestions for improvements or any other feedback. Thanks Tomas /cc @dotnet/crossgen-contrib @davidwrighton @richlander
|
@@ -2142,7 +2142,6 @@ private static unsafe nuint NarrowUtf16ToAscii_Intrinsified_256(char* pUtf16Buff | |||
// jumps as much as possible in the optimistic case of "all ASCII". If we see non-ASCII | |||
// data, we jump out of the hot paths to targets at the end of the method. | |||
|
|||
Debug.Assert(Vector256.IsHardwareAccelerated, "Vector256 is required."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are similar asserts in multiple other places, e.g. here:
Debug.Assert(Vector512.IsHardwareAccelerated, "Vector512 is required."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm curious about this as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, they all theoretically have the same problem.
We "probably" want to eventually make these annotated as [CompExactlyDependsOn(typeof(Vector512))]
(or similar), but the analyzer doesn't support the Vector128/256/512.IsHardwareAccelerated
pattern today and that's significantly more involved.
Since the current code isn't "broken", it will just have worse perf than expected until these helpers get rejitted as well; the simpler fix of removing the assert is likely better for right now.
The general issue is that NarrowUtf16ToAscii
was compiled under R2R and targeted V128. It hit 30 invocations, was rejitted, and now targets V256. However, NarrowToUtf16_Intrinsified_256
will now be hitting its first invocation. Since its not marked as compExactlyDependsOn
it runs its R2R code and hits the assert.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think, .NET Runtime currently have some bug inside morph.cpp. May be it's the same as previous which was fixed some years ago by dotnet/coreclr#15814
Could anybody from .NET team check my guess?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could anybody view changes inside my branch bugfix/trying-to-fix-bug-with-build? I think it fix problem with current build (currently I check it). If so, I can create PR or somebody from .NET team can cherry pick my commit
FYI @ivdiazsa
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Maximys - I believe we intentionally removed the -O Crossgen2 option as it should be implied by assembly-level attributes set by the Roslyn compiler. Can you please be more specific as to what exactly is failing for you?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@trylek , I have next result of build.cmd run without -O Crossgen2:
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : Process terminated. Assertion failed. [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCor
e.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : Vector256 is required. [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.s
fxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at System.Text.Ascii.NarrowUtf16ToAscii(Char* pUtf16Buffer, Byte* pAsciiBuffer, UIntPtr elementCount) [C:\r
untime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at System.Text.Unicode.Utf8Utility.TranscodeToUtf8(Char* pInputBuffer, Int32 inputLength, Byte* pOutputBuff
er, Int32 outputBytesRemaining, Char*& pInputBufferRemaining, Byte*& pOutputBufferRemaining) [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at System.Text.Unicode.Utf8.FromUtf16(ReadOnlySpan`1 source, Span`1 destination, Int32& charsRead, Int32& b
ytesWritten, Boolean replaceInvalidSequences, Boolean isFinalBlock) [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.PrintFromUtf16(ReadOnlySpan`1 utf16, Byte* buffer, UIntPtr bufferSize,
UIntPtr* pRequiredBufferSize) in C:\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs:line 1911 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.printClassName(CORINFO_CLASS_STRUCT_* cls, Byte* buffer, UIntPtr buffe
rSize, UIntPtr* pRequiredBufferSize) in C:\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs:line 1975 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl._printClassName(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_
STRUCT_* cls, Byte* buffer, UIntPtr bufferSize, UIntPtr* pRequiredBufferSize) in C:\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl_generated.cs:line 547 [C:\runtime\src\installer\pkg\sfx\Microsoft.NE
TCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.JitCompileMethod(IntPtr& exception, IntPtr jit, IntPtr thisHandle, Int
Ptr callbacks, CORINFO_METHOD_INFO& info, UInt32 flags, IntPtr& nativeEntry, UInt32& codeSize) [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.JitCompileMethod(IntPtr& exception, IntPtr jit, IntPtr thisHandle, Int
Ptr callbacks, CORINFO_METHOD_INFO& info, UInt32 flags, IntPtr& nativeEntry, UInt32& codeSize) [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.CompileMethodInternal(IMethodNode methodCodeNodeNeedingCode, MethodIL
methodIL) in C:\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs:line 352 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.CompileMethod(MethodWithGCInfo methodCodeNodeNeedingCode, Logger logge
r) in C:\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\JitInterface\CorInfoImpl.ReadyToRun.cs:line 801 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at ILCompiler.ReadyToRunCodegenCompilation.<>c__DisplayClass50_0.<ComputeDependencyNodeDependencies>g__Comp
ileOneMethod|5(DependencyNodeCore`1 dependency, Int32 compileThreadId) in C:\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\ReadyToRunCodegenCompilation.cs:line 899 [C:\runtime\src\installer\pkg\s
fx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at ILCompiler.ReadyToRunCodegenCompilation.<>c__DisplayClass50_0.<ComputeDependencyNodeDependencies>g__Comp
ileOnThread|4(Int32 compilationThreadId) in C:\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\ReadyToRunCodegenCompilation.cs:line 833 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Micro
soft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at ILCompiler.ReadyToRunCodegenCompilation.<>c__DisplayClass50_0.<ComputeDependencyNodeDependencies>g__Comp
ilationThread|3(Object objThreadId) in C:\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\ReadyToRunCodegenCompilation.cs:line 811 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.
NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at System.Threading.Thread.StartCallback() [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsof
t.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : Process terminated. Assertion failed. [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCor
e.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : Vector256 is required. [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.s
fxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at System.Text.Ascii.NarrowUtf16ToAscii(Char* pUtf16Buffer, Byte* pAsciiBuffer, UIntPtr elementCount) [C:\r
untime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at System.Text.Unicode.Utf8Utility.TranscodeToUtf8(Char* pInputBuffer, Int32 inputLength, Byte* pOutputBuff
er, Int32 outputBytesRemaining, Char*& pInputBufferRemaining, Byte*& pOutputBufferRemaining) [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at System.Text.Unicode.Utf8.FromUtf16(ReadOnlySpan`1 source, Span`1 destination, Int32& charsRead, Int32& b
ytesWritten, Boolean replaceInvalidSequences, Boolean isFinalBlock) [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.PrintFromUtf16(ReadOnlySpan`1 utf16, Byte* buffer, UIntPtr bufferSize,
UIntPtr* pRequiredBufferSize) in C:\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs:line 1911 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.printClassName(CORINFO_CLASS_STRUCT_* cls, Byte* buffer, UIntPtr buffe
rSize, UIntPtr* pRequiredBufferSize) in C:\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs:line 1975 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl._printClassName(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_
STRUCT_* cls, Byte* buffer, UIntPtr bufferSize, UIntPtr* pRequiredBufferSize) in C:\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl_generated.cs:line 547 [C:\runtime\src\installer\pkg\sfx\Microsoft.NE
TCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.JitCompileMethod(IntPtr& exception, IntPtr jit, IntPtr thisHandle, Int
Ptr callbacks, CORINFO_METHOD_INFO& info, UInt32 flags, IntPtr& nativeEntry, UInt32& codeSize) [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.JitCompileMethod(IntPtr& exception, IntPtr jit, IntPtr thisHandle, Int
Ptr callbacks, CORINFO_METHOD_INFO& info, UInt32 flags, IntPtr& nativeEntry, UInt32& codeSize) [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.CompileMethodInternal(IMethodNode methodCodeNodeNeedingCode, MethodIL
methodIL) in C:\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs:line 352 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.CompileMethod(MethodWithGCInfo methodCodeNodeNeedingCode, Logger logge
r) in C:\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\JitInterface\CorInfoImpl.ReadyToRun.cs:line 801 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at ILCompiler.ReadyToRunCodegenCompilation.<>c__DisplayClass50_0.<ComputeDependencyNodeDependencies>g__Comp
ileOneMethod|5(DependencyNodeCore`1 dependency, Int32 compileThreadId) in C:\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\ReadyToRunCodegenCompilation.cs:line 899 [C:\runtime\src\installer\pkg\s
fx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at ILCompiler.ReadyToRunCodegenCompilation.<>c__DisplayClass50_0.<ComputeDependencyNodeDependencies>g__Comp
ileOnThread|4(Int32 compilationThreadId) in C:\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\ReadyToRunCodegenCompilation.cs:line 833 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Micro
soft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at ILCompiler.ReadyToRunCodegenCompilation.<>c__DisplayClass50_0.<ComputeDependencyNodeDependencies>g__Comp
ileMethodList|2(IEnumerable`1 methodList) in C:\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\ReadyToRunCodegenCompilation.cs:line 793 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Micr
osoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at ILCompiler.ReadyToRunCodegenCompilation.ComputeDependencyNodeDependencies(List`1 obj) in C:\runtime\src\
coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\ReadyToRunCodegenCompilation.cs:line 717 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at ILCompiler.DependencyAnalysisFramework.DependencyAnalyzer`2.ComputeDependencies(List`1 deferredStaticDep
endencies) in C:\runtime\src\coreclr\tools\aot\ILCompiler.DependencyAnalysisFramework\DependencyAnalyzer.cs:line 176 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj
]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at ILCompiler.DependencyAnalysisFramework.DependencyAnalyzer`2.ComputeMarkedNodes() in C:\runtime\src\corec
lr\tools\aot\ILCompiler.DependencyAnalysisFramework\DependencyAnalyzer.cs:line 316 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at ILCompiler.ReadyToRunCodegenCompilation.Compile(String outputFile) in C:\runtime\src\coreclr\tools\aot\I
LCompiler.ReadyToRun\Compiler\ReadyToRunCodegenCompilation.cs:line 387 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at ILCompiler.Program.RunSingleCompilation(Dictionary`2 inFilePaths, InstructionSetSupport instructionSetSu
pport, String compositeRootPath, Dictionary`2 unrootedInputFilePaths, HashSet`1 versionBubbleModulesHash, ReadyToRunCompilerContext typeSystemContext, Logger logger) in C:\runtime\src\coreclr\tools\aot\crossgen
2\Program.cs:line 637 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at ILCompiler.Program.Run() in C:\runtime\src\coreclr\tools\aot\crossgen2\Program.cs:line 302 [C:\runtime\s
rc\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at ILCompiler.Crossgen2RootCommand.<>c__DisplayClass205_0.<.ctor>b__0(ParseResult result) in C:\runtime\src
\coreclr\tools\aot\crossgen2\Crossgen2RootCommand.cs:line 261 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at System.CommandLine.Invocation.InvocationPipeline.Invoke(ParseResult parseResult) [C:\runtime\src\install
er\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at ILCompiler.Program.Main(String[] args) in C:\runtime\src\coreclr\tools\aot\crossgen2\Program.cs:line 914
[C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : Process terminated. Assertion failed. [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCor
e.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : Vector256 is required. [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.s
fxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at System.Text.Ascii.NarrowUtf16ToAscii(Char* pUtf16Buffer, Byte* pAsciiBuffer, UIntPtr elementCount) [C:\r
untime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at System.Text.Unicode.Utf8Utility.TranscodeToUtf8(Char* pInputBuffer, Int32 inputLength, Byte* pOutputBuff
er, Int32 outputBytesRemaining, Char*& pInputBufferRemaining, Byte*& pOutputBufferRemaining) [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at System.Text.Unicode.Utf8.FromUtf16(ReadOnlySpan`1 source, Span`1 destination, Int32& charsRead, Int32& b
ytesWritten, Boolean replaceInvalidSequences, Boolean isFinalBlock) [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.PrintFromUtf16(ReadOnlySpan`1 utf16, Byte* buffer, UIntPtr bufferSize,
UIntPtr* pRequiredBufferSize) in C:\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs:line 1911 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.printMethodName(CORINFO_METHOD_STRUCT_* ftn, Byte* buffer, UIntPtr buf
ferSize, UIntPtr* requiredBufferSize) in C:\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs:line 3279 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl._printMethodName(IntPtr thisHandle, IntPtr* ppException, CORINFO_METHO
D_STRUCT_* ftn, Byte* buffer, UIntPtr bufferSize, UIntPtr* pRequiredBufferSize) in C:\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl_generated.cs:line 1690 [C:\runtime\src\installer\pkg\sfx\Microsoft
.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.JitCompileMethod(IntPtr& exception, IntPtr jit, IntPtr thisHandle, Int
Ptr callbacks, CORINFO_METHOD_INFO& info, UInt32 flags, IntPtr& nativeEntry, UInt32& codeSize) [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.JitCompileMethod(IntPtr& exception, IntPtr jit, IntPtr thisHandle, Int
Ptr callbacks, CORINFO_METHOD_INFO& info, UInt32 flags, IntPtr& nativeEntry, UInt32& codeSize) [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.CompileMethodInternal(IMethodNode methodCodeNodeNeedingCode, MethodIL
methodIL) in C:\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs:line 352 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.CompileMethod(MethodWithGCInfo methodCodeNodeNeedingCode, Logger logge
r) in C:\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\JitInterface\CorInfoImpl.ReadyToRun.cs:line 801 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at ILCompiler.ReadyToRunCodegenCompilation.<>c__DisplayClass50_0.<ComputeDependencyNodeDependencies>g__Comp
ileOneMethod|5(DependencyNodeCore`1 dependency, Int32 compileThreadId) in C:\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\ReadyToRunCodegenCompilation.cs:line 899 [C:\runtime\src\installer\pkg\s
fx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at ILCompiler.ReadyToRunCodegenCompilation.<>c__DisplayClass50_0.<ComputeDependencyNodeDependencies>g__Comp
ileOnThread|4(Int32 compilationThreadId) in C:\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\ReadyToRunCodegenCompilation.cs:line 833 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Micro
soft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at ILCompiler.ReadyToRunCodegenCompilation.<>c__DisplayClass50_0.<ComputeDependencyNodeDependencies>g__Comp
ilationThread|3(Object objThreadId) in C:\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\ReadyToRunCodegenCompilation.cs:line 811 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.
NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at System.Threading.Thread.StartCallback() [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsof
t.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : Process terminated. Assertion failed. [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCor
e.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : Vector256 is required. [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.s
fxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at System.Text.Ascii.NarrowUtf16ToAscii(Char* pUtf16Buffer, Byte* pAsciiBuffer, UIntPtr elementCount) [C:\r
untime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at System.Text.Unicode.Utf8Utility.TranscodeToUtf8(Char* pInputBuffer, Int32 inputLength, Byte* pOutputBuff
er, Int32 outputBytesRemaining, Char*& pInputBufferRemaining, Byte*& pOutputBufferRemaining) [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at System.Text.Unicode.Utf8.FromUtf16(ReadOnlySpan`1 source, Span`1 destination, Int32& charsRead, Int32& b
ytesWritten, Boolean replaceInvalidSequences, Boolean isFinalBlock) [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.PrintFromUtf16(ReadOnlySpan`1 utf16, Byte* buffer, UIntPtr bufferSize,
UIntPtr* pRequiredBufferSize) in C:\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs:line 1911 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.printClassName(CORINFO_CLASS_STRUCT_* cls, Byte* buffer, UIntPtr buffe
rSize, UIntPtr* pRequiredBufferSize) in C:\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs:line 1975 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl._printClassName(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_
STRUCT_* cls, Byte* buffer, UIntPtr bufferSize, UIntPtr* pRequiredBufferSize) in C:\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl_generated.cs:line 547 [C:\runtime\src\installer\pkg\sfx\Microsoft.NE
TCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.JitCompileMethod(IntPtr& exception, IntPtr jit, IntPtr thisHandle, Int
Ptr callbacks, CORINFO_METHOD_INFO& info, UInt32 flags, IntPtr& nativeEntry, UInt32& codeSize) [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.JitCompileMethod(IntPtr& exception, IntPtr jit, IntPtr thisHandle, Int
Ptr callbacks, CORINFO_METHOD_INFO& info, UInt32 flags, IntPtr& nativeEntry, UInt32& codeSize) [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.CompileMethodInternal(IMethodNode methodCodeNodeNeedingCode, MethodIL
methodIL) in C:\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs:line 352 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.CompileMethod(MethodWithGCInfo methodCodeNodeNeedingCode, Logger logge
r) in C:\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\JitInterface\CorInfoImpl.ReadyToRun.cs:line 801 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at ILCompiler.ReadyToRunCodegenCompilation.<>c__DisplayClass50_0.<ComputeDependencyNodeDependencies>g__Comp
ileOneMethod|5(DependencyNodeCore`1 dependency, Int32 compileThreadId) in C:\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\ReadyToRunCodegenCompilation.cs:line 899 [C:\runtime\src\installer\pkg\s
fx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at ILCompiler.ReadyToRunCodegenCompilation.<>c__DisplayClass50_0.<ComputeDependencyNodeDependencies>g__Comp
ileOnThread|4(Int32 compilationThreadId) in C:\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\ReadyToRunCodegenCompilation.cs:line 833 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Micro
soft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at ILCompiler.ReadyToRunCodegenCompilation.<>c__DisplayClass50_0.<ComputeDependencyNodeDependencies>g__Comp
ileMethodList|2(IEnumerable`1 methodList) in C:\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\ReadyToRunCodegenCompilation.cs:line 793 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Micr
osoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at ILCompiler.ReadyToRunCodegenCompilation.ComputeDependencyNodeDependencies(List`1 obj) in C:\runtime\src\
coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\ReadyToRunCodegenCompilation.cs:line 717 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at ILCompiler.DependencyAnalysisFramework.DependencyAnalyzer`2.ComputeDependencies(List`1 deferredStaticDep
endencies) in C:\runtime\src\coreclr\tools\aot\ILCompiler.DependencyAnalysisFramework\DependencyAnalyzer.cs:line 176 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj
]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at ILCompiler.DependencyAnalysisFramework.DependencyAnalyzer`2.ComputeMarkedNodes() in C:\runtime\src\corec
lr\tools\aot\ILCompiler.DependencyAnalysisFramework\DependencyAnalyzer.cs:line 316 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at ILCompiler.ReadyToRunCodegenCompilation.Compile(String outputFile) in C:\runtime\src\coreclr\tools\aot\I
LCompiler.ReadyToRun\Compiler\ReadyToRunCodegenCompilation.cs:line 387 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at ILCompiler.Program.RunSingleCompilation(Dictionary`2 inFilePaths, InstructionSetSupport instructionSetSu
pport, String compositeRootPath, Dictionary`2 unrootedInputFilePaths, HashSet`1 versionBubbleModulesHash, ReadyToRunCompilerContext typeSystemContext, Logger logger) in C:\runtime\src\coreclr\tools\aot\crossgen
2\Program.cs:line 637 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at ILCompiler.Program.Run() in C:\runtime\src\coreclr\tools\aot\crossgen2\Program.cs:line 302 [C:\runtime\s
rc\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at ILCompiler.Crossgen2RootCommand.<>c__DisplayClass205_0.<.ctor>b__0(ParseResult result) in C:\runtime\src
\coreclr\tools\aot\crossgen2\Crossgen2RootCommand.cs:line 261 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at System.CommandLine.Invocation.InvocationPipeline.Invoke(ParseResult parseResult) [C:\runtime\src\install
er\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at ILCompiler.Program.Main(String[] args) in C:\runtime\src\coreclr\tools\aot\crossgen2\Program.cs:line 914
[C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : Process terminated. Assertion failed. [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCor
e.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : Vector256 is required. [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.s
fxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at System.Text.Ascii.NarrowUtf16ToAscii(Char* pUtf16Buffer, Byte* pAsciiBuffer, UIntPtr elementCount) [C:\r
untime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at System.Text.Unicode.Utf8Utility.TranscodeToUtf8(Char* pInputBuffer, Int32 inputLength, Byte* pOutputBuff
er, Int32 outputBytesRemaining, Char*& pInputBufferRemaining, Byte*& pOutputBufferRemaining) [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at System.Text.Unicode.Utf8.FromUtf16(ReadOnlySpan`1 source, Span`1 destination, Int32& charsRead, Int32& b
ytesWritten, Boolean replaceInvalidSequences, Boolean isFinalBlock) [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.PrintFromUtf16(ReadOnlySpan`1 utf16, Byte* buffer, UIntPtr bufferSize,
UIntPtr* pRequiredBufferSize) in C:\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs:line 1911 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.printClassName(CORINFO_CLASS_STRUCT_* cls, Byte* buffer, UIntPtr buffe
rSize, UIntPtr* pRequiredBufferSize) in C:\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs:line 1975 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl._printClassName(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_
STRUCT_* cls, Byte* buffer, UIntPtr bufferSize, UIntPtr* pRequiredBufferSize) in C:\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl_generated.cs:line 547 [C:\runtime\src\installer\pkg\sfx\Microsoft.NE
TCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.JitCompileMethod(IntPtr& exception, IntPtr jit, IntPtr thisHandle, Int
Ptr callbacks, CORINFO_METHOD_INFO& info, UInt32 flags, IntPtr& nativeEntry, UInt32& codeSize) [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.JitCompileMethod(IntPtr& exception, IntPtr jit, IntPtr thisHandle, Int
Ptr callbacks, CORINFO_METHOD_INFO& info, UInt32 flags, IntPtr& nativeEntry, UInt32& codeSize) [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.CompileMethodInternal(IMethodNode methodCodeNodeNeedingCode, MethodIL
methodIL) in C:\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs:line 352 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.CompileMethod(MethodWithGCInfo methodCodeNodeNeedingCode, Logger logge
r) in C:\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\JitInterface\CorInfoImpl.ReadyToRun.cs:line 801 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at ILCompiler.ReadyToRunCodegenCompilation.<>c__DisplayClass50_0.<ComputeDependencyNodeDependencies>g__Comp
ileOneMethod|5(DependencyNodeCore`1 dependency, Int32 compileThreadId) in C:\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\ReadyToRunCodegenCompilation.cs:line 899 [C:\runtime\src\installer\pkg\s
fx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at ILCompiler.ReadyToRunCodegenCompilation.<>c__DisplayClass50_0.<ComputeDependencyNodeDependencies>g__Comp
ileOnThread|4(Int32 compilationThreadId) in C:\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\ReadyToRunCodegenCompilation.cs:line 833 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Micro
soft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at ILCompiler.ReadyToRunCodegenCompilation.<>c__DisplayClass50_0.<ComputeDependencyNodeDependencies>g__Comp
ilationThread|3(Object objThreadId) in C:\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\ReadyToRunCodegenCompilation.cs:line 811 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.
NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at System.Threading.Thread.StartCallback() [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsof
t.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : Process terminated. Assertion failed. [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCor
e.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : Vector256 is required. [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.s
fxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at System.Text.Ascii.NarrowUtf16ToAscii(Char* pUtf16Buffer, Byte* pAsciiBuffer, UIntPtr elementCount) [C:\r
untime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at System.Text.Unicode.Utf8Utility.TranscodeToUtf8(Char* pInputBuffer, Int32 inputLength, Byte* pOutputBuff
er, Int32 outputBytesRemaining, Char*& pInputBufferRemaining, Byte*& pOutputBufferRemaining) [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at System.Text.Unicode.Utf8.FromUtf16(ReadOnlySpan`1 source, Span`1 destination, Int32& charsRead, Int32& b
ytesWritten, Boolean replaceInvalidSequences, Boolean isFinalBlock) [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.PrintFromUtf16(ReadOnlySpan`1 utf16, Byte* buffer, UIntPtr bufferSize,
UIntPtr* pRequiredBufferSize) in C:\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs:line 1911 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.printClassName(CORINFO_CLASS_STRUCT_* cls, Byte* buffer, UIntPtr buffe
rSize, UIntPtr* pRequiredBufferSize) in C:\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs:line 1975 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl._printClassName(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_
STRUCT_* cls, Byte* buffer, UIntPtr bufferSize, UIntPtr* pRequiredBufferSize) in C:\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl_generated.cs:line 547 [C:\runtime\src\installer\pkg\sfx\Microsoft.NE
TCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.JitCompileMethod(IntPtr& exception, IntPtr jit, IntPtr thisHandle, Int
Ptr callbacks, CORINFO_METHOD_INFO& info, UInt32 flags, IntPtr& nativeEntry, UInt32& codeSize) [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.JitCompileMethod(IntPtr& exception, IntPtr jit, IntPtr thisHandle, Int
Ptr callbacks, CORINFO_METHOD_INFO& info, UInt32 flags, IntPtr& nativeEntry, UInt32& codeSize) [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.CompileMethodInternal(IMethodNode methodCodeNodeNeedingCode, MethodIL
methodIL) in C:\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs:line 352 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.CompileMethod(MethodWithGCInfo methodCodeNodeNeedingCode, Logger logge
r) in C:\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\JitInterface\CorInfoImpl.ReadyToRun.cs:line 801 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at ILCompiler.ReadyToRunCodegenCompilation.<>c__DisplayClass50_0.<ComputeDependencyNodeDependencies>g__Comp
ileOneMethod|5(DependencyNodeCore`1 dependency, Int32 compileThreadId) in C:\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\ReadyToRunCodegenCompilation.cs:line 899 [C:\runtime\src\installer\pkg\s
fx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj]
C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at ILCompiler.ReadyToRunCodegenCompilation.<>c__DisplayClass50_0.<ComputeDependencyNodeDependencies>g__Comp ileOnThread|4(Int32 compilationThreadId) in C:\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\ReadyToRunCodegenCompilation.cs:line 833 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Mi8:36soft.NETCore.App.Runtime.sfxproj] C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at ILCompiler.ReadyToRunCodegenCompilation.<>c__DisplayClass50_0.<ComputeDependencyNodeDependencies>g__Comp ilationThread|3(Object objThreadId) in C:\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\ReadyToRunCodegenCompilation.cs:line 811 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft. NETCore.App.Runtime.sfxproj] C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at System.Threading.Thread.StartCallback() [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsof t.NETCore.App.Runtime.sfxproj] C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : Process terminated. Assertion failed. [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCor e.App.Runtime.sfxproj] C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : Vector256 is required. [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.s fxproj] C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at System.Text.Ascii.NarrowUtf16ToAscii(Char* pUtf16Buffer, Byte* pAsciiBuffer, UIntPtr elementCount) [C:\r untime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj] C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at System.Text.Unicode.Utf8Utility.TranscodeToUtf8(Char* pInputBuffer, Int32 inputLength, Byte* pOutputBuff er, Int32 outputBytesRemaining, Char*& pInputBufferRemaining, Byte*& pOutputBufferRemaining) [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj] C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at System.Text.Unicode.Utf8.FromUtf16(ReadOnlySpan`1 source, Span`1 destination, Int32& charsRead, Int32& b ytesWritten, Boolean replaceInvalidSequences, Boolean isFinalBlock) [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj] C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.PrintFromUtf16(ReadOnlySpan`1 utf16, Byte* buffer, UIntPtr bufferSize, UIntPtr* pRequiredBufferSize) in C:\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs:line 1911 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj] C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.printClassName(CORINFO_CLASS_STRUCT_* cls, Byte* buffer, UIntPtr buffe rSize, UIntPtr* pRequiredBufferSize) in C:\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs:line 1975 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj] C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl._printClassName(IntPtr thisHandle, IntPtr* ppException, CORINFO_CLASS_ STRUCT_* cls, Byte* buffer, UIntPtr bufferSize, UIntPtr* pRequiredBufferSize) in C:\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl_generated.cs:line 547 [C:\runtime\src\installer\pkg\sfx\Microsoft.NE TCore.App\Microsoft.NETCore.App.Runtime.sfxproj] C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.JitCompileMethod(IntPtr& exception, IntPtr jit, IntPtr thisHandle, Int Ptr callbacks, CORINFO_METHOD_INFO& info, UInt32 flags, IntPtr& nativeEntry, UInt32& codeSize) [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj] C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.JitCompileMethod(IntPtr& exception, IntPtr jit, IntPtr thisHandle, Int Ptr callbacks, CORINFO_METHOD_INFO& info, UInt32 flags, IntPtr& nativeEntry, UInt32& codeSize) [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj] C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.CompileMethodInternal(IMethodNode methodCodeNodeNeedingCode, MethodIL methodIL) in C:\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs:line 352 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj] C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at Internal.JitInterface.CorInfoImpl.CompileMethod(MethodWithGCInfo methodCodeNodeNeedingCode, Logger logge r) in C:\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\JitInterface\CorInfoImpl.ReadyToRun.cs:line 801 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj] C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at ILCompiler.ReadyToRunCodegenCompilation.<>c__DisplayClass50_0.<ComputeDependencyNodeDependencies>g__Comp ileOneMethod|5(DependencyNodeCore`1 dependency, Int32 compileThreadId) in C:\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\ReadyToRunCodegenCompilation.cs:line 899 [C:\runtime\src\installer\pkg\s fx\Microsoft.NETCore.App\Microsoft.NETCore.App.Runtime.sfxproj] C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at ILCompiler.ReadyToRunCodegenCompilation.<>c__DisplayClass50_0.<ComputeDependencyNodeDependencies>g__Comp ileOnThread|4(Int32 compilationThreadId) in C:\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\ReadyToRunCodegenCompilation.cs:line 833 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Micro soft.NETCore.App.Runtime.sfxproj] C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at ILCompiler.ReadyToRunCodegenCompilation.<>c__DisplayClass50_0.<ComputeDependencyNodeDependencies>g__Comp ilationThread|3(Object objThreadId) in C:\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\ReadyToRunCodegenCompilation.cs:line 811 [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsoft. NETCore.App.Runtime.sfxproj] C:\runtime\artifacts\bin\Crossgen2Tasks\Debug\net8.0\Microsoft.NET.CrossGen.targets(469,5): error : at System.Threading.Thread.StartCallback() [C:\runtime\src\installer\pkg\sfx\Microsoft.NETCore.App\Microsof t.NETCore.App.Runtime.sfxproj]
Context: #86194 (comment) |
How is the error in this PR |
I believe that the absence of the Crossgen2-compiled ildll file is due to the Crossgen2 crash caused by the assertion failure in question. Having said that, I sincerely admit I'm not clear on why we're not seeing the same "Vector256 is required" message in lab logs, in Richard's case the problematic job uses checked runtime build so I'd expect the assertion to be active. Other than that, according to Tanner's explanation part of the problem is that today Roslyn analyzers aren't smart enough to understand that the conditional block at line
does an upfront check for Vector256 support and so it complained when I tried to put the |
Seems strange that we're seeing crashes with vector code and also this comment: #86194 (comment) To my understanding, we've had the following four OS + Hardware states this release (with the last being the current state of the PR):
The referenced comment above relates to the second to last state. Perhaps there is something about Ubuntu 22.04 we don't understand? |
The assert will be hit when the process runs a particular combination of tier1, tier0 and R2R code. The tiered compilation is non-deterministic and affected by exact timing, so it is plausible that the problem showed up suddenly as side-effect of switching to Ubuntu 22.04. |
Can we make a decision on this, this week? |
I hit the assert consistently on debug builds of coreclr. This was exposed by #89223 since that means we are now crossgenning SPC without optimizations when building debug (but I don't deny that the problem may be broader than this scenario). Disabling R2R images with |
@trylek I'm going to modify this PR to be a commented out line rather than a removal. I am then going to file an issue and reference we need a real fix. This is impacting too many people to not mitigate ASAP. |
src/libraries/System.Private.CoreLib/src/System/Text/Ascii.Utility.cs
Outdated
Show resolved
Hide resolved
This is commenting out an assert rather than deleting it. The CI ran green when it was deleted so I am taking that as a confirmation that commenting it out is also okay. |
Can someone sign off on this so I can merge? |
…lity.cs Co-authored-by: Jan Kotas <jkotas@microsoft.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
I started this investigation based on heads-up from Rich Lander who hit the issue in a PR run. Thanks to help from Jan Vorlicek I have been able to repro the issue and I discussed it with Tanner Gooding who proposed this fix - removing the superfluous assertion check duplicating an upfront check in the method NarrowUtf16ToAscii before calling into the intrinsified version.
I sincerely admit I'm not an expert in the field of instruction set extensions and I have driven this investigation mostly because David Wrighton is OOF on parental leave for the entire month of August so I'm trying to make sure we ship .NET 8 in the best possible quality; I'll be more than happy for any suggestions for improvements or any other feedback.
Thanks
Tomas
/cc @dotnet/crossgen-contrib @davidwrighton @richlander