Skip to content

Test failure: System.Security.Cryptography.Tests.HmacSha3_384Tests.HmacSha3_384_Stream_MultipleOf4096_Async #132992

Closed

Description

@VincentBu

Failed in: runtime-coreclr libraries-pgo 20260830.1

Failed tests:

net11.0-linux-Release-x64-jitosr_stress_random-AzureLinux.3.Amd64.Open
- System.Security.Cryptography.Tests.HmacSha3_384Tests.HmacSha3_384_Stream_MultipleOf4096_Async
- System.Security.Cryptography.Tests.HmacSha1Tests.HmacSha1_Stream_NotMultipleOf4096_Async

Error message:

System.ArgumentNullException : Value cannot be null. (Parameter 'source')

Stack trace:

at System.ArgumentNullException.Throw(String paramName) in /_/src/libraries/System.Private.CoreLib/src/System/ArgumentNullException.cs:line 98
   at System.ArgumentNullException.ThrowIfNull(Object argument, String paramName) in /_/src/libraries/System.Private.CoreLib/src/System/ArgumentNullException.cs:line 59
   at System.Security.Cryptography.HMACStatic`1.HashDataAsync(ReadOnlyMemory`1 key, Stream source, CancellationToken cancellationToken) in /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/HMACStatic.cs:line 122
   at System.Security.Cryptography.Tests.HmacTests`1.VerifyHashDataStreamAllocatingAsync(Byte[] key, Stream stream, String output, Boolean memoryKey) in /_/src/libraries/System.Security.Cryptography/tests/HmacTests.cs:line 239
   at System.Security.Cryptography.Tests.HmacTests`1.VerifyRepeatingAsync(String input, Int32 repeatCount, String hexKey, String output) in /_/src/libraries/System.Security.Cryptography/tests/HmacTests.cs:line 124
   at System.Security.Cryptography.Tests.HmacSha3_384Tests.HmacSha3_384_Stream_MultipleOf4096_Async() in /_/src/libraries/System.Security.Cryptography/tests/HmacSha3_384Tests.cs:line 227
--- End of stack trace from previous location ---

Activity

  1. dotnet-policy-service commented on Sep 1, 2026

    @dotnet-policy-service
    Contributor

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

  2. added this to the Future milestone on Sep 1, 2026
  3. removed
    untriagedNew issue has not been triaged by the area owner
    on Sep 1, 2026
  4. vcsjones commented on Sep 1, 2026

    @vcsjones
    Member

    I geniunely do not see how this is possible. We instantiate a stream, pass it down but it became null.

    1. Stream is instantiated here

    using (Stream stream = new DataRepeatingStream(input, repeatCount))
    {
    await VerifyHashDataStreamAllocatingAsync(key, stream, output, memoryKey: true);

    1. Gets passed here

      protected async Task VerifyHashDataStreamAllocatingAsync(byte[] key, Stream stream, string output, bool memoryKey)
      {
      byte[] expected = ByteUtils.HexToByteArray(output);
      byte[] hmac;
      if (memoryKey)
      {
      hmac = await HashDataOneShotAsync(new ReadOnlyMemory<byte>(key), stream, cancellationToken: default);

    2. Calls static generic here

      protected override ValueTask<byte[]> HashDataOneShotAsync(
      ReadOnlyMemory<byte> key,
      Stream source,
      CancellationToken cancellationToken) => HMACSHA3_384.HashDataAsync(key, source, cancellationToken);

    3. Is somehow null here

  5. added
    area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
    and removed on Sep 1, 2026
  6. vcsjones commented on Sep 1, 2026

    @vcsjones
    Member

    I am tentatively marking this as a possible codegen (OSR?) related failure since I cannot see how this happens otherwise.

  7. dotnet-policy-service commented on Sep 1, 2026

    @dotnet-policy-service
    Contributor

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

  8. modified the milestones: Future, 11.0.0 on Sep 4, 2026
  9. JulieLeeMSFT commented on Sep 4, 2026

    @JulieLeeMSFT
    Member

    I am tentatively marking this as a possible codegen (OSR?) related failure since I cannot see how this happens otherwise.

    @AndyAyersMS, PTAL.

  10. added a commit that references this issue on Sep 7, 2026
    e3845ab
  11. jakobbotsch commented on Sep 7, 2026

    @jakobbotsch
    Member

    This issue is async inlining related, I'll grab it.

  12. modified the milestones: 11.0.0, 12.0.0 on Sep 8, 2026
  13. locked and limited conversation to collaborators on Oct 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIblocking-clean-ci-optionalBlocking optional rolling runstest-bugProblem in test source code (most likely)

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions