Skip to content

Crash caused by corrupted stack in System.Net.Quic tests #62613

Closed

Description

@jkotas

Crash dump: runfo get-helix-payload -j 5b5b3a98-af71-44f7-96d2-3e4df7dcae00 -w System.Net.Http.Functional.Tests -o c:\helix_payload\System.Net.Http.Functional.Tests

Hit by #62590

Activity

  1. ghost added
    untriagedNew issue has not been triaged by the area owner
    on Dec 10, 2021
  2. jkotas commented on Dec 10, 2021

    @jkotas
    MemberAuthor

    The crash is caused by stack corrupted around the call to ConfigurationLoadCredentialDelegate.

    There is one obvious interop problem in mismatched definition of CredentialConfig structure. The unmanaged version of this structure has AllowedCipherSuites field that is missing in the managed definition. This problem alone cannot explain the crash, there are likely more similar interop issues, potentially in interop calls done that happened earlier.

  3. wfurt commented on Dec 10, 2021

    @wfurt
    Member

    thanks for looking into it @jkotas. AFAIK the AllowedCipherSuites was added later AFAIK e.g. after the initial code was written and failed to notice the difference. There was debate that the low-level binding would move to msquic it self but that did not happened (yet?)

    cc: @nibanks @ThadHouse

  4. thhous-msft commented on Dec 10, 2021

    @thhous-msft

    The AllowedCipherSuites field is only read if QUIC_CREDENTIAL_FLAG_SET_ALLOWED_CIPHER_SUITES is passed as one of the flags. And it doesn't seem like that is happening from the .NET side, so I suspect its unrelated.

  5. jkotas commented on Dec 10, 2021

    @jkotas
    MemberAuthor

    Yes, I agree that the crash is unrelated to the mismatched definition of CredentialConfig. It seems to be regression in the runtime introduced by recent change (#62271)

  6. added a commit that references this issue on Dec 10, 2021
    1d69304
  7. ghost added
    in-prThere is an active PR which will close this issue when it is merged
    on Dec 10, 2021
  8. ghost removed
    in-prThere is an active PR which will close this issue when it is merged
    on Dec 10, 2021
  9. ghost locked as resolved and limited conversation to collaborators on Jan 9, 2022
  10. added this to the 7.0.0 milestone on Jan 11, 2022
  11. removed
    untriagedNew issue has not been triaged by the area owner
    on Oct 20, 2022
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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions