Repository navigation
Labels
JitStressCLR JIT issues involving JIT internal stress modesarch-arm64area-System.IOblocking-clean-ci-optionalBlocking optional rolling runsos-windowstest-failure
Milestone
Description
Run: runtime-coreclr libraries-jitstress 20220814.1
Failed test:
net7.0-windows-Release-arm64-CoreCLR_checked-no_tiered_compilation-Windows.10.Arm64v8.Open
- System.IO.Tests.RandomAccess_GetLength.ReturnsActualLengthForDevices(options: Asynchronous)
- System.IO.Tests.RandomAccess_GetLength.ReturnsActualLengthForDevices(options: None)
net7.0-windows-Release-arm64-CoreCLR_checked-jitstress1_tiered-Windows.10.Arm64v8.Open
- System.IO.Tests.RandomAccess_GetLength.ReturnsActualLengthForDevices(options: Asynchronous)
- System.IO.Tests.RandomAccess_GetLength.ReturnsActualLengthForDevices(options: None)
net7.0-windows-Release-arm64-CoreCLR_checked-jitminopts-Windows.10.Arm64v8.Open
- System.IO.Tests.RandomAccess_GetLength.ReturnsActualLengthForDevices(options: Asynchronous)
- System.IO.Tests.RandomAccess_GetLength.ReturnsActualLengthForDevices(options: None)
net7.0-windows-Release-arm64-CoreCLR_checked-jitstress1-Windows.10.Arm64v8.Open
- System.IO.Tests.RandomAccess_GetLength.ReturnsActualLengthForDevices(options: Asynchronous)
- System.IO.Tests.RandomAccess_GetLength.ReturnsActualLengthForDevices(options: None)
net7.0-windows-Release-arm64-CoreCLR_checked-jitstress2-Windows.10.Arm64v8.Open
- System.IO.Tests.RandomAccess_GetLength.ReturnsActualLengthForDevices(options: Asynchronous)
- System.IO.Tests.RandomAccess_GetLength.ReturnsActualLengthForDevices(options: None)
Error message:
System.IO.IOException : The process cannot access the file '\?\PhysicalDrive0' because it is being used by another process.
Stack trace
at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options) in /_/src/libraries/System.Private.CoreLib/src/Microsoft/Win32/SafeHandles/SafeFileHandle.Windows.cs:line 114
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode) in /_/src/libraries/System.Private.CoreLib/src/Microsoft/Win32/SafeHandles/SafeFileHandle.Windows.cs:line 47
at System.IO.Tests.RandomAccess_GetLength.ReturnsActualLengthForDevices(FileOptions options) in /_/src/libraries/System.IO.FileSystem/tests/RandomAccess/GetLength.cs:line 48
at InvokeStub_RandomAccess_GetLength.ReturnsActualLengthForDevices(Object, Object, IntPtr*)
at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
Metadata
Metadata
Assignees
Labels
JitStressCLR JIT issues involving JIT internal stress modesarch-arm64area-System.IOblocking-clean-ci-optionalBlocking optional rolling runsos-windowstest-failure
Activity
danmoseley commentedon Aug 15, 2022
1ae7c5f
Cc @virzak
virzak commentedon Aug 15, 2022
Should we catch IOException in the test case and rethrow unless the message contains a string: "because it is being used by another process"
I don't have better ideas and it seems that there are no other test cases for physical drives, so no blueprint on how to test them.
@adamsitnik
virzak commentedon Aug 15, 2022
Ideally, should probably use AttachVirtualDisk function and run all test cases against a virtual drive...
Don't fail the test when the file is in use, fixes dotnet#73925
Don't fail the test when the file is in use, fixes #73925 (#74083)
Don't fail the test when the file is in use, fixes #73925
Don't fail the test when the file is in use, fixes #73925 (#74094)