dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.12k stars 4.7k forks source link

Test failure readytorun\\coreroot_determinism\\coreroot_determinism\\coreroot_determinism.cmd #88881

Closed v-wenyuxu closed 1 year ago

v-wenyuxu commented 1 year ago

Failed in: runtime-coreclr jitstress 20230712.1

Failed tests:

coreclr windows arm64 Checked jitstress2_tiered @ Windows.11.Arm64.Open
    - readytorun\\coreroot_determinism\\coreroot_determinism\\coreroot_determinism.cmd

coreclr windows x64 Checked jitstress2_tiered @ Windows.10.Amd64.Open
    - readytorun\\coreroot_determinism\\coreroot_determinism\\coreroot_determinism.cmd

coreclr osx arm64 Checked jitstress2 @ OSX.1200.ARM64.Open
    - readytorun/coreroot_determinism/coreroot_determinism/coreroot_determinism.sh
    - readytorun/determinism/crossgen2determinism/crossgen2determinism.sh
    - readytorun/tests/mainv1/mainv1.sh
    - readytorun/tests/mainv2/mainv2.sh
    - baseservices/TieredCompilation/BasicTestWithMcj/BasicTestWithMcj.sh

coreclr linux arm64 Checked jitstress2 @ (Ubuntu.1804.Arm64.Open)Ubuntu.1804.Armarch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-helix-arm64v8
    - readytorun/tests/mainv2/mainv2.sh
    - readytorun/tests/mainv1/mainv1.sh
    - readytorun/coreroot_determinism/coreroot_determinism/coreroot_determinism.sh
    - readytorun/determinism/crossgen2determinism/crossgen2determinism.sh
    - baseservices/TieredCompilation/BasicTestWithMcj/BasicTestWithMcj.sh

coreclr osx arm64 Checked jitstress2_tiered @ OSX.1200.ARM64.Open
    - readytorun/coreroot_determinism/coreroot_determinism/coreroot_determinism.sh

coreclr windows arm64 Checked jitstress2 @ Windows.11.Arm64.Open
    - baseservices\\TieredCompilation\\BasicTestWithMcj\\BasicTestWithMcj.cmd
    - readytorun\\determinism\\crossgen2determinism\\crossgen2determinism.cmd
    - readytorun\\coreroot_determinism\\coreroot_determinism\\coreroot_determinism.cmd

coreclr windows x64 Checked jitstress2 @ Windows.10.Amd64.Open
    - baseservices\\TieredCompilation\\BasicTestWithMcj\\BasicTestWithMcj.cmd
    - readytorun\\determinism\\crossgen2determinism\\crossgen2determinism.cmd
    - readytorun\\coreroot_determinism\\coreroot_determinism\\coreroot_determinism.cmd

Error message:

1 / 1 (100%, 1 failed): failed in 71452 msecs, exit code 1, expected 0: corerun.exe C:\h\w\C2910A3E\p\crossgen2\crossgen2.dll @C:\h\w\C2910A3E\w\B25E0A06\e\readytorun\coreroot_determinism\coreroot_determinism\seed1\CPAOT-ret.out\System.Private.CoreLib.dll.rsp
  Emitting R2R PE file: C:\h\w\C2910A3E\w\B25E0A06\e\readytorun\coreroot_determinism\coreroot_determinism\seed1\CPAOT-ret.out\System.Private.CoreLib.dll
