Skip to content

Test failure System.IO.Tests.RandomAccess_GetLength.ReturnsActualLengthForDevices(options: Asynchronous) #73925

Description

@v-wenyuxu

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)

Activity

  1. ghost added
    untriaged
    on Aug 15, 2022
  2. added
    JitStress
    blocking-clean-ci-optional
    and removed
    untriaged
    on Aug 15, 2022
  3. danmoseley commented on Aug 15, 2022

    @danmoseley
    Contributor
  4. virzak commented on Aug 15, 2022

    @virzak
    Contributor

    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

  5. virzak commented on Aug 15, 2022

    @virzak
    Contributor

    Ideally, should probably use AttachVirtualDisk function and run all test cases against a virtual drive...

  6. added this to the Future milestone on Aug 15, 2022
  7. added
    needs-further-triage
    on Aug 15, 2022
  8. added a commit that references this issue on Aug 17, 2022
    131ae23
  9. ghost added
    in-pr
    on Aug 17, 2022
  10. self-assigned this
    on Aug 17, 2022
  11. removed
    needs-further-triage
    on Aug 17, 2022
  12. added a commit that references this issue on Aug 17, 2022
    9f64566
  13. ghost removed
    in-pr
    on Aug 17, 2022
  14. added a commit that references this issue on Aug 17, 2022
    9907dfc
  15. added a commit that references this issue on Aug 18, 2022
    dc98f58
  16. ghost added
    in-pr
    on Aug 24, 2022
  17. ghost locked as resolved and limited conversation to collaborators on Sep 23, 2022
  18. ghost removed
    in-pr
    on Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

JitStressarch-arm64area-System.IOblocking-clean-ci-optionalos-windowstest-failure

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions