Skip to content
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

Test failure Interop/ObjectiveC/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI.sh #53359

Closed
AaronRobinsonMSFT opened this issue May 27, 2021 · 13 comments · Fixed by #56441
Labels
area-Interop-coreclr blocking-outerloop Blocking the 'runtime-coreclr outerloop' and 'runtime-libraries-coreclr outerloop' runs GCStress os-macos-bigsur (macOS11)
Milestone

Comments

@AaronRobinsonMSFT
Copy link
Member

This test failed in a current GCStress0x3 run:

https://dev.azure.com/dnceng/public/_build/results?buildId=1158649&view=ms.vss-test-web.build-test-results-tab&runId=34974862&resultId=101901&paneView=debug

Return code:      1
Raw output file:      /private/tmp/helix/working/B3D10A12/w/A55408C1/e/Interop/ObjectiveC/Reports/Interop.ObjectiveC/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI.output.txt
Raw output:
BEGIN EXECUTION
/tmp/helix/working/B3D10A12/p/corerun ObjectiveCMarshalAPI.dll ''
Running Validate_ReferenceTrackingAPIs_InvalidArgs...
Running Validate_ReferenceTracking_Scenario...
Test Failure: TestLibrary.AssertTestException: Assert.AreEqual: Expected: [2]. Actual: [4].
at TestLibrary.Assert.HandleFail(String assertionName, String message) in TestLibrary.dll:token 0x6000021+0x11
at TestLibrary.Assert.AreEqual[T](T expected, T actual, String message) in TestLibrary.dll:token 0x6000010+0x3d
at ObjectiveCMarshalAPI.Program.Validate_ReferenceTracking_Scenario() in ObjectiveCMarshalAPI.dll:token 0x600000d+0xbe
at ObjectiveCMarshalAPI.Program.Main(String[] doNotUse) in ObjectiveCMarshalAPI.dll:token 0x6000015+0x0
Expected: 100
Actual: 101
END EXECUTION - FAILED
Test Harness Exitcode is : 1
To run the test:

set CORE_ROOT=/tmp/helix/working/B3D10A12/p
/private/tmp/helix/working/B3D10A12/w/A55408C1/e/Interop/ObjectiveC/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI.sh
Expected: True
Actual:   False

See #52829

@AaronRobinsonMSFT AaronRobinsonMSFT added this to the 6.0.0 milestone May 27, 2021
@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged New issue has not been triaged by the area owner label May 27, 2021
@AaronRobinsonMSFT AaronRobinsonMSFT removed the untriaged New issue has not been triaged by the area owner label May 27, 2021
@AaronRobinsonMSFT
Copy link
Member Author

I will take a quick look here and see if anything pops out.

/cc @sdmaclea

@AaronRobinsonMSFT
Copy link
Member Author

I am unable to reproduce this locally. I tried DOTNET_GCStress=3, DOTNET_GCStress=C, and DOTNET_GCStress=F without a success reproduction. I observed in the referenced failing pipeline the following: OSX.1100.ARM64.Open. @sdmaclea is the 1100 indicating the OS version which is troublesome? My local version is 11.4.

@sdmaclea
Copy link
Contributor

They tell me those machines are running macOS 11.3. I have had similar problems reproducing issues locally even when my machine was at 11.3 (it is now 11.5 beta). Jeff suggests using the core dumps from CI... We don't always get those though...

@AaronRobinsonMSFT
Copy link
Member Author

I have had similar problems reproducing issues locally even when my machine was at 11.3 (it is now 11.5 beta).

Okay. I am still unable to reproduce this after running in a loop for 100 iterations. I am trying 1000 next.

We don't always get those though...

Yes, that is the case with the most recent failure - boo.

@BruceForstall
Copy link
Member

Make sure you set the (important) variables used in the CI, especially COMPlus_TieredCompilation=0

@AaronRobinsonMSFT
Copy link
Member Author

@BruceForstall Yep. I was up to 650 with no issues and then restarted to add the MiniDump variables for the sake of consistency. Still no reproduction with 200 so far.

@AaronRobinsonMSFT
Copy link
Member Author

I ran this locally on an M1 with the following environment variables with no reproduction.

export COMPlus_GCStress=F
export COMPlus_TieredCompilation=0
export COMPlus_DbgEnableMiniDump=1
export COMPlus_DbgMiniDumpName=[ROOT]/runtime/artifacts/tests/coredump.%d.dmp

Big Sur 11.4
Darwin Kernel Version 20.5.0: Sat May 8 05:10:31 PDT 2021; root:xnu-7195.121.3~9/RELEASE_ARM64_T8101 arm64

Please reopen if issue persists.

@VincentBu
Copy link
Contributor

Failed again in runtime-coreclr gcstress0x3-gcstress0xc 20210620.1

Failed test:

CoreCLR OSX arm64 Checked gcstress0x3 @ OSX.1100.ARM64.Open

- Interop/ObjectiveC/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI.sh

Error message:

Return code:      1
Raw output file:      /tmp/helix/working/ABBC08FC/w/A79608BC/uploads/Reports/Interop.ObjectiveC/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI.output.txt
Raw output:
BEGIN EXECUTION
/tmp/helix/working/ABBC08FC/p/corerun ObjectiveCMarshalAPI.dll ''
Running Validate_ReferenceTrackingAPIs_InvalidArgs...
Running Validate_ReferenceTracking_Scenario...
Test Failure: TestLibrary.AssertTestException: Assert.AreEqual: Expected: [2]. Actual: [4].
at TestLibrary.Assert.HandleFail(String assertionName, String message) in TestLibrary.dll:token 0x6000021+0x11
at TestLibrary.Assert.AreEqual[T](T expected, T actual, String message) in TestLibrary.dll:token 0x6000010+0x3d
at ObjectiveCMarshalAPI.Program.Validate_ReferenceTracking_Scenario() in ObjectiveCMarshalAPI.dll:token 0x600000d+0xbe
at ObjectiveCMarshalAPI.Program.Main(String[] doNotUse) in ObjectiveCMarshalAPI.dll:token 0x6000015+0x0
Expected: 100
Actual: 101
END EXECUTION - FAILED
Test Harness Exitcode is : 1
To run the test:

set CORE_ROOT=/tmp/helix/working/ABBC08FC/p
/private/tmp/helix/working/ABBC08FC/w/A79608BC/e/Interop/ObjectiveC/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI.sh
Expected: True
Actual:   False


Stack trace
   at Interop_ObjectiveC._ObjectiveCMaralAPI_ObjectiveCMaralAPI_ObjectiveCMaralAPI_._ObjectiveCMarshalAPI_ObjectiveCMarshalAPI_ObjectiveCMarshalAPI_sh() in Interop.ObjectiveC.XUnitWrapper.dll:token 0x6000006+0x295

@VincentBu VincentBu reopened this Jun 21, 2021
@VincentBu
Copy link
Contributor

VincentBu commented Jun 21, 2021

Historical failures of this test:

