You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Test failure: System.IO.Tests.StreamReader_StringCtorTests.NegativeOneBufferSize_ShouldNotThrowException #128019
System.IO.Tests.StreamReader_StringCtorTests.NegativeOneBufferSize_ShouldNotThrowException [FAIL]
System.ArgumentOutOfRangeException : bufferSize ('-1') must be a non-negative and non-zero value. (Parameter 'bufferSize')
Actual value was -1.
Stack Trace:
/_/src/libraries/System.Private.CoreLib/src/System/ArgumentOutOfRangeException.cs(100,0): at System.ArgumentOutOfRangeException.ThrowNegativeOrZero[T](T value, String paramName)
/_/src/libraries/System.Private.CoreLib/src/System/IO/StreamReader.cs(200,0): at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)
...
@AndyAyersMS and I were each unable to reproduce this issue, both tried a few hundred iterations with a variety of stress configurations. closing as no repro
Activity
dotnet-policy-service commentedon May 11, 2026
Tagging subscribers to this area: @dotnet/area-system-io
See info in area-owners.md if you want to be subscribed.
MihuBot commentedon May 11, 2026
I'm a bot. Here is a possible related and/or duplicate issue (I may be wrong):
dhartglassMSFT commentedon May 11, 2026
Failure also in linux-arm64-libraries-debug in PR testing https://dev.azure.com/dnceng-public/public/_build/results?buildId=1415481&view=results
kg commentedon May 11, 2026
Failed in (1):
Console Log: Console Log
Source: runtime-coreclr libraries-pgo / net11.0-linux-Release-x64-fullpgo-AzureLinux.3.Amd64.Open / System.IO.Tests.StreamReader_StringCtorTests.NegativeOneBufferSize_ShouldNotThrowException
Generated by ci-pipeline-monitor/scripts/update_github.py
VincentBu commentedon May 18, 2026
Failed in: runtime-coreclr libraries-pgo 20260517.1
Failed tests:
Error message:
Stack trace:
kg commentedon May 18, 2026
Failed in (1):
Console Log: Console Log
Source: runtime-coreclr libraries-pgo / net11.0-linux-Release-x64-jitosr_stress_random-AzureLinux.3.Amd64.Open / System.IO.Tests.StreamReader_StringCtorTests.NegativeOneBufferSize_ShouldNotThrowException
Generated by ci-pipeline-monitor/scripts/update_github.py
VincentBu commentedon Jun 29, 2026
Failed in: runtime-coreclr libraries-pgo 20260627.1
Failed tests:
Error message:
Stack trace:
adamsitnik commentedon Jul 14, 2026
The test passes
-1to theStreamReaderctor:runtime/src/libraries/System.Runtime/tests/System.IO.Tests/StreamReader/StreamReader.StringCtorTests.cs
Line 63 in 64fd096
Which should detect the value of the argument, override it with
DefaultBufferSize(const 1024) and the following check should not throw:runtime/src/libraries/System.Private.CoreLib/src/System/IO/StreamReader.cs
Lines 150 to 154 in 64fd096
runtime/src/libraries/System.Private.CoreLib/src/System/IO/StreamReader.cs
Line 27 in 64fd096
If it fails it's most likely a codegen bug.
dotnet-policy-service commentedon Jul 14, 2026
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.
JulieLeeMSFT commentedon Jul 14, 2026
@dhartglassMSFT, PTAL.
dhartglassMSFT commentedon Jul 28, 2026
Trying to repro, failure history is intermittent for this
dhartglassMSFT commentedon Aug 1, 2026
@AndyAyersMS and I were each unable to reproduce this issue, both tried a few hundred iterations with a variety of stress configurations. closing as no repro