Skip to content

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

Merged
jkotas merged 1 commit intodotnet:mainfrom
VSadov:COMFix1
Nov 12, 2023
Merged

Fix for a stress crash in ComAwareWeakReferenceNative::HasInteropInfo#94643
jkotas merged 1 commit intodotnet:mainfrom
VSadov:COMFix1

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

@github-actions
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