Queued OS Arch Pipeline
2021-06-20T14:18:15.05Z osx.1100.arm64.open arm64 runtime-coreclr gcstress0x3-gcstress0xc Checked-gcstress0x3
2021-06-19T14:27:51.879Z osx.1100.arm64.open arm64 runtime-coreclr gcstress0x3-gcstress0xc Checked-gcstress0x3
2021-06-13T14:23:31.397Z osx.1100.arm64.open arm64 runtime-coreclr gcstress0x3-gcstress0xc Checked-gcstress0x3
2021-06-12T14:18:18.372Z osx.1100.arm64.open arm64 runtime-coreclr gcstress0x3-gcstress0xc Checked-gcstress0x3
2021-06-06T14:24:51.983Z osx.1100.arm64.open arm64 runtime-coreclr gcstress0x3-gcstress0xc Checked-gcstress0x3
2021-06-05T14:21:18.892Z osx.1100.arm64.open arm64 runtime-coreclr gcstress0x3-gcstress0xc Checked-gcstress0x3
2021-05-30T14:46:14.777Z osx.1100.arm64.open arm64 runtime-coreclr gcstress0x3-gcstress0xc Checked-gcstress0x3
2021-05-29T14:44:21.391Z osx.1100.arm64.open arm64 runtime-coreclr gcstress0x3-gcstress0xc Checked-gcstress0x3
2021-05-23T14:42:42.973Z osx.1100.arm64.open arm64 runtime-coreclr gcstress0x3-gcstress0xc Checked-gcstress0x3
More failures
Queued OS Arch Pipeline
2021-05-22T14:54:28.55Z osx.1100.arm64.open arm64 runtime-coreclr gcstress0x3-gcstress0xc Checked-gcstress0x3
2021-05-17T04:47:00.491Z osx.1100.arm64.open arm64 runtime-coreclr r2r-extra Checked-gcstress0xf
2021-05-16T23:33:06.538Z osx.1100.arm64.open arm64 runtime-coreclr gcstress-extra Checked-gcstress0xc_tailcallstress
2021-05-16T23:20:48.793Z osx.1100.arm64.open arm64 runtime-coreclr gcstress-extra Checked-gcstress0xc_jitstress2
2021-05-16T23:14:09.047Z osx.1100.arm64.open arm64 runtime-coreclr gcstress-extra Checked-gcstress0xc_jitstress1
2021-05-16T23:10:27.968Z osx.1100.arm64.open arm64 runtime-coreclr gcstress-extra Checked-gcstress0xc_zapdisable_heapverify1
2021-05-16T22:53:33.315Z osx.1100.arm64.open arm64 runtime-coreclr gcstress-extra Checked-gcstress0xc_zapdisable
2021-05-16T22:53:30.439Z osx.1100.arm64.open arm64 runtime-coreclr gcstress-extra Checked-gcstress0xc_zapdisable_jitstress2
2021-05-16T15:17:50.068Z osx.1100.arm64.open arm64 runtime-coreclr gcstress0x3-gcstress0xc Checked-gcstress0x3
2021-05-16T15:17:47.99Z osx.1100.arm64.open arm64 runtime-coreclr gcstress0x3-gcstress0xc Checked-gcstress0xc
2021-05-16T04:45:45.743Z osx.1100.arm64.open arm64 runtime-coreclr r2r-extra Checked-gcstress0xf
2021-05-15T23:26:15.55Z osx.1100.arm64.open arm64 runtime-coreclr gcstress-extra Checked-gcstress0xc_tailcallstress
2021-05-15T23:11:33.657Z osx.1100.arm64.open arm64 runtime-coreclr gcstress-extra Checked-gcstress0xc_jitstress2
2021-05-15T23:06:56.14Z osx.1100.arm64.open arm64 runtime-coreclr gcstress-extra Checked-gcstress0xc_jitstress1
2021-05-15T23:06:52.982Z osx.1100.arm64.open arm64 runtime-coreclr gcstress-extra Checked-gcstress0xc_zapdisable_heapverify1
2021-05-15T22:45:37.064Z osx.1100.arm64.open arm64 runtime-coreclr gcstress-extra Checked-gcstress0xc_zapdisable
2021-05-15T22:45:34.872Z osx.1100.arm64.open arm64 runtime-coreclr gcstress-extra Checked-gcstress0xc_zapdisable_jitstress2
2021-05-15T14:46:02.487Z osx.1100.arm64.open arm64 runtime-coreclr gcstress0x3-gcstress0xc Checked-gcstress0x3
2021-05-15T14:46:01.592Z osx.1100.arm64.open arm64 runtime-coreclr gcstress0x3-gcstress0xc Checked-gcstress0xc

@AaronRobinsonMSFT
Copy link
Member Author

@VincentBu I see the same failure for all arm64 but for the x64 the failure is entirely unrelated to the test it would appear – see below. Someone will look into the arm64 failure.

usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file target_file
       cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file ... target_directory
rm: /private/tmp/helix/working/B13F0942/w/A9CE0939/e/Interop/ObjectiveC/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI/composite-r2r.dll.rsp: No such file or directory
External disassembler is not available.
BEGIN: coreclr_initialize failed - Error: 0x80004005
END: coreclr_initialize failed - Error: 0x80004005

