Skip to content

[Operational Issue]: Validate Signing fails on Linux: Unable to read beyond the end of the stream. #5526

Closed

Description

@akoeplinger

Error

After the fix for #5480 we see this: https://dev.azure.com/dnceng/internal/_build/results?buildId=2928196&view=logs&j=b4fb7013-6678-58a6-35fe-c4d63d1ffd3a&t=f6a3d248-f0ce-58f0-f301-4401df193c9f&s=88443c40-f44f-5ad2-2c9d-5e26a4f665d6

  Prepared 507 files to sign check...
  Running SignCheck...
/__w/1/s/eng/signing-validation.proj(20,7): error : SignCheck failed with exit code 0: System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
/__w/1/s/eng/signing-validation.proj(20,7): error :    at System.IO.BinaryReader.ReadUInt16()
/__w/1/s/eng/signing-validation.proj(20,7): error :    at Microsoft.SignCheck.Interop.PortableExecutable.IMAGE_DOS_HEADER.Read(String path) in /_/src/SignCheck/Microsoft.SignCheck/Interop/PortableExecutable/ImageDosHeader.cs:line 109
/__w/1/s/eng/signing-validation.proj(20,7): error :    at Microsoft.SignCheck.Verification.PortableExecutableVerifier.VerifySignature(String path, String parent, String virtualPath) in /_/src/SignCheck/Microsoft.SignCheck/Verification/PortableExecutableVerifier.cs:line 40
/__w/1/s/eng/signing-validation.proj(20,7): error :    at Microsoft.SignCheck.Verification.FileVerifier.VerifyFile(String path, String parent, String virtualPath, String containerPath) in /_/src/SignCheck/Microsoft.SignCheck/Verification/FileVerifier.cs:line 168
/__w/1/s/eng/signing-validation.proj(20,7): error :    at Microsoft.SignCheck.Verification.ArchiveVerifier.VerifyContent(SignatureVerificationResult svr) in /_/src/SignCheck/Microsoft.SignCheck/Verification/ArchiveVerifier.cs:line 80
/__w/1/s/eng/signing-validation.proj(20,7): error :    at Microsoft.SignCheck.Verification.ArchiveVerifier.VerifySupportedFileType(String path, String parent, String virtualPath) in /_/src/SignCheck/Microsoft.SignCheck/Verification/ArchiveVerifier.cs:line 41
/__w/1/s/eng/signing-validation.proj(20,7): error :    at Microsoft.SignCheck.Verification.LinuxPackageVerifier.VerifySignature(String path, String parent, String virtualPath) in /_/src/SignCheck/Microsoft.SignCheck/Verification/LinuxPackageVerifier.cs:line 18
/__w/1/s/eng/signing-validation.proj(20,7): error :    at Microsoft.SignCheck.Verification.SignatureVerificationManager.VerifyFiles(IEnumerable`1 files) in /_/src/SignCheck/Microsoft.SignCheck/Verification/SignatureVerificationManager.cs:line 133
/__w/1/s/eng/signing-validation.proj(20,7): error :    at SignCheckTask.SignCheck.Run() in /_/src/SignCheck/SignCheckTask/src/SignCheck.cs:line 407
  SignCheck completed.
  Signing validation completed.

Links

No response

Root Cause

unknown

Blocking

  • This issue is blocking

Affected Releases

  • .NET 10
  • .NET 10 (SDK band build)
  • .NET 11

Activity

  1. akoeplinger commented on Mar 19, 2026

    @akoeplinger
    MemberAuthor
  2. akoeplinger commented on Jul 6, 2026

    @akoeplinger
    MemberAuthor

    We don't see this anymore.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions