Skip to content

Test failure JIT\\jit64\\opt\\cse\\hugeexpr1\\hugeexpr1.cmd #74555

Open

Description

@v-wenyuxu

Run: runtime-coreclr outerloop 20220824.6

Failed test:

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

- JIT\\jit64\\opt\\cse\\hugeexpr1\\hugeexpr1.cmd

Error message:

Out of memory.

Return code:      1
Raw output file:      C:\h\w\9DB7088E\w\B91F0A66\uploads\Reports\JIT.jit64\opt\cse\hugeexpr1\hugeexpr1.output.txt
Raw output:
BEGIN EXECUTION
hugeexpr1.dll
1 file(s) copied.
3:34:27.37
Response file: C:\h\w\9DB7088E\w\B91F0A66\e\JIT\jit64\opt\cse\hugeexpr1\hugeexpr1.dll.rsp
C:\h\w\9DB7088E\w\B91F0A66\e\JIT\jit64\opt\cse\hugeexpr1\IL-CG2\hugeexpr1.dll
-o:C:\h\w\9DB7088E\w\B91F0A66\e\JIT\jit64\opt\cse\hugeexpr1\hugeexpr1.dll
--targetarch:x86
--verify-type-and-field-layout
--method-layout:random
-r:C:\h\w\9DB7088E\p\System..dll
-r:C:\h\w\9DB7088E\p\Microsoft..dll
-r:C:\h\w\9DB7088E\p\mscorlib.dll
-r:C:\h\w\9DB7088E\p\netstandard.dll
-O
" "dotnet" "C:\h\w\9DB7088E\p\crossgen2\crossgen2.dll" @"C:\h\w\9DB7088E\w\B91F0A66\e\JIT\jit64\opt\cse\hugeexpr1\hugeexpr1.dll.rsp"   -r:C:\h\w\9DB7088E\w\B91F0A66\e\JIT\jit64\opt\cse\hugeexpr1\IL-CG2*.dll"
Emitting R2R PE file: C:\h\w\9DB7088E\w\B91F0A66\e\JIT\jit64\opt\cse\hugeexpr1\hugeexpr1.dll
3:36:47.46
Crossgen2 failed with exitcode - -532462766
Test Harness Exitcode is : 1
To run the test:

set CORE_ROOT=C:\h\w\9DB7088E\p
C:\h\w\9DB7088E\w\B91F0A66\e\JIT\jit64\opt\cse\hugeexpr1\hugeexpr1.cmd
Expected: True
Actual:   False


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