Return code:      1
Raw output file:      /tmp/helix/working/B13F0942/w/A9CE0939/uploads/Reports/Interop.ObjectiveC/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI.output.txt
Raw output:
BEGIN EXECUTION
in takeLock
Response file: /private/tmp/helix/working/B13F0942/w/A9CE0939/e/Interop/ObjectiveC/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI/composite-r2r.dll.rsp
/private/tmp/helix/working/B13F0942/w/A9CE0939/e/Interop/ObjectiveC/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI/IL-CG2/ObjectiveCMarshalAPI.dll
-o:/private/tmp/helix/working/B13F0942/w/A9CE0939/e/Interop/ObjectiveC/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI/composite-r2r.dll
-r:/tmp/helix/working/B13F0942/p/System.*.dll
-r:/tmp/helix/working/B13F0942/p/Microsoft.*.dll
-r:/tmp/helix/working/B13F0942/p/mscorlib.dll
--verify-type-and-field-layout
--targetarch:x64
-O
Running CrossGen2:  dotnet /tmp/helix/working/B13F0942/p/crossgen2/crossgen2.dll @/private/tmp/helix/working/B13F0942/w/A9CE0939/e/Interop/ObjectiveC/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI/composite-r2r.dll.rsp   --composite
Emitting R2R PE file: /private/tmp/helix/working/B13F0942/w/A9CE0939/e/Interop/ObjectiveC/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI/composite-r2r.dll
Emitting R2R PE file: /private/tmp/helix/working/B13F0942/w/A9CE0939/e/Interop/ObjectiveC/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI.dll
in ReleaseLock
/tmp/helix/working/B13F0942/p/corerun ObjectiveCMarshalAPI.dll ''
Exe path: /private/tmp/helix/working/B13F0942/p/corerun
Properties:
    TRUSTED_PLATFORM_ASSEMBLIES = /tmp/helix/working/B13F0942/p//CommandLine.dll:/tmp/helix/working/B13F0942/p//Dia2Lib.dll:/tmp/helix/working/B13F0942/p//dotnet-Microsoft.XmlSerializer.Generator.dll:/tmp/helix/working/B13F0942/p//framework-r2r.dll:/tmp/helix/working/B13F0942/p//FSharp.Core.dll:/tmp/helix/working/B13F0942/p//ILCompiler.Reflection.ReadyToRun.dll:/tmp/helix/working/B13F0942/p//Microsoft.Bcl.AsyncInterfaces.dll:/tmp/helix/working/B13F0942/p//Microsoft.CodeAnalysis.CSharp.dll:/tmp/helix/working/B13F0942/p//Microsoft.CodeAnalysis.dll:/tmp/helix/working/B13F0942/p//Microsoft.CodeAnalysis.VisualBasic.dll:/tmp/helix/working/B13F0942/p//Microsoft.CSharp.dll:/tmp/helix/working/B13F0942/p//Microsoft.Diagnostics.FastSerialization.dll:/tmp/helix/working/B13F0942/p//Microsoft.Diagnostics.NETCore.Client.dll:/tmp/helix/working/B13F0942/p//Microsoft.Diagnostics.Tools.RuntimeClient.dll:/tmp/helix/working/B13F0942/p//Microsoft.Diagnostics.Tracing.TraceEvent.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Caching.Abstractions.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Caching.Memory.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Configuration.Abstractions.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Configuration.Binder.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Configuration.CommandLine.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Configuration.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Configuration.EnvironmentVariables.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Configuration.FileExtensions.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Configuration.Ini.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Configuration.Json.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Configuration.UserSecrets.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Configuration.Xml.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.DependencyInjection.Abstractions.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.DependencyInjection.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.DependencyModel.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.FileProviders.Abstractions.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.FileProviders.Composite.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.FileProviders.Physical.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.FileSystemGlobbing.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Hosting.Abstractions.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Hosting.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Hosting.Systemd.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Hosting.WindowsServices.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Http.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Logging.Abstractions.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Logging.Configuration.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Logging.Console.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Logging.Debug.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Logging.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Logging.EventLog.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Logging.EventSource.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Logging.TraceSource.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Options.ConfigurationExtensions.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Options.DataAnnotations.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Options.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Primitives.dll:/tmp/helix/working/B13F0942/p//Microsoft.VisualBasic.Core.dll:/tmp/helix/working/B13F0942/p//Microsoft.VisualBasic.dll:/tmp/helix/working/B13F0942/p//Microsoft.Win32.Primitives.dll:/tmp/helix/working/B13F0942/p//Microsoft.Win32.Registry.AccessControl.dll:/tmp/helix/working/B13F0942/p//Microsoft.Win32.Registry.dll:/tmp/helix/working/B13F0942/p//Microsoft.Win32.SystemEvents.dll:/tmp/helix/working/B13F0942/p//mscorlib.dll:/tmp/helix/working/B13F0942/p//netstandard.dll:/tmp/helix/working/B13F0942/p//Newtonsoft.Json.Bson.dll:/tmp/helix/working/B13F0942/p//Newtonsoft.Json.dll:/tmp/helix/working/B13F0942/p//OSExtensions.dll:/tmp/helix/working/B13F0942/p//runincontext.dll:/tmp/helix/working/B13F0942/p//System.AppContext.dll:/tmp/helix/working/B13F0942/p//System.Buffers.dll:/tmp/helix/working/B13F0942/p//System.CodeDom.dll:/tmp/helix/working/B13F0942/p//System.Collections.Concurrent.dll:/tmp/helix/working/B13F0942/p//System.Collections.dll:/tmp/helix/working/B13F0942/p//System.Collections.Immutable.dll:/tmp/helix/working/B13F0942/p//System.Collections.NonGeneric.dll:/tmp/helix/working/B13F0942/p//System.Collections.Specialized.dll:/tmp/helix/working/B13F0942/p//System.ComponentModel.Annotations.dll:/tmp/helix/working/B13F0942/p//System.ComponentModel.Composition.dll:/tmp/helix/working/B13F0942/p//System.ComponentModel.Composition.Registration.dll:/tmp/helix/working/B13F0942/p//System.ComponentModel.DataAnnotations.dll:/tmp/helix/working/B13F0942/p//System.ComponentModel.dll:/tmp/helix/working/B13F0942/p//System.ComponentModel.EventBasedAsync.dll:/tmp/helix/working/B13F0942/p//System.ComponentModel.Primitives.dll:/tmp/helix/working/B13F0942/p//System.ComponentModel.TypeConverter.dll:/tmp/helix/working/B13F0942/p//System.Composition.AttributedModel.dll:/tmp/helix/working/B13F0942/p//System.Composition.Convention.dll:/tmp/helix/working/B13F0942/p//System.Composition.Hosting.dll:/tmp/helix/working/B13F0942/p//System.Composition.Runtime.dll:/tmp/helix/working/B13F0942/p//System.Composition.TypedParts.dll:/tmp/helix/working/B13F0942/p//System.Configuration.ConfigurationManager.dll:/tmp/helix/working/B13F0942/p//System.Configuration.dll:/tmp/helix/working/B13F0942/p//System.Console.dll:/tmp/helix/working/B13F0942/p//System.Core.dll:/tmp/helix/working/B13F0942/p//System.Data.Common.dll:/tmp/helix/working/B13F0942/p//System.Data.DataSetExtensions.dll:/tmp/helix/working/B13F0942/p//System.Data.dll:/tmp/helix/working/B13F0942/p//System.Data.Odbc.dll:/tmp/helix/working/B13F0942/p//System.Data.OleDb.dll:/tmp/helix/working/B13F0942/p//System.Diagnostics.Contracts.dll:/tmp/helix/working/B13F0942/p//System.Diagnostics.Debug.dll:/tmp/helix/working/B13F0942/p//System.Diagnostics.DiagnosticSource.dll:/tmp/helix/working/B13F0942/p//System.Diagnostics.EventLog.dll:/tmp/helix/working/B13F0942/p//System.Diagnostics.FileVersionInfo.dll:/tmp/helix/working/B13F0942/p//System.Diagnostics.PerformanceCounter.dll:/tmp/helix/working/B13F0942/p//System.Diagnostics.Process.dll:/tmp/helix/working/B13F0942/p//System.Diagnostics.StackTrace.dll:/tmp/helix/working/B13F0942/p//System.Diagnostics.TextWriterTraceListener.dll:/tmp/helix/working/B13F0942/p//System.Diagnostics.Tools.dll:/tmp/helix/working/B13F0942/p//System.Diagnostics.TraceSource.dll:/tmp/helix/working/B13F0942/p//System.Diagnostics.Tracing.dll:/tmp/helix/working/B13F0942/p//System.DirectoryServices.AccountManagement.dll:/tmp/helix/working/B13F0942/p//System.DirectoryServices.dll:/tmp/helix/working/B13F0942/p//System.DirectoryServices.Protocols.dll:/tmp/helix/working/B13F0942/p//System.dll:/tmp/helix/working/B13F0942/p//System.Drawing.Common.dll:/tmp/helix/working/B13F0942/p//System.Drawing.dll:/tmp/helix/working/B13F0942/p//System.Drawing.Primitives.dll:/tmp/helix/working/B13F0942/p//System.Dynamic.Runtime.dll:/tmp/helix/working/B13F0942/p//System.Formats.Asn1.dll:/tmp/helix/working/B13F0942/p//System.Formats.Cbor.dll:/tmp/helix/working/B13F0942/p//System.Globalization.Calendars.dll:/tmp/helix/working/B13F0942/p//System.Globalization.dll:/tmp/helix/working/B13F0942/p//System.Globalization.Extensions.dll:/tmp/helix/working/B13F0942/p//System.IO.Compression.Brotli.dll:/tmp/helix/working/B13F0942/p//System.IO.Compression.dll:/tmp/helix/working/B13F0942/p//System.IO.Compression.FileSystem.dll:/tmp/helix/working/B13F0942/p//System.IO.Compression.ZipFile.dll:/tmp/helix/working/B13F0942/p//System.IO.dll:/tmp/helix/working/B13F0942/p//System.IO.FileSystem.AccessControl.dll:/tmp/helix/working/B13F0942/p//System.IO.FileSystem.dll:/tmp/helix/working/B13F0942/p//System.IO.FileSystem.DriveInfo.dll:/tmp/helix/working/B13F0942/p//System.IO.FileSystem.Primitives.dll:/tmp/helix/working/B13F0942/p//System.IO.FileSystem.Watcher.dll:/tmp/helix/working/B13F0942/p//System.IO.Hashing.dll:/tmp/helix/working/B13F0942/p//System.IO.IsolatedStorage.dll:/tmp/helix/working/B13F0942/p//System.IO.MemoryMappedFiles.dll:/tmp/helix/working/B13F0942/p//System.IO.Packaging.dll:/tmp/helix/working/B13F0942/p//System.IO.Pipelines.dll:/tmp/helix/working/B13F0942/p//System.IO.Pipes.AccessControl.dll:/tmp/helix/working/B13F0942/p//System.IO.Pipes.dll:/tmp/helix/working/B13F0942/p//System.IO.Ports.dll:/tmp/helix/working/B13F0942/p//System.IO.UnmanagedMemoryStream.dll:/tmp/helix/working/B13F0942/p//System.Linq.dll:/tmp/helix/working/B13F0942/p//System.Linq.Expressions.dll:/tmp/helix/working/B13F0942/p//System.Linq.Parallel.dll:/tmp/helix/working/B13F0942/p//System.Linq.Queryable.dll:/tmp/helix/working/B13F0942/p//System.Management.dll:/tmp/helix/working/B13F0942/p//System.Memory.Data.dll:/tmp/helix/working/B13F0942/p//System.Memory.dll:/tmp/helix/working/B13F0942/p//System.Net.Connections.dll:/tmp/helix/working/B13F0942/p//System.Net.dll:/tmp/helix/working/B13F0942/p//System.Net.Http.dll:/tmp/helix/working/B13F0942/p//System.Net.Http.Json.dll:/tmp/helix/working/B13F0942/p//System.Net.Http.WinHttpHandler.dll:/tmp/helix/working/B13F0942/p//System.Net.HttpListener.dll:/tmp/helix/working/B13F0942/p//System.Net.Mail.dll:/tmp/helix/working/B13F0942/p//System.Net.NameResolution.dll:/tmp/helix/working/B13F0942/p//System.Net.NetworkInformation.dll:/tmp/helix/working/B13F0942/p//System.Net.Ping.dll:/tmp/helix/working/B13F0942/p//System.Net.Primitives.dll:/tmp/helix/working/B13F0942/p//System.Net.Quic.dll:/tmp/helix/working/B13F0942/p//System.Net.Requests.dll:/tmp/helix/working/B13F0942/p//System.Net.Security.dll:/tmp/helix/working/B13F0942/p//System.Net.ServicePoint.dll:/tmp/helix/working/B13F0942/p//System.Net.Sockets.dll:/tmp/helix/working/B13F0942/p//System.Net.WebClient.dll:/tmp/helix/working/B13F0942/p//System.Net.WebHeaderCollection.dll:/tmp/helix/working/B13F0942/p//System.Net.WebProxy.dll:/tmp/helix/working/B13F0942/p//System.Net.WebSockets.Client.dll:/tmp/helix/working/B13F0942/p//System.Net.WebSockets.dll:/tmp/helix/working/B13F0942/p//System.Numerics.dll:/tmp/helix/working/B13F0942/p//System.Numerics.Tensors.dll:/tmp/helix/working/B13F0942/p//System.Numerics.Vectors.dll:/tmp/helix/working/B13F0942/p//System.ObjectModel.dll:/tmp/helix/working/B13F0942/p//System.Private.CoreLib.dll:/tmp/helix/working/B13F0942/p//System.Private.DataContractSerialization.dll:/tmp/helix/working/B13F0942/p//System.Private.Uri.dll:/tmp/helix/working/B13F0942/p//System.Private.Xml.dll:/tmp/helix/working/B13F0942/p//System.Private.Xml.Linq.dll:/tmp/helix/working/B13F0942/p//System.Reflection.Context.dll:/tmp/helix/working/B13F0942/p//System.Reflection.DispatchProxy.dll:/tmp/helix/working/B13F0942/p//System.Reflection.dll:/tmp/helix/working/B13F0942/p//System.Reflection.Emit.dll:/tmp/helix/working/B13F0942/p//System.Reflection.Emit.ILGeneration.dll:/tmp/helix/working/B13F0942/p//System.Reflection.Emit.Lightweight.dll:/tmp/helix/working/B13F0942/p//System.Reflection.Extensions.dll:/tmp/helix/working/B13F0942/p//System.Reflection.Metadata.dll:/tmp/helix/working/B13F0942/p//System.Reflection.MetadataLoadContext.dll:/tmp/helix/working/B13F0942/p//System.Reflection.Primitives.dll:/tmp/helix/working/B13F0942/p//System.Reflection.TypeExtensions.dll:/tmp/helix/working/B13F0942/p//System.Resources.Extensions.dll:/tmp/helix/working/B13F0942/p//System.Resources.Reader.dll:/tmp/helix/working/B13F0942/p//System.Resources.ResourceManager.dll:/tmp/helix/working/B13F0942/p//System.Resources.Writer.dll:/tmp/helix/working/B13F0942/p//System.Runtime.Caching.dll:/tmp/helix/working/B13F0942/p//System.Runtime.CompilerServices.Unsafe.dll:/tmp/helix/working/B13F0942/p//System.Runtime.CompilerServices.VisualC.dll:/tmp/helix/working/B13F0942/p//System.Runtime.dll:/tmp/helix/working/B13F0942/p//System.Runtime.Extensions.dll:/tmp/helix/working/B13F0942/p//System.Runtime.Handles.dll:/tmp/helix/working/B13F0942/p//System.Runtime.InteropServices.dll:/tmp/helix/working/B13F0942/p//System.Runtime.InteropServices.RuntimeInformation.dll:/tmp/helix/working/B13F0942/p//System.Runtime.Intrinsics.dll:/tmp/helix/working/B13F0942/p//System.Runtime.Loader.dll:/tmp/helix/working/B13F0942/p//System.Runtime.Numerics.dll:/tmp/helix/working/B13F0942/p//System.Runtime.Serialization.dll:/tmp/helix/working/B13F0942/p//System.Runtime.Serialization.Formatters.dll:/tmp/helix/working/B13F0942/p//System.Runtime.Serialization.Json.dll:/tmp/helix/working/B13F0942/p//System.Runtime.Serialization.Primitives.dll:/tmp/helix/working/B13F0942/p//System.Runtime.Serialization.Xml.dll:/tmp/helix/working/B13F0942/p//System.Security.AccessControl.dll:/tmp/helix/working/B13F0942/p//System.Security.Claims.dll:/tmp/helix/working/B13F0942/p//System.Security.Cryptography.Algorithms.dll:/tmp/helix/working/B13F0942/p//System.Security.Cryptography.Cng.dll:/tmp/helix/working/B13F0942/p//System.Security.Cryptography.Csp.dll:/tmp/helix/working/B13F0942/p//System.Security.Cryptography.Encoding.dll:/tmp/helix/working/B13F0942/p//System.Security.Cryptography.OpenSsl.dll:/tmp/helix/working/B13F0942/p//System.Security.Cryptography.Pkcs.dll:/tmp/helix/working/B13F0942/p//System.Security.Cryptography.Primitives.dll:/tmp/helix/working/B13F0942/p//System.Security.Cryptography.ProtectedData.dll:/tmp/helix/working/B13F0942/p//System.Security.Cryptography.X509Certificates.dll:/tmp/helix/working/B13F0942/p//System.Security.Cryptography.Xml.dll:/tmp/helix/working/B13F0942/p//System.Security.dll:/tmp/helix/working/B13F0942/p//System.Security.Permissions.dll:/tmp/helix/working/B13F0942/p//System.Security.Principal.dll:/tmp/helix/working/B13F0942/p//System.Security.Principal.Windows.dll:/tmp/helix/working/B13F0942/p//System.Security.SecureString.dll:/tmp/helix/working/B13F0942/p//System.ServiceModel.Syndication.dll:/tmp/helix/working/B13F0942/p//System.ServiceModel.Web.dll:/tmp/helix/working/B13F0942/p//System.ServiceProcess.dll:/tmp/helix/working/B13F0942/p//System.ServiceProcess.ServiceController.dll:/tmp/helix/working/B13F0942/p//System.Speech.dll:/tmp/helix/working/B13F0942/p//System.Text.Encoding.CodePages.dll:/tmp/helix/working/B13F0942/p//System.Text.Encoding.dll:/tmp/helix/working/B13F0942/p//System.Text.Encoding.Extensions.dll:/tmp/helix/working/B13F0942/p//System.Text.Encodings.Web.dll:/tmp/helix/working/B13F0942/p//System.Text.Json.dll:/tmp/helix/working/B13F0942/p//System.Text.RegularExpressions.dll:/tmp/helix/working/B13F0942/p//System.Threading.AccessControl.dll:/tmp/helix/working/B13F0942/p//System.Threading.Channels.dll:/tmp/helix/working/B13F0942/p//System.Threading.dll:/tmp/helix/working/B13F0942/p//System.Threading.Overlapped.dll:/tmp/helix/working/B13F0942/p//System.Threading.Tasks.Dataflow.dll:/tmp/helix/working/B13F0942/p//System.Threading.Tasks.dll:/tmp/helix/working/B13F0942/p//System.Threading.Tasks.Extensions.dll:/tmp/helix/working/B13F0942/p//System.Threading.Tasks.Parallel.dll:/tmp/helix/working/B13F0942/p//System.Threading.Thread.dll:/tmp/helix/working/B13F0942/p//System.Threading.ThreadPool.dll:/tmp/helix/working/B13F0942/p//System.Threading.Timer.dll:/tmp/helix/working/B13F0942/p//System.Transactions.dll:/tmp/helix/working/B13F0942/p//System.Transactions.Local.dll:/tmp/helix/working/B13F0942/p//System.ValueTuple.dll:/tmp/helix/working/B13F0942/p//System.Web.dll:/tmp/helix/working/B13F0942/p//System.Web.HttpUtility.dll:/tmp/helix/working/B13F0942/p//System.Windows.dll:/tmp/helix/working/B13F0942/p//System.Windows.Extensions.dll:/tmp/helix/working/B13F0942/p//System.Xml.dll:/tmp/helix/working/B13F0942/p//System.Xml.Linq.dll:/tmp/helix/working/B13F0942/p//System.Xml.ReaderWriter.dll:/tmp/helix/working/B13F0942/p//System.Xml.Serialization.dll:/tmp/helix/working/B13F0942/p//System.Xml.XDocument.dll:/tmp/helix/working/B13F0942/p//System.Xml.XmlDocument.dll:/tmp/helix/working/B13F0942/p//System.Xml.XmlSerializer.dll:/tmp/helix/working/B13F0942/p//System.Xml.XPath.dll:/tmp/helix/working/B13F0942/p//System.Xml.XPath.XDocument.dll:/tmp/helix/working/B13F0942/p//TraceReloggerLib.dll:/tmp/helix/working/B13F0942/p//WindowsBase.dll:/tmp/helix/working/B13F0942/p//xunit.abstractions.dll:/tmp/helix/working/B13F0942/p//xunit.assert.dll:/tmp/helix/working/B13F0942/p//xunit.console.dll:/tmp/helix/working/B13F0942/p//xunit.core.dll:/tmp/helix/working/B13F0942/p//xunit.execution.dotnet.dll:/tmp/helix/working/B13F0942/p//xunit.performance.api.dll:/tmp/helix/working/B13F0942/p//xunit.performance.core.dll:/tmp/helix/working/B13F0942/p//xunit.performance.execution.dll:/tmp/helix/working/B13F0942/p//xunit.performance.metrics.dll:/tmp/helix/working/B13F0942/p//xunit.runner.reporters.netcoreapp10.dll:/tmp/helix/working/B13F0942/p//xunit.runner.utility.netcoreapp10.dll:
    APP_PATHS = /private/tmp/helix/working/B13F0942/w/A9CE0939/e/Interop/ObjectiveC/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI/
    APP_NI_PATHS = /private/tmp/helix/working/B13F0942/w/A9CE0939/e/Interop/ObjectiveC/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI/NI/:/private/tmp/helix/working/B13F0942/w/A9CE0939/e/Interop/ObjectiveC/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI/
    NATIVE_DLL_SEARCH_DIRECTORIES = /private/tmp/helix/working/B13F0942/w/A9CE0939/e/Interop/ObjectiveC/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI/:/tmp/helix/working/B13F0942/p/:
