Skip to content

Fix for a stress crash in ComAwareWeakReferenceNative::HasInteropInfo #94643

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 12, 2023

Conversation

VSadov
Copy link
Member

@VSadov VSadov commented Nov 12, 2023

In rare cases it is possible for a syncblock to be collected in the time after we detected its presence and before we get into ComAwareWeakReferenceNative::HasInteropInfo, so we should not assume the syncblock is still there and must null-check before looking inside it.

Fixes: #94579

@VSadov
Copy link
Member Author

VSadov commented Nov 12, 2023

     System.Net.Quic.Tests.MsQuicCipherSuitesPolicyTests.SupportedCipher_Success [FAIL]
      System.Net.Quic.QuicException : The connection timed out from inactivity.

The failure on musl appears to be #91757

@jkotas jkotas merged commit 5a4c140 into dotnet:main Nov 12, 2023
@VSadov
Copy link
Member Author

VSadov commented Nov 12, 2023

Thanks!!

@VSadov
Copy link
Member Author

VSadov commented Nov 12, 2023

/backport to release/8.0-staging

Copy link
Contributor

Started backporting to release/8.0-staging: https://github.com/dotnet/runtime/actions/runs/6843417160

@VSadov VSadov deleted the COMFix1 branch November 12, 2023 22:14
@github-actions github-actions bot locked and limited conversation to collaborators Dec 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ExecutionEngineException in WinForms app (Paint.NET) on .NET 8 RC2, which does not occur in .NET 7 (GCStress)
2 participants