Activity

  1. added
    blocking-outerloop
    on Aug 25, 2022
  2. ghost added
    untriaged
    on Aug 25, 2022
  3. jakobbotsch commented on Aug 25, 2022

    @jakobbotsch
    Member

    cc @ivdiazsa, maybe this needs to be redisabled for x86.

  4. mangod9 commented on Aug 25, 2022

    @mangod9
    Member

    @AntonLapounov another crossgen2 failure but this time on x86

  5. AntonLapounov commented on Aug 25, 2022

    @AntonLapounov
    Contributor

    It has been intermittently failing for a long time: #61825.

  6. AntonLapounov commented on Aug 26, 2022

    @AntonLapounov
    Contributor

    I have looked at the dump; this is an OutOfMemoryException.

    0:000> .ecxr; .frame 3; dt __pException
    ...
    03 02f7e72c 725318a2     coreclr!JIT_NewArr1+0x14e1c5 [D:\a\_work\1\s\src\coreclr\vm\jithelpers.cpp @ 2626] 
    Local var @ 0x2f7e714 Type Exception*
    0x72efd960 
       +0x000 __VFN_table : 0x72e68638 
       =72efc264 g_OOMException   : 0x72efd960 Exception
       +0x004 m_innerException : (null) 
    
    0:000> !clrstack
    OS Thread Id: 0xd94 (0)
    Child SP       IP Call Site
    02F7E6C8 778ff04c [HelperMethodFrame: 02f7e6c8] 
    02F7E734 725318a2 System.Array.Resize[[System.Byte, System.Private.CoreLib]](Byte[] ByRef, Int32) [/_/src/libraries/System.Private.CoreLib/src/System/Array.cs @ 59]
    02F7E74C 2feca1f3 ILCompiler.DependencyAnalysis.ReadyToRun.CopiedMetadataBlobNode.GetData(ILCompiler.DependencyAnalysis.NodeFactory, Boolean)
    02F7E7EC 3fe46dd0 ILCompiler.DependencyAnalysis.ReadyToRunObjectWriter.EmitPortableExecutable()
    02F7E8F4 2fec0ca3 ILCompiler.ReadyToRunCodegenCompilation.Compile(System.String)
    02F7E968 26b29b41 ILCompiler.Program.RunSingleCompilation(System.Collections.Generic.Dictionary`2, ILCompiler.InstructionSetSupport, System.String, System.Collections.Generic.Dictionary`2, System.Collections.Generic.HashSet`1, ILCompiler.CompilerTypeSystemContext)
    02F7EBC0 04dc1979 ILCompiler.Program.Run(System.String[])
    02F7EDA0 04dc0ae6 ILCompiler.Program.Main(System.String[])
    
  7. mangod9 commented on Aug 29, 2022

    @mangod9
    Member

    @trylek do you know if this might be related to running multiple tests in parallel on helix machines? how would we harden this scenario ?

  8. trylek commented on Aug 29, 2022

    @trylek
    Member

    For the non-merged tests (still a majority) parallelization is controlled by the xunit console but I have no idea whether we have any "official" knobs for controlling that, some time ago we discussed this with Andrew in context of GC tests that are sometimes also sensitive to concurrent execution. I'll take a closer look and I'll try to figure out how to introduce the support for tests that need exclusive access to the running machine.

  9. mangod9 commented on Sep 2, 2022

    @mangod9
    Member

    this is marked as blocking outerloop. Moved it to 8 for now to determine if we can reduce parallelization for certain tests.

  10. removed
    untriaged
    on Sep 2, 2022
  11. added this to the 8.0.0 milestone on Sep 2, 2022
  12. 4 remaining items

  13. mangod9 commented on Oct 11, 2022

    @mangod9
    Member

    should be fine if this is x86 only.

  14. assigned and unassigned on Oct 11, 2022
  15. trylek commented on Oct 11, 2022

    @trylek
    Member

    I can send out a PR for adding the issues.targets entry. For the above discussion regarding test parallelization on x86, I no longer think it is related. The machines are physically x64 and even if the generated XUnit wrapper is run as an x86 app (I'm not sure about that), it's a very short app that basically only runs separate processes for the individual test cases. These processes run in separate address spaces that shouldn't be constrained by 32-bit considerations. I'm guessing it's just that Crossgen2 gets too close to the 2 GB limit and there's possibly a bit of non-determinism due to internal parallelization that probably affects the exact amount of GC memory and causes the test to pass or fail with a certain probability. We can take a closer look what exact data is causing the problem (CopiedMetadataBlobNode as suggested by the call stack shared by Anton can hardly be causing this by itself as it's basically the MSIL metadata within the managed test binary, I don't think that can be that big).

  16. trylek commented on Apr 17, 2023

    @trylek
    Member

    As the test is disabled in issues.targets, we no longer need the "blocking outerloop" label.

  17. removed
    blocking-outerloop
    on Apr 17, 2023
  18. trylek commented on Aug 1, 2023

    @trylek
    Member

    This is basically a 32-bit compilation limit, I don't think we can do anything reasonable about it in .NET 8 timeframe, moving to future as 64-bit platforms are sufficiently widespread so that this is basically a corner case that shouldn't affect most customers.

  19. modified the milestones: 8.0.0, Future on Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

  • Status
    No status

Relationships

None yet

Development

No branches or pull requests

Issue actions