!! Unhandled exception: System.NullReferenceException: Object reference not set to an instance of an object.
!!    at ILCompiler.DependencyAnalysis.NodeFactory.MethodEntrypoint(MethodWithToken method, Boolean isInstantiatingStub, Boolean isPrecodeImportRequired, Boolean isJumpableImportRequired) in /_/src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/DependencyAnalysis/ReadyToRunCodegenNodeFactory.cs:line 460
!!    at ILCompiler.DependencyAnalysis.NodeFactory.EnumerateCompiledMethods(EcmaModule moduleToEnumerate, CompiledMethodCategory methodCategory)+MoveNext() in /_/src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/DependencyAnalysis/ReadyToRunCodegenNodeFactory.cs:line 480
!!    at ILCompiler.DependencyAnalysis.ReadyToRun.ExceptionInfoLookupTableNode.LayoutMethodsWithEHInfo() in /_/src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/DependencyAnalysis/ReadyToRun/ExceptionInfoLookupTableNode.cs:line 95
!!    at ILCompiler.DependencyAnalysis.ReadyToRun.ExceptionInfoLookupTableNode.ShouldSkipEmittingObjectNode(NodeFactory factory) in /_/src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/DependencyAnalysis/ReadyToRun/ExceptionInfoLookupTableNode.cs:line 143
!!    at ILCompiler.DependencyAnalysis.ReadyToRun.HeaderNode.GetData(NodeFactory factory, Boolean relocsOnly) in /_/src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/DependencyAnalysis/ReadyToRun/HeaderNode.cs:line 181
!!    at ILCompiler.DependencyAnalysis.ReadyToRunObjectWriter.EmitPortableExecutable() in /_/src/coreclr/tools/aot/ILCompiler.ReadyToRun/CodeGen/ReadyToRunObjectWriter.cs:line 266
!!    at ILCompiler.DependencyAnalysis.ReadyToRunObjectWriter.EmitObject(String objectFilePath, EcmaModule componentModule, IEnumerable`1 inputFiles, IEnumerable`1 nodes, NodeFactory factory, Boolean generateMapFile, Boolean generateMapCsvFile, Boolean generatePdbFile, String pdbPath, Boolean generatePerfMapFile, String perfMapPath, Int32 perfMapFormatVersion, Boolean generateProfileFile, CallChainProfile callChainProfile, Int32 customPESectionAlignment) in /_/src/coreclr/tools/aot/ILCompiler.ReadyToRun/CodeGen/ReadyToRunObjectWriter.cs:line 548
!!    at ILCompiler.ReadyToRunCodegenCompilation.Compile(String outputFile) in /_/src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/ReadyToRunCodegenCompilation.cs:line 400
!!    at ILCompiler.Program.RunSingleCompilation(Dictionary`2 inFilePaths, InstructionSetSupport instructionSetSupport, String compositeRootPath, Dictionary`2 unrootedInputFilePaths, HashSet`1 versionBubbleModulesHash, ReadyToRunCompilerContext typeSystemContext) in /_/src/coreclr/tools/aot/crossgen2/Program.cs:line 637
!!    at ILCompiler.Program.Run() in /_/src/coreclr/tools/aot/crossgen2/Program.cs:line 300
!!    at ILCompiler.Crossgen2RootCommand.<>c__DisplayClass205_0.<.ctor>b__0(ParseResult result) in /_/src/coreclr/tools/aot/crossgen2/Crossgen2RootCommand.cs:line 261
!!    at System.CommandLine.Invocation.AnonymousCliAction.Invoke(ParseResult parseResult)
!!    at System.CommandLine.Invocation.InvocationPipeline.Invoke(ParseResult parseResult)

Return code:      1
Raw output file:      C:\h\w\C2910A3E\w\B25E0A06\uploads\Reports\readytorun.coreroot_determinism\coreroot_determinism\coreroot_determinism.output.txt
Raw output:
BEGIN EXECUTION
 "C:\h\w\C2910A3E\p\corerun.exe" -p "System.Reflection.Metadata.MetadataUpdater.IsSupported=false" -p "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization=true"  coreroot_determinism.dll 
================================== Compiling with seed 1 ============================

Stack trace:

   at readytorun_coreroot_determinism._coreroot_determinism_coreroot_determinism_._coreroot_determinism_coreroot_determinism_cmd()
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
Queued Pipeline Pipeline_Configuration OS Arch Test Outcome Properties BuildReason
2023-04-26T06:10:04.217Z runtime-coreclr jitstress Checked-jitstress2 osx.1200.arm64.open arm64 readytorun/tests/mainv1/mainv1.sh Failed {"System.PhaseAttempt":"1","System.PhaseName":"run_test_p1osx_arm64_checked","DefinitionId":"109","architecture":"arm64","System.JobName":"default","System.StageName":"Build","Project":"public","System.StageAttempt":"1","operatingSystem":"OSX.1200.ARM64.Open","configuration":"Checked-jitstress2","System.JobAttempt":"1","BuildNumber":"20230425.5","DefinitionName":"runtime-coreclr jitstress","CollectionUri":"https://dev.azure.com/dnceng-public/","AzurePipelinesTestRunId":"4906774","System.JobId":"765fd5e9-e47f-5cb0-4cbf-499eaaaee93e","Reason":"Schedule","BuildId":"252731"} Schedule
2023-04-26T05:27:22.852Z runtime-coreclr jitstress Checked-jitstress2 ubuntu.1804.armarch.open arm64 readytorun/tests/mainv1/mainv1.sh Failed {"System.StageName":"Build","System.JobName":"default","operatingSystem":"(Ubuntu.1804.Arm64.Open)Ubuntu.1804.Armarch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-helix-arm64v8","configuration":"Checked-jitstress2","System.StageAttempt":"1","System.JobId":"34b2f53b-add1-5e74-7a39-5a11483297fc","Project":"public","BuildId":"252731","DefinitionName":"runtime-coreclr jitstress","architecture":"arm64","DefinitionId":"109","Reason":"Schedule","AzurePipelinesTestRunId":"4906414","System.PhaseName":"run_test_p1linux_arm64_checked","CollectionUri":"https://dev.azure.com/dnceng-public/","System.JobAttempt":"1","BuildNumber":"20230425.5","System.PhaseAttempt":"1"} Schedule
2023-04-26T05:25:12.735Z runtime-coreclr jitstress Checked-jitstress2 ubuntu.1804.amd64.open.rt x64 readytorun/tests/mainv1/mainv1.sh Failed {"System.StageAttempt":"1","CollectionUri":"https://dev.azure.com/dnceng-public/","operatingSystem":"Ubuntu.1804.Amd64.Open","BuildId":"252731","System.JobAttempt":"1","Project":"public","DefinitionId":"109","System.JobId":"6dfec640-5b96-5d95-2a5b-7c236ea2d5c5","configuration":"Checked-jitstress2","System.JobName":"__default","Reason":"Schedule","DefinitionName":"runtime-coreclr jitstress","System.StageName":"Build","BuildNumber":"20230425.5","architecture":"x64","AzurePipelinesTestRunId":"4906396","System.PhaseAttempt":"1","System.PhaseName":"run_test_p1__linux_x64_checked"} Schedule
2023-04-26T06:10:04.217Z runtime-coreclr jitstress Checked-jitstress2 osx.1200.arm64.open arm64 readytorun/tests/mainv2/mainv2.sh Failed {"System.PhaseAttempt":"1","System.PhaseName":"run_test_p1osx_arm64_checked","DefinitionId":"109","architecture":"arm64","System.JobName":"default","System.StageName":"Build","Project":"public","System.StageAttempt":"1","operatingSystem":"OSX.1200.ARM64.Open","configuration":"Checked-jitstress2","System.JobAttempt":"1","BuildNumber":"20230425.5","DefinitionName":"runtime-coreclr jitstress","CollectionUri":"https://dev.azure.com/dnceng-public/","AzurePipelinesTestRunId":"4906774","System.JobId":"765fd5e9-e47f-5cb0-4cbf-499eaaaee93e","Reason":"Schedule","BuildId":"252731"} Schedule
2023-04-26T05:27:22.852Z runtime-coreclr jitstress Checked-jitstress2 ubuntu.1804.armarch.open arm64 readytorun/tests/mainv2/mainv2.sh Failed {"System.StageName":"Build","System.JobName":"default","operatingSystem":"(Ubuntu.1804.Arm64.Open)Ubuntu.1804.Armarch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-helix-arm64v8","configuration":"Checked-jitstress2","System.StageAttempt":"1","System.JobId":"34b2f53b-add1-5e74-7a39-5a11483297fc","Project":"public","BuildId":"252731","DefinitionName":"runtime-coreclr jitstress","architecture":"arm64","DefinitionId":"109","Reason":"Schedule","AzurePipelinesTestRunId":"4906414","System.PhaseName":"run_test_p1linux_arm64_checked","CollectionUri":"https://dev.azure.com/dnceng-public/","System.JobAttempt":"1","BuildNumber":"20230425.5","System.PhaseAttempt":"1"} Schedule
2023-04-26T05:25:12.735Z runtime-coreclr jitstress Checked-jitstress2 ubuntu.1804.amd64.open.rt x64 readytorun/tests/mainv2/mainv2.sh Failed {"System.StageAttempt":"1","CollectionUri":"https://dev.azure.com/dnceng-public/","operatingSystem":"Ubuntu.1804.Amd64.Open","BuildId":"252731","System.JobAttempt":"1","Project":"public","DefinitionId":"109","System.JobId":"6dfec640-5b96-5d95-2a5b-7c236ea2d5c5","configuration":"Checked-jitstress2","System.JobName":"__default","Reason":"Schedule","DefinitionName":"runtime-coreclr jitstress","System.StageName":"Build","BuildNumber":"20230425.5","architecture":"x64","AzurePipelinesTestRunId":"4906396","System.PhaseAttempt":"1","System.PhaseName":"run_test_p1__linux_x64_checked"} Schedule
jakobbotsch commented 1 year ago

Likely same situation as https://github.com/dotnet/runtime/issues/88890#issuecomment-1636331713 -- the test passed in the next run, so going to close.