Closed
Description
Error Blob
{
"ErrorMessage": "Code generation failed for method '[System.Linq.Tests]System.Linq.Tests.EmptyPartitionTests.SingleInstance()",
"BuildRetry": false,
"ErrorPattern": "",
"ExcludeConsoleLog": false
}
Reproduction Steps
@dotnet/ilc-contrib
- Affected unrelated PR: Add XUnitLogChecker to log libraries dumps, do not enable for NativeAOT tests #94868 . Showed up when using
/azp run runtime-nativeaot-outerloop
. - Affected jobs: At least these ones -
windows-x64 Release NativeAOT_Libs
,windows-arm64 Release NativeAOT_Libs
,linux-x64 Release NativeAOT_Libs
,linux_musl-x64 Release NativeAOT_Libs
,linux-arm64 Release NativeAOT_Libs
- Failing step:
Build product
- Build log: https://dev.azure.com/dnceng-public/public/_build/results?buildId=482959&view=logs&j=e2a090ef-1ffe-5b5a-8213-260fbf226a4b&t=e6ace95b-8502-59e8-16a9-341d78ad45da
- Output:
...
Optimizing assemblies for size may change the behavior of the app. Be sure to test after publishing. See: https://aka.ms/dotnet-illink
Generating native code
System.Net.WebSockets.Tests -> D:\a\_work\1\s\artifacts\bin\System.Net.WebSockets.Tests\Release\net9.0\publish\
Zipping directory "D:\a\_work\1\s\artifacts\bin\System.Net.WebSockets.Tests\Release\net9.0\publish\" to "D:\a\_work\1\s\artifacts\helix\tests\windows.AnyCPU.Release\System.Net.WebSockets.Tests.zip".
Optimizing assemblies for size may change the behavior of the app. Be sure to test after publishing. See: https://aka.ms/dotnet-illink
EXEC : error : One or more errors occurred. (Code generation failed for method '[System.Linq.Tests]System.Linq.Tests.EmptyPartitionTests.SingleInstance()') [D:\a\_work\1\s\src\libraries\System.Linq\tests\System.Linq.Tests.csproj]
##[error]EXEC(0,0): error : (NETCORE_ENGINEERING_TELEMETRY=Build) One or more errors occurred. (Code generation failed for method '[System.Linq.Tests]System.Linq.Tests.EmptyPartitionTests.SingleInstance()')
System.AggregateException: One or more errors occurred. (Code generation failed for method '[System.Linq.Tests]System.Linq.Tests.EmptyPartitionTests.SingleInstance()')
---> ILCompiler.CodeGenerationFailedException: Code generation failed for method '[System.Linq.Tests]System.Linq.Tests.EmptyPartitionTests.SingleInstance()'
---> System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
at Internal.JitInterface.CorInfoImpl.recordRelocation(Void*, Void*, Void*, UInt16, Int32) + 0x1e1
at Internal.JitInterface.CorInfoImpl._recordRelocation(IntPtr, IntPtr*, Void*, Void*, Void*, UInt16, Int32) + 0x54
--- End of inner exception stack trace ---
at Internal.JitInterface.CorInfoImpl.CompileMethodInternal(IMethodNode, MethodIL) + 0x1de
at Internal.JitInterface.CorInfoImpl.CompileMethod(MethodCodeNode, MethodIL) + 0x5f
at ILCompiler.RyuJitCompilation.CompileSingleMethod(CorInfoImpl, MethodCodeNode) + 0xa3
at ILCompiler.RyuJitCompilation.CompileSingleMethod(MethodCodeNode methodCodeNodeNeedingCode) + 0x88
at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`2.<ForWorker>b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) + 0x1aa
--- End of stack trace from previous location ---
at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`2.<ForWorker>b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) + 0x4c7
at System.Threading.Tasks.TaskReplicator.Replica.Execute() + 0x66
--- End of inner exception stack trace ---
at System.Threading.Tasks.TaskReplicator.Run[TState](TaskReplicator.ReplicatableUserAction`1, ParallelOptions, Boolean) + 0x27a
at System.Threading.Tasks.Parallel.ForWorker[TLocal,TInt](TInt, TInt, ParallelOptions, Action`1, Action`2, Func`4, Func`1, Action`1) + 0x286
--- End of stack trace from previous location ---
at System.Threading.Tasks.Parallel.ThrowSingleCancellationExceptionOrOtherException(ICollection, CancellationToken, Exception) + 0x30
at System.Threading.Tasks.Parallel.ForWorker[TLocal,TInt](TInt, TInt, ParallelOptions, Action`1, Action`2, Func`4, Func`1, Action`1) + 0x450
at ILCompiler.RyuJitCompilation.CompileMultiThreaded(List`1) + 0x1f9
at ILCompiler.RyuJitCompilation.ComputeDependencyNodeDependencies(List`1 obj) + 0x15d
at ILCompiler.DependencyAnalysisFramework.DependencyAnalyzer`2.ComputeMarkedNodes() + 0x95
at ILCompiler.RyuJitCompilation.CompileInternal(String, ObjectDumper) + 0x1f
at ILCompiler.Compilation.ILCompiler.ICompilation.Compile(String, ObjectDumper) + 0x61
at ILCompiler.Program.Run() + 0x2854
at ILCompiler.ILCompilerRootCommand.<>c__DisplayClass221_0.<.ctor>b__0(ParseResult result) + 0x2ed
D:\a\_work\1\s\artifacts\bin\coreclr\windows.x64.Release\build\Microsoft.NETCore.Native.targets(303,5): error MSB3073: The command ""D:\a\_work\1\s\artifacts\bin\coreclr\windows.x64.Release\ilc-published\\ilc" @"D:\a\_work\1\s\artifacts\obj\System.Linq.Tests\Release\net9.0\native\System.Linq.Tests.ilc.rsp"" exited with code 1. [D:\a\_work\1\s\src\libraries\System.Linq\tests\System.Linq.Tests.csproj]
##[error]artifacts\bin\coreclr\windows.x64.Release\build\Microsoft.NETCore.Native.targets(303,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""D:\a\_work\1\s\artifacts\bin\coreclr\windows.x64.Release\ilc-published\\ilc" @"D:\a\_work\1\s\artifacts\obj\System.Linq.Tests\Release\net9.0\native\System.Linq.Tests.ilc.rsp"" exited with code 1.
...
Known issue validation
Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=482959
Error message validated: Code generation failed for method '[System.Linq.Tests]System.Linq.Tests.EmptyPartitionTests.SingleInstance()
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 11/28/2023 11:46:12 PM UTC
Report
Build | Definition | Step Name | Console log | Pull Request |
---|---|---|---|---|
483389 | dotnet/runtime | Build product | Log | |
483120 | dotnet/runtime | Build product | Log | |
482959 | dotnet/runtime | Build product | Log | #94868 |
Summary
24-Hour Hit Count | 7-Day Hit Count | 1-Month Count |
---|---|---|
3 | 3 | 3 |