Managed assembly: /private/tmp/helix/working/B13F0942/w/A9CE0939/e/Interop/ObjectiveC/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI.dll
Arguments (0): 
Expected: 100
Actual: 255
END EXECUTION - FAILED
Test Harness Exitcode is : 1
To run the test:
> set CORE_ROOT=/tmp/helix/working/B13F0942/p
> /private/tmp/helix/working/B13F0942/w/A9CE0939/e/Interop/ObjectiveC/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI.sh

@VincentBu
Copy link
Contributor

@VincentBu I see the same failure for all arm64 but for the x64 the failure is entirely unrelated to the test it would appear – see below. Someone will look into the arm64 failure.

usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file target_file
       cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file ... target_directory
rm: /private/tmp/helix/working/B13F0942/w/A9CE0939/e/Interop/ObjectiveC/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI/composite-r2r.dll.rsp: No such file or directory
External disassembler is not available.
BEGIN: coreclr_initialize failed - Error: 0x80004005
END: coreclr_initialize failed - Error: 0x80004005

Return code:      1
Raw output file:      /tmp/helix/working/B13F0942/w/A9CE0939/uploads/Reports/Interop.ObjectiveC/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI.output.txt
Raw output:
BEGIN EXECUTION
in takeLock
Response file: /private/tmp/helix/working/B13F0942/w/A9CE0939/e/Interop/ObjectiveC/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI/composite-r2r.dll.rsp
/private/tmp/helix/working/B13F0942/w/A9CE0939/e/Interop/ObjectiveC/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI/IL-CG2/ObjectiveCMarshalAPI.dll
-o:/private/tmp/helix/working/B13F0942/w/A9CE0939/e/Interop/ObjectiveC/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI/composite-r2r.dll
-r:/tmp/helix/working/B13F0942/p/System.*.dll
-r:/tmp/helix/working/B13F0942/p/Microsoft.*.dll
-r:/tmp/helix/working/B13F0942/p/mscorlib.dll
--verify-type-and-field-layout
--targetarch:x64
-O
Running CrossGen2:  dotnet /tmp/helix/working/B13F0942/p/crossgen2/crossgen2.dll @/private/tmp/helix/working/B13F0942/w/A9CE0939/e/Interop/ObjectiveC/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI/composite-r2r.dll.rsp   --composite
Emitting R2R PE file: /private/tmp/helix/working/B13F0942/w/A9CE0939/e/Interop/ObjectiveC/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI/composite-r2r.dll
Emitting R2R PE file: /private/tmp/helix/working/B13F0942/w/A9CE0939/e/Interop/ObjectiveC/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI.dll
in ReleaseLock
/tmp/helix/working/B13F0942/p/corerun ObjectiveCMarshalAPI.dll ''
Exe path: /private/tmp/helix/working/B13F0942/p/corerun
Properties:
    TRUSTED_PLATFORM_ASSEMBLIES = /tmp/helix/working/B13F0942/p//CommandLine.dll:/tmp/helix/working/B13F0942/p//Dia2Lib.dll:/tmp/helix/working/B13F0942/p//dotnet-Microsoft.XmlSerializer.Generator.dll:/tmp/helix/working/B13F0942/p//framework-r2r.dll:/tmp/helix/working/B13F0942/p//FSharp.Core.dll:/tmp/helix/working/B13F0942/p//ILCompiler.Reflection.ReadyToRun.dll:/tmp/helix/working/B13F0942/p//Microsoft.Bcl.AsyncInterfaces.dll:/tmp/helix/working/B13F0942/p//Microsoft.CodeAnalysis.CSharp.dll:/tmp/helix/working/B13F0942/p//Microsoft.CodeAnalysis.dll:/tmp/helix/working/B13F0942/p//Microsoft.CodeAnalysis.VisualBasic.dll:/tmp/helix/working/B13F0942/p//Microsoft.CSharp.dll:/tmp/helix/working/B13F0942/p//Microsoft.Diagnostics.FastSerialization.dll:/tmp/helix/working/B13F0942/p//Microsoft.Diagnostics.NETCore.Client.dll:/tmp/helix/working/B13F0942/p//Microsoft.Diagnostics.Tools.RuntimeClient.dll:/tmp/helix/working/B13F0942/p//Microsoft.Diagnostics.Tracing.TraceEvent.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Caching.Abstractions.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Caching.Memory.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Configuration.Abstractions.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Configuration.Binder.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Configuration.CommandLine.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Configuration.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Configuration.EnvironmentVariables.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Configuration.FileExtensions.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Configuration.Ini.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Configuration.Json.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Configuration.UserSecrets.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Configuration.Xml.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.DependencyInjection.Abstractions.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.DependencyInjection.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.DependencyModel.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.FileProviders.Abstractions.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.FileProviders.Composite.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.FileProviders.Physical.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.FileSystemGlobbing.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Hosting.Abstractions.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Hosting.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Hosting.Systemd.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Hosting.WindowsServices.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Http.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Logging.Abstractions.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Logging.Configuration.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Logging.Console.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Logging.Debug.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Logging.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Logging.EventLog.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Logging.EventSource.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Logging.TraceSource.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Options.ConfigurationExtensions.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Options.DataAnnotations.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Options.dll:/tmp/helix/working/B13F0942/p//Microsoft.Extensions.Primitives.dll:/tmp/helix/working/B13F0942/p//Microsoft.VisualBasic.Core.dll:/tmp/helix/working/B13F0942/p//Microsoft.VisualBasic.dll:/tmp/helix/working/B13F0942/p//Microsoft.Win32.Primitives.dll:/tmp/helix/working/B13F0942/p//Microsoft.Win32.Registry.AccessControl.dll:/tmp/helix/working/B13F0942/p//Microsoft.Win32.Registry.dll:/tmp/helix/working/B13F0942/p//Microsoft.Win32.SystemEvents.dll:/tmp/helix/working/B13F0942/p//mscorlib.dll:/tmp/helix/working/B13F0942/p//netstandard.dll:/tmp/helix/working/B13F0942/p//Newtonsoft.Json.Bson.dll:/tmp/helix/working/B13F0942/p//Newtonsoft.Json.dll:/tmp/helix/working/B13F0942/p//OSExtensions.dll:/tmp/helix/working/B13F0942/p//runincontext.dll:/tmp/helix/working/B13F0942/p//System.AppContext.dll:/tmp/helix/working/B13F0942/p//System.Buffers.dll:/tmp/helix/working/B13F0942/p//System.CodeDom.dll:/tmp/helix/working/B13F0942/p//System.Collections.Concurrent.dll:/tmp/helix/working/B13F0942/p//System.Collections.dll:/tmp/helix/working/B13F0942/p//System.Collections.Immutable.dll:/tmp/helix/working/B13F0942/p//System.Collections.NonGeneric.dll:/tmp/helix/working/B13F0942/p//System.Collections.Specialized.dll:/tmp/helix/working/B13F0942/p//System.ComponentModel.Annotations.dll:/tmp/helix/working/B13F0942/p//System.ComponentModel.Composition.dll:/tmp/helix/working/B13F0942/p//System.ComponentModel.Composition.Registration.dll:/tmp/helix/working/B13F0942/p//System.ComponentModel.DataAnnotations.dll:/tmp/helix/working/B13F0942/p//System.ComponentModel.dll:/tmp/helix/working/B13F0942/p//System.ComponentModel.EventBasedAsync.dll:/tmp/helix/working/B13F0942/p//System.ComponentModel.Primitives.dll:/tmp/helix/working/B13F0942/p//System.ComponentModel.TypeConverter.dll:/tmp/helix/working/B13F0942/p//System.Composition.AttributedModel.dll:/tmp/helix/working/B13F0942/p//System.Composition.Convention.dll:/tmp/helix/working/B13F0942/p//System.Composition.Hosting.dll:/tmp/helix/working/B13F0942/p//System.Composition.Runtime.dll:/tmp/helix/working/B13F0942/p//System.Composition.TypedParts.dll:/tmp/helix/working/B13F0942/p//System.Configuration.ConfigurationManager.dll:/tmp/helix/working/B13F0942/p//System.Configuration.dll:/tmp/helix/working/B13F0942/p//System.Console.dll:/tmp/helix/working/B13F0942/p//System.Core.dll:/tmp/helix/working/B13F0942/p//System.Data.Common.dll:/tmp/helix/working/B13F0942/p//System.Data.DataSetExtensions.dll:/tmp/helix/working/B13F0942/p//System.Data.dll:/tmp/helix/working/B13F0942/p//System.Data.Odbc.dll:/tmp/helix/working/B13F0942/p//System.Data.OleDb.dll:/tmp/helix/working/B13F0942/p//System.Diagnostics.Contracts.dll:/tmp/helix/working/B13F0942/p//System.Diagnostics.Debug.dll:/tmp/helix/working/B13F0942/p//System.Diagnostics.DiagnosticSource.dll:/tmp/helix/working/B13F0942/p//System.Diagnostics.EventLog.dll:/tmp/helix/working/B13F0942/p//System.Diagnostics.FileVersionInfo.dll:/tmp/helix/working/B13F0942/p//System.Diagnostics.PerformanceCounter.dll:/tmp/helix/working/B13F0942/p//System.Diagnostics.Process.dll:/tmp/helix/working/B13F0942/p//System.Diagnostics.StackTrace.dll:/tmp/helix/working/B13F0942/p//System.Diagnostics.TextWriterTraceListener.dll:/tmp/helix/working/B13F0942/p//System.Diagnostics.Tools.dll:/tmp/helix/working/B13F0942/p//System.Diagnostics.TraceSource.dll:/tmp/helix/working/B13F0942/p//System.Diagnostics.Tracing.dll:/tmp/helix/working/B13F0942/p//System.DirectoryServices.AccountManagement.dll:/tmp/helix/working/B13F0942/p//System.DirectoryServices.dll:/tmp/helix/working/B13F0942/p//System.DirectoryServices.Protocols.dll:/tmp/helix/working/B13F0942/p//System.dll:/tmp/helix/working/B13F0942/p//System.Drawing.Common.dll:/tmp/helix/working/B13F0942/p//System.Drawing.dll:/tmp/helix/working/B13F0942/p//System.Drawing.Primitives.dll:/tmp/helix/working/B13F0942/p//System.Dynamic.Runtime.dll:/tmp/helix/working/B13F0942/p//System.Formats.Asn1.dll:/tmp/helix/working/B13F0942/p//System.Formats.Cbor.dll:/tmp/helix/working/B13F0942/p//System.Globalization.Calendars.dll:/tmp/helix/working/B13F0942/p//System.Globalization.dll:/tmp/helix/working/B13F0942/p//System.Globalization.Extensions.dll:/tmp/helix/working/B13F0942/p//System.IO.Compression.Brotli.dll:/tmp/helix/working/B13F0942/p//System.IO.Compression.dll:/tmp/helix/working/B13F0942/p//System.IO.Compression.FileSystem.dll:/tmp/helix/working/B13F0942/p//System.IO.Compression.ZipFile.dll:/tmp/helix/working/B13F0942/p//System.IO.dll:/tmp/helix/working/B13F0942/p//System.IO.FileSystem.AccessControl.dll:/tmp/helix/working/B13F0942/p//System.IO.FileSystem.dll:/tmp/helix/working/B13F0942/p//System.IO.FileSystem.DriveInfo.dll:/tmp/helix/working/B13F0942/p//System.IO.FileSystem.Primitives.dll:/tmp/helix/working/B13F0942/p//System.IO.FileSystem.Watcher.dll:/tmp/helix/working/B13F0942/p//System.IO.Hashing.dll:/tmp/helix/working/B13F0942/p//System.IO.IsolatedStorage.dll:/tmp/helix/working/B13F0942/p//System.IO.MemoryMappedFiles.dll:/tmp/helix/working/B13F0942/p//System.IO.Packaging.dll:/tmp/helix/working/B13F0942/p//System.IO.Pipelines.dll:/tmp/helix/working/B13F0942/p//System.IO.Pipes.AccessControl.dll:/tmp/helix/working/B13F0942/p//System.IO.Pipes.dll:/tmp/helix/working/B13F0942/p//System.IO.Ports.dll:/tmp/helix/working/B13F0942/p//System.IO.UnmanagedMemoryStream.dll:/tmp/helix/working/B13F0942/p//System.Linq.dll:/tmp/helix/working/B13F0942/p//System.Linq.Expressions.dll:/tmp/helix/working/B13F0942/p//System.Linq.Parallel.dll:/tmp/helix/working/B13F0942/p//System.Linq.Queryable.dll:/tmp/helix/working/B13F0942/p//System.Management.dll:/tmp/helix/working/B13F0942/p//System.Memory.Data.dll:/tmp/helix/working/B13F0942/p//System.Memory.dll:/tmp/helix/working/B13F0942/p//System.Net.Connections.dll:/tmp/helix/working/B13F0942/p//System.Net.dll:/tmp/helix/working/B13F0942/p//System.Net.Http.dll:/tmp/helix/working/B13F0942/p//System.Net.Http.Json.dll:/tmp/helix/working/B13F0942/p//System.Net.Http.WinHttpHandler.dll:/tmp/helix/working/B13F0942/p//System.Net.HttpListener.dll:/tmp/helix/working/B13F0942/p//System.Net.Mail.dll:/tmp/helix/working/B13F0942/p//System.Net.NameResolution.dll:/tmp/helix/working/B13F0942/p//System.Net.NetworkInformation.dll:/tmp/helix/working/B13F0942/p//System.Net.Ping.dll:/tmp/helix/working/B13F0942/p//System.Net.Primitives.dll:/tmp/helix/working/B13F0942/p//System.Net.Quic.dll:/tmp/helix/working/B13F0942/p//System.Net.Requests.dll:/tmp/helix/working/B13F0942/p//System.Net.Security.dll:/tmp/helix/working/B13F0942/p//System.Net.ServicePoint.dll:/tmp/helix/working/B13F0942/p//System.Net.Sockets.dll:/tmp/helix/working/B13F0942/p//System.Net.WebClient.dll:/tmp/helix/working/B13F0942/p//System.Net.WebHeaderCollection.dll:/tmp/helix/working/B13F0942/p//System.Net.WebProxy.dll:/tmp/helix/working/B13F0942/p//System.Net.WebSockets.Client.dll:/tmp/helix/working/B13F0942/p//System.Net.WebSockets.dll:/tmp/helix/working/B13F0942/p//System.Numerics.dll:/tmp/helix/working/B13F0942/p//System.Numerics.Tensors.dll:/tmp/helix/working/B13F0942/p//System.Numerics.Vectors.dll:/tmp/helix/working/B13F0942/p//System.ObjectModel.dll:/tmp/helix/working/B13F0942/p//System.Private.CoreLib.dll:/tmp/helix/working/B13F0942/p//System.Private.DataContractSerialization.dll:/tmp/helix/working/B13F0942/p//System.Private.Uri.dll:/tmp/helix/working/B13F0942/p//System.Private.Xml.dll:/tmp/helix/working/B13F0942/p//System.Private.Xml.Linq.dll:/tmp/helix/working/B13F0942/p//System.Reflection.Context.dll:/tmp/helix/working/B13F0942/p//System.Reflection.DispatchProxy.dll:/tmp/helix/working/B13F0942/p//System.Reflection.dll:/tmp/helix/working/B13F0942/p//System.Reflection.Emit.dll:/tmp/helix/working/B13F0942/p//System.Reflection.Emit.ILGeneration.dll:/tmp/helix/working/B13F0942/p//System.Reflection.Emit.Lightweight.dll:/tmp/helix/working/B13F0942/p//System.Reflection.Extensions.dll:/tmp/helix/working/B13F0942/p//System.Reflection.Metadata.dll:/tmp/helix/working/B13F0942/p//System.Reflection.MetadataLoadContext.dll:/tmp/helix/working/B13F0942/p//System.Reflection.Primitives.dll:/tmp/helix/working/B13F0942/p//System.Reflection.TypeExtensions.dll:/tmp/helix/working/B13F0942/p//System.Resources.Extensions.dll:/tmp/helix/working/B13F0942/p//System.Resources.Reader.dll:/tmp/helix/working/B13F0942/p//System.Resources.ResourceManager.dll:/tmp/helix/working/B13F0942/p//System.Resources.Writer.dll:/tmp/helix/working/B13F0942/p//System.Runtime.Caching.dll:/tmp/helix/working/B13F0942/p//System.Runtime.CompilerServices.Unsafe.dll:/tmp/helix/working/B13F0942/p//System.Runtime.CompilerServices.VisualC.dll:/tmp/helix/working/B13F0942/p//System.Runtime.dll:/tmp/helix/working/B13F0942/p//System.Runtime.Extensions.dll:/tmp/helix/working/B13F0942/p//System.Runtime.Handles.dll:/tmp/helix/working/B13F0942/p//System.Runtime.InteropServices.dll:/tmp/helix/working/B13F0942/p//System.Runtime.InteropServices.RuntimeInformation.dll:/tmp/helix/working/B13F0942/p//System.Runtime.Intrinsics.dll:/tmp/helix/working/B13F0942/p//System.Runtime.Loader.dll:/tmp/helix/working/B13F0942/p//System.Runtime.Numerics.dll:/tmp/helix/working/B13F0942/p//System.Runtime.Serialization.dll:/tmp/helix/working/B13F0942/p//System.Runtime.Serialization.Formatters.dll:/tmp/helix/working/B13F0942/p//System.Runtime.Serialization.Json.dll:/tmp/helix/working/B13F0942/p//System.Runtime.Serialization.Primitives.dll:/tmp/helix/working/B13F0942/p//System.Runtime.Serialization.Xml.dll:/tmp/helix/working/B13F0942/p//System.Security.AccessControl.dll:/tmp/helix/working/B13F0942/p//System.Security.Claims.dll:/tmp/helix/working/B13F0942/p//System.Security.Cryptography.Algorithms.dll:/tmp/helix/working/B13F0942/p//System.Security.Cryptography.Cng.dll:/tmp/helix/working/B13F0942/p//System.Security.Cryptography.Csp.dll:/tmp/helix/working/B13F0942/p//System.Security.Cryptography.Encoding.dll:/tmp/helix/working/B13F0942/p//System.Security.Cryptography.OpenSsl.dll:/tmp/helix/working/B13F0942/p//System.Security.Cryptography.Pkcs.dll:/tmp/helix/working/B13F0942/p//System.Security.Cryptography.Primitives.dll:/tmp/helix/working/B13F0942/p//System.Security.Cryptography.ProtectedData.dll:/tmp/helix/working/B13F0942/p//System.Security.Cryptography.X509Certificates.dll:/tmp/helix/working/B13F0942/p//System.Security.Cryptography.Xml.dll:/tmp/helix/working/B13F0942/p//System.Security.dll:/tmp/helix/working/B13F0942/p//System.Security.Permissions.dll:/tmp/helix/working/B13F0942/p//System.Security.Principal.dll:/tmp/helix/working/B13F0942/p//System.Security.Principal.Windows.dll:/tmp/helix/working/B13F0942/p//System.Security.SecureString.dll:/tmp/helix/working/B13F0942/p//System.ServiceModel.Syndication.dll:/tmp/helix/working/B13F0942/p//System.ServiceModel.Web.dll:/tmp/helix/working/B13F0942/p//System.ServiceProcess.dll:/tmp/helix/working/B13F0942/p//System.ServiceProcess.ServiceController.dll:/tmp/helix/working/B13F0942/p//System.Speech.dll:/tmp/helix/working/B13F0942/p//System.Text.Encoding.CodePages.dll:/tmp/helix/working/B13F0942/p//System.Text.Encoding.dll:/tmp/helix/working/B13F0942/p//System.Text.Encoding.Extensions.dll:/tmp/helix/working/B13F0942/p//System.Text.Encodings.Web.dll:/tmp/helix/working/B13F0942/p//System.Text.Json.dll:/tmp/helix/working/B13F0942/p//System.Text.RegularExpressions.dll:/tmp/helix/working/B13F0942/p//System.Threading.AccessControl.dll:/tmp/helix/working/B13F0942/p//System.Threading.Channels.dll:/tmp/helix/working/B13F0942/p//System.Threading.dll:/tmp/helix/working/B13F0942/p//System.Threading.Overlapped.dll:/tmp/helix/working/B13F0942/p//System.Threading.Tasks.Dataflow.dll:/tmp/helix/working/B13F0942/p//System.Threading.Tasks.dll:/tmp/helix/working/B13F0942/p//System.Threading.Tasks.Extensions.dll:/tmp/helix/working/B13F0942/p//System.Threading.Tasks.Parallel.dll:/tmp/helix/working/B13F0942/p//System.Threading.Thread.dll:/tmp/helix/working/B13F0942/p//System.Threading.ThreadPool.dll:/tmp/helix/working/B13F0942/p//System.Threading.Timer.dll:/tmp/helix/working/B13F0942/p//System.Transactions.dll:/tmp/helix/working/B13F0942/p//System.Transactions.Local.dll:/tmp/helix/working/B13F0942/p//System.ValueTuple.dll:/tmp/helix/working/B13F0942/p//System.Web.dll:/tmp/helix/working/B13F0942/p//System.Web.HttpUtility.dll:/tmp/helix/working/B13F0942/p//System.Windows.dll:/tmp/helix/working/B13F0942/p//System.Windows.Extensions.dll:/tmp/helix/working/B13F0942/p//System.Xml.dll:/tmp/helix/working/B13F0942/p//System.Xml.Linq.dll:/tmp/helix/working/B13F0942/p//System.Xml.ReaderWriter.dll:/tmp/helix/working/B13F0942/p//System.Xml.Serialization.dll:/tmp/helix/working/B13F0942/p//System.Xml.XDocument.dll:/tmp/helix/working/B13F0942/p//System.Xml.XmlDocument.dll:/tmp/helix/working/B13F0942/p//System.Xml.XmlSerializer.dll:/tmp/helix/working/B13F0942/p//System.Xml.XPath.dll:/tmp/helix/working/B13F0942/p//System.Xml.XPath.XDocument.dll:/tmp/helix/working/B13F0942/p//TraceReloggerLib.dll:/tmp/helix/working/B13F0942/p//WindowsBase.dll:/tmp/helix/working/B13F0942/p//xunit.abstractions.dll:/tmp/helix/working/B13F0942/p//xunit.assert.dll:/tmp/helix/working/B13F0942/p//xunit.console.dll:/tmp/helix/working/B13F0942/p//xunit.core.dll:/tmp/helix/working/B13F0942/p//xunit.execution.dotnet.dll:/tmp/helix/working/B13F0942/p//xunit.performance.api.dll:/tmp/helix/working/B13F0942/p//xunit.performance.core.dll:/tmp/helix/working/B13F0942/p//xunit.performance.execution.dll:/tmp/helix/working/B13F0942/p//xunit.performance.metrics.dll:/tmp/helix/working/B13F0942/p//xunit.runner.reporters.netcoreapp10.dll:/tmp/helix/working/B13F0942/p//xunit.runner.utility.netcoreapp10.dll:
    APP_PATHS = /private/tmp/helix/working/B13F0942/w/A9CE0939/e/Interop/ObjectiveC/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI/
    APP_NI_PATHS = /private/tmp/helix/working/B13F0942/w/A9CE0939/e/Interop/ObjectiveC/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI/NI/:/private/tmp/helix/working/B13F0942/w/A9CE0939/e/Interop/ObjectiveC/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI/
    NATIVE_DLL_SEARCH_DIRECTORIES = /private/tmp/helix/working/B13F0942/w/A9CE0939/e/Interop/ObjectiveC/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI/:/tmp/helix/working/B13F0942/p/:
Managed assembly: /private/tmp/helix/working/B13F0942/w/A9CE0939/e/Interop/ObjectiveC/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI.dll
Arguments (0): 
Expected: 100
Actual: 255
END EXECUTION - FAILED
Test Harness Exitcode is : 1
To run the test:
> set CORE_ROOT=/tmp/helix/working/B13F0942/p
> /private/tmp/helix/working/B13F0942/w/A9CE0939/e/Interop/ObjectiveC/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI/ObjectiveCMarshalAPI.sh

Thanks, already edited Historical failures in this comment.

BruceForstall added a commit to BruceForstall/runtime that referenced this issue Jun 22, 2021
@BruceForstall BruceForstall added the blocking-outerloop Blocking the 'runtime-coreclr outerloop' and 'runtime-libraries-coreclr outerloop' runs label Jun 22, 2021
@AaronRobinsonMSFT
Copy link
Member Author

I have been able to reproduce this locally. This only triggers when export COMPlus_GCStress=3, setting to export COMPlus_GCStress=F passes.

@AaronRobinsonMSFT
Copy link
Member Author

I've narrowed this down to a single line that can fix the issue:

Assert.AreEqual(obj.Contract, new IntPtr(p));

If I change the above to Assert.IsTrue(obj.Contract == new IntPtr(p)); the test passes consistently locally and changing back continues to fail. I have been examining JitDumps of the issue but nothing jumps out as wrong in the code-gen so I am reaching out to the JIT team for guidance.

/cc @jkoritzinsky @elinor-fung

Test script
#!/bin/bash

export COMPlus_GCStress=0x3
export COMPlus_TieredCompilation=0
export COMPlus_DbgEnableMiniDump=1
export COMPlus_DbgMiniDumpName=/src/runtime/artifacts/tests/coredump.%d.dmp
#export COMPlus_JitDump=Validate_AllocAndFreeAnotherHandle

for i in {1..100}; do
    echo $i

    /src/runtime/artifacts/tests/coreclr/OSX.arm64.Checked/Tests/Core_Root/corerun ObjectiveCMarshalAPI.dll

    # if the return code is not expected, print it and error out.
    rc=$?
    if [ $rc -ne 100 ]; then
        echo Result: $rc
        echo Process failed.
        exit
    fi
done

echo Complete.

@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Jul 28, 2021
@ghost ghost closed this as completed in #56441 Jul 30, 2021
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Jul 30, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Aug 29, 2021
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Interop-coreclr blocking-outerloop Blocking the 'runtime-coreclr outerloop' and 'runtime-libraries-coreclr outerloop' runs GCStress os-macos-bigsur (macOS11)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants