Skip to content

Test Failure: System.IO.Tests.FileStream_Dispose.DisposeSuppressesStrategyFinalization #133121

Closed

Description

@JulieLeeMSFT

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1573826
Build error leg or test failing: System.IO.Tests.FileStream_Dispose.DisposeSuppressesStrategyFinalization

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorPattern": "System.IO.Tests.FileStream_Dispose.DisposeSuppressesStrategyFinalization*",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1573826
Error message validated: [System.IO.Tests.FileStream_Dispose.DisposeSuppressesStrategyFinalization*]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 9/2/2026 7:12:02 PM UTC

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1573826
Error message validated: [System.IO.Tests.FileStream_Dispose.DisposeSuppressesStrategyFinalization*]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 9/2/2026 7:12:09 PM UTC

Report

Build Repository Test Pull Request
1657565 dotnet/runtime System.IO.Tests.FileStream_Dispose.DisposeSuppressesStrategyFinalization
1653872 dotnet/runtime System.IO.Tests.FileStream_Dispose.DisposeSuppressesStrategyFinalization
1650408 dotnet/runtime System.IO.Tests.FileStream_Dispose.DisposeSuppressesStrategyFinalizationAsync
1647905 dotnet/runtime System.IO.Tests.FileStream_Dispose.DisposeSuppressesStrategyFinalizationAsync
1646487 dotnet/runtime System.IO.Tests.FileStream_Dispose.DisposeSuppressesStrategyFinalizationAsync
1644999 dotnet/runtime System.IO.Tests.FileStream_Dispose.DisposeSuppressesStrategyFinalizationAsync
1639101 dotnet/runtime System.IO.Tests.FileStream_Dispose.DisposeSuppressesStrategyFinalizationAsync
1637864 dotnet/runtime System.IO.Tests.FileStream_Dispose.DisposeSuppressesStrategyFinalizationAsync

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 8

Activity

  1. added
    Known Build Error
    on Sep 2, 2026
  2. added
    untriaged
    on Sep 2, 2026
  3. dotnet-policy-service commented on Sep 2, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @dotnet/area-system-io
    See info in area-owners.md if you want to be subscribed.

  4. added
    blocking-clean-ci-optional
    on Sep 2, 2026
  5. removed
    untriaged
    blocking-clean-ci-optional
    on Sep 9, 2026
  6. added this to the Future milestone on Sep 9, 2026
  7. added
    blocking-clean-ci-optional
    on Oct 14, 2026
  8. VincentBu commented on Oct 14, 2026

    @VincentBu
    Contributor

    Failed in: runtime-coreclr libraries-jitstress20261013.1

    Failed tests:

    net11.0-windows-Release-x86-jitstress2_tiered-Windows.10.Amd64.Open
    - System.IO.Tests.FileStream_Dispose.DisposeSuppressesStrategyFinalizationAsync(bufferSize: 1, options: None)
    - System.IO.Tests.FileStream_Dispose.DisposeSuppressesStrategyFinalizationAsync(bufferSize: 1, options: Asynchronous)
    
    System.IO.Tests.FileStream_Dispose.DisposeSuppressesStrategyFinalization
    - System.IO.Tests.FileStream_Dispose.DisposeSuppressesStrategyFinalization(bufferSize: 1, options: None)
    - System.IO.Tests.FileStream_Dispose.DisposeSuppressesStrategyFinalization(bufferSize: 1, options: Asynchronous)
    

    Error message:

    Assert.False() Failure\r\nExpected: False\r\nActual:   True
    

    Stack trace:

    at System.IO.Tests.FileStream_Dispose.VerifyStrategyFinalization(Func`1 factory, Boolean useAsync) in /_/src/libraries/System.Runtime/tests/System.IO.FileSystem.Tests/FileStream/Dispose.cs:line 487
    --- End of stack trace from previous location ---
    
  9. JulieLeeMSFT commented on Oct 28, 2026

    @JulieLeeMSFT
    MemberAuthor

    Failed in (1):

    Console Log: Console Log
    Source: runtime-coreclr libraries-jitstress2-jitstressregs / net11.0-linux-Release-arm-jitstress2_jitstressregs3-(Debian.13.Arm32.Open)[email protected]/dotnet-buildtools/prereqs:debian-13-helix-arm32v7@sha256:38844e127f1c1422bfbbfcb56012dfefc906d728f6a305bfd1aae70881ac6941 / System.IO.Tests.FileStream_Dispose.DisposeSuppressesStrategyFinalization

    Failed tests:

    - net11.0-linux-Release-arm-jitstress2_jitstressregs3-(Debian.13.Arm32.Open)[email protected]/dotnet-buildtools/prereqs:debian-13-helix-arm32v7@sha256:38844e127f1c1422bfbbfcb56012dfefc906d728f6a305bfd1aae70881ac6941
    - net11.0-linux-Release-arm64-jitstress2_jitstressregs3-AzureLinux.3.Arm64.Open
    - net11.0-windows-Release-x86-jitstress2_jitstressregs0x80-Windows.10.Amd64.Open
      - System.IO.Tests.FileStream_Dispose.DisposeSuppressesStrategyFinalization
      - System.IO.Tests.FileStream_Dispose.DisposeSuppressesStrategyFinalizationAsync
    
  10. JulieLeeMSFT commented on Oct 29, 2026

    @JulieLeeMSFT
    MemberAuthor

    @jeffhandley this test is constantly failing. Can you please fix it soon?

  11. modified the milestones: Future, 12.0.0 on Oct 29, 2026
  12. adamsitnik commented on Oct 30, 2026

    @adamsitnik
    Member

    This test was added 4 years ago in #64997 and not modified ever since.

    Since it fails only for JIT stress and uses following pattern to avoid JIT lifetime-extension issues, I think it's best to move it to codegen area and ask somebody from the JIT team to take a look.

    // separate method to avoid JIT lifetime-extension issues
    static async Task<WeakReference> EnsureFileStreamIsNotRooted(Func<FileStream> factory, bool useAsync)

  13. added
    JitStress
    area-CodeGen-coreclr
    and removed on Oct 30, 2026
  14. dotnet-policy-service commented on Oct 30, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
    See info in area-owners.md if you want to be subscribed.

  15. JulieLeeMSFT commented on Nov 2, 2026

    @JulieLeeMSFT
    MemberAuthor

    #136726 fixed the jitstress2_jitstressregs*  legs. They had 4 hits in 4 weekly runs before the fix and now pass.
    x86 jitstress2_tiered leg had 9 hits in about 30 daily runs, and it did not reproduce locally (~30% failure rate). We will let it run for a week to see if it is green for 7 days.

  16. JulieLeeMSFT commented on Nov 10, 2026

    @JulieLeeMSFT
    MemberAuthor

    Closing as fixed by #136726, which merged on 2026-11-02. The Known Issue report now shows 0 hits in the last 24 hours and in the last 7 days (clean for 7+ days since the fix; the last hit was build 1657565 on 2026-10-31), and there are no new failure reports in the comments. Please reopen if it happens again.

    Note

    This comment was posted with the help of GitHub Copilot (AI-generated content).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

JitStressKnown Build Errorarea-CodeGen-coreclrblocking-clean-ci-optional

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions