Skip to content

Test failure: Interop/PInvoke/CriticalHandles/StructTest/StructTest/StructTest.cmd #121769

@SakeTao

Description

@SakeTao

Failed in: runtime-coreclr crossgen2 20251117.1

Failed tests:

R2R-CG2 osx arm64 Checked @ OSX.13.Arm64.Open
    - Interop/PInvoke/CriticalHandles/StructTest/StructTest/StructTest.cmd

Error message:

DOTNET_DbgEnableMiniDump is set and the createdump binary does not exist: /private/tmp/helix/working/A9240945/p/crossgen2/createdump
/private/tmp/helix/working/A9240945/w/AB4909B9/e/Interop/Interop/../PInvoke/CriticalHandles/StructTest/StructTest/StructTest.sh: line 258: 89488 Segmentation fault: 11  $__Command
Image file '/private/tmp/helix/working/A9240945/w/AB4909B9/e/Interop/PInvoke/CriticalHandles/StructTest/StructTest/StructTest.dll' information:
Size: 8704 byte(s)
MetadataSize: 4396 byte(s)
SizeOfImage: 32768 byte(s)
ImageBase: 0x400000
FileAlignment: 0x200
SectionAlignment: 0x2000
CorHeader.Flags: ILOnly
Sections:
  .text 8192 - 14104
  .rsrc 16384 - 17636
  .reloc 24576 - 24588
HasExportTable: False
ExportTableHeaderLength: 0
_namedExportRva: 0 item(s)

Return code:      1
Raw output file:      /tmp/helix/working/A9240945/w/AB4909B9/uploads/PInvoke/CriticalHandles/StructTest/StructTest/output.txt
Raw output:
BEGIN EXECUTION
in takeLock
/private/tmp/helix/working/A9240945/w/AB4909B9/e/Interop/PInvoke/CriticalHandles/StructTest/StructTest/IL-CG2/StructTest.dll
02:31:13
Response file: /private/tmp/helix/working/A9240945/w/AB4909B9/e/Interop/PInvoke/CriticalHandles/StructTest/StructTest/StructTest.dll.rsp
/private/tmp/helix/working/A9240945/w/AB4909B9/e/Interop/PInvoke/CriticalHandles/StructTest/StructTest/IL-CG2/StructTest.dll
-o:/private/tmp/helix/working/A9240945/w/AB4909B9/e/Interop/PInvoke/CriticalHandles/StructTest/StructTest/StructTest.dll
-O
--targetarch:arm64
--targetos:osx
--verify-type-and-field-layout
--method-layout:random
-r:/tmp/helix/working/A9240945/p/System.*.dll
-r:/tmp/helix/working/A9240945/p/Microsoft.*.dll
-r:/tmp/helix/working/A9240945/p/xunit.*.dll
-r:/tmp/helix/working/A9240945/p/mscorlib.dll
-r:/tmp/helix/working/A9240945/p/netstandard.dll
Running CrossGen2:  /tmp/helix/working/A9240945/p/crossgen2/crossgen2 @/private/tmp/helix/working/A9240945/w/AB4909B9/e/Interop/PInvoke/CriticalHandles/StructTest/StructTest/StructTest.dll.rsp   -r:/private/tmp/helix/working/A9240945/w/AB4909B9/e/Interop/PInvoke/CriticalHandles/StructTest/StructTest/IL-CG2/*.dll
Running R2RDump:  dotnet /tmp/helix/working/A9240945/p/R2RDump/R2RDump.dll --header --sc --in /private/tmp/helix/working/A9240945/w/AB4909B9/e/Interop/PInvoke/CriticalHandles/StructTest/StructTest/StructTest.dll --out /private/tmp/helix/working/A9240945/w/AB4909B9/e/Interop/PInvoke/CriticalHandles/StructTest/StructTest/StructTest.dll.r2rdump --val
Error: System.BadImageFormatException: The file is not a ReadyToRun image
   at ILCompiler.Reflection.ReadyToRun.ReadyToRunReader.Initialize(IAssemblyMetadata metadata) in /_/src/coreclr/tools/aot/ILCompiler.Reflection.ReadyToRun/ReadyToRunReader.cs:line 524
   at ILCompiler.Reflection.ReadyToRun.ReadyToRunReader..ctor(IAssemblyResolver assemblyResolver, String filename) in /_/src/coreclr/tools/aot/ILCompiler.Reflection.ReadyToRun/ReadyToRunReader.cs:line 429
   at R2RDump.Program.Run() in /_/src/coreclr/tools/r2rdump/Program.cs:line 449
02:31:13
Crossgen2 failed with exitcode: 139
in ReleaseLock
Test failed. Trying to see if dump file was created in /cores since 11/18/2025 2:31:13 AM
Test Harness Exitcode is : 1
To run the test:
Set up CORE_ROOT and run.
> /private/tmp/helix/working/A9240945/w/AB4909B9/e/Interop/Interop/../PInvoke/CriticalHandles/StructTest/StructTest/StructTest.sh

Stack trace:

   at Xunit.Assert.True(Nullable`1 condition, String userMessage) in /_/src/arcade/src/Microsoft.DotNet.XUnitAssert/src/BooleanAsserts.cs:line 141
   at TestLibrary.OutOfProcessTest.RunOutOfProcessTest(String assemblyPath, String testPathPrefix)
   at Program.<<Main>$>g__TestExecutor260|0_261(StreamWriter tempLogSw, StreamWriter statsCsvSw, <>c__DisplayClass0_0&)

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions