Repository navigation
Open
Labels
arch-arm64area-System.Diagnostics.Processdisabled-testThe test is disabled in source code against the issueos-macos-bigsur (macOS11)
Milestone
Description
----- start Wed Mar 3 17:35:59 PST 2021 =============== To repro directly: =====================================================
pushd .
/tmp/helix/working/C24F0A5F/p/dotnet exec --runtimeconfig System.Diagnostics.Process.Tests.runtimeconfig.json --depsfile System.Diagnostics.Process.Tests.deps.json xunit.console.dll System.Diagnostics.Process.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=failing
popd
===========================================================================================================
/private/tmp/helix/working/C24F0A5F/w/A42D099B/e /private/tmp/helix/working/C24F0A5F/w/A42D099B/e
Discovering: System.Diagnostics.Process.Tests (method display = ClassAndMethod, method display options = None)
Discovered: System.Diagnostics.Process.Tests (found 247 of 310 test cases)
Starting: System.Diagnostics.Process.Tests (parallel test collections = on, max threads = 8)
System.Diagnostics.Tests.ProcessStartInfoTests.ShellExecute_Nano_Fails_Start [SKIP]
Condition(s) not met: "IsWindowsNanoServer"
System.Diagnostics.Tests.ProcessTests.ProcessStart_UseShellExecute_OnWindows_OpenMissingFile_Throws [SKIP]
Condition(s) not met: "HasWindowsShell"
Darwin
System.Diagnostics.Tests.ProcessTests.ProcessStart_UseShellExecute_OnWindows_DoesNotThrow [SKIP]
Condition(s) not met: "HasWindowsShell"
System.Diagnostics.Tests.ProcessTests.TestProcessRecycledPid [SKIP]
Condition(s) not met: "IsStressModeEnabledAndRemoteExecutorSupported"
Usage: dotnet [options]
Usage: dotnet [path-to-application]
Options:
-h|--help Display help.
--info Display .NET information.
--list-sdks Display the installed SDKs.
--list-runtimes Display the installed runtimes.
path-to-application:
The path to an application .dll file to execute.
System.Diagnostics.Tests.ProcessTests.TestVirtualMemorySize64 [FAIL]
Assert.InRange() Failure
Range: (1 - 9223372036854775807)
Actual: 0
Stack Trace:
/_/src/libraries/System.Diagnostics.Process/tests/ProcessTests.cs(742,0): at System.Diagnostics.Tests.ProcessTests.TestVirtualMemorySize64()
in OSX, programToOpenWith is /usr/bin/open, while ProcessName is dotnet.
in OSX, programToOpenWith is /usr/bin/nano, while ProcessName is dotnet.
Finished: System.Diagnostics.Process.Tests
=== TEST EXECUTION SUMMARY ===
System.Diagnostics.Process.Tests Total: 307, Errors: 0, Failed: 1, Skipped: 4, Time: 17.581s
/private/tmp/helix/working/C24F0A5F/w/A42D099B/e
----- end Wed Mar 3 17:36:17 PST 2021 ----- exit code 1 ----------------------------------------------------------/cc @sandreenko Might be an ABI issue ???
Metadata
Metadata
Assignees
Labels
arch-arm64area-System.Diagnostics.Processdisabled-testThe test is disabled in source code against the issueos-macos-bigsur (macOS11)
Activity
sdmaclea commentedon Mar 9, 2021
Seems to be possibly an intermittent failure. It didn't fail in one of my runs, but it did fail again in https://dev.azure.com/dnceng/public/_build/results?buildId=1028375
sandreenko commentedon Jun 5, 2021
@sdmaclea I think it is the same intermittent failure that you are fighting with not related to JitStress but happening there oftener because of the longer runs. Feel free to assign it back if it stays after your fix.
sandreenko commentedon Jun 6, 2021
I left it running for a night yesterday (just the single test) and it shows some errors:
looks like it still exists and my initial testing was not lucky to catch it. I will return the exclusion. It is suspicious that the failures happened one after each other and showed this
The folder [/Users/seandree/git/runtime/artifacts/bin/testhost/net6.0-OSX-Release-arm64/shared/Microsoft.NETCore.App/6.0.0/host/fxr] does not exist, could it be an OS issue with a blocked file or something?danmoseley commentedon Jul 29, 2021
this means libproc.GetProcessInfoById(pid).Value.ptinfo.pti_virtual_size was 0.
Interop definitions are in https://github.com/dotnet/runtime/blob/e7b743cae325d4720fceaf7f84f68aaaf7bb7dbe/src/libraries/Common/src/Interop/OSX/Interop.libproc.GetProcessInfoById.cs.
It all seems done correctly as far as I can see looking at
https://opensource.apple.com/source/xnu/xnu-7195.81.3/bsd/sys/proc_info.h.auto.html
https://opensource.apple.com/source/xnu/xnu-7195.81.3/bsd/kern/proc_info.c.auto.html
It also does check the return code of proc_pidinfo correctly.
The simplest explanation is that the API just occasionally returning 0 on Apple Silicon.
ericstj commentedon Jan 25, 2022
Can we take a closer look at this in 7.0? We'd like to remove test exceptions on Apple Silicon.