-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Open
Description
We started getting large number of crashes in the field with a native crash in SafeDeleteSslContext.WriteToConnection.
Majority of the crashes happen on iOS with the following NativeAOT stack trace:
0 MailClient.Mobile.iOS 0x203eec3f8 _System_Net_Security_System_Net_SafeDeleteSslContext__WriteToConnection
1 Security 0x316b6ea3c <redacted>
2 Security 0x316b6e600 SSLClose
3 Security 0x316b6e3f8 SSLRead
4 MailClient.Mobile.iOS 0x202bd3ec0 AppleCryptoNative_SslRead (pal_ssl.c:389)
5 MailClient.Mobile.iOS 0x203ee3a74 _System_Net_Security_Interop_AppleCrypto__SslRead (LibraryImports.g.cs:2181)
6 MailClient.Mobile.iOS 0x203ef8b38 _System_Net_Security_System_Net_Security_SslStreamPal__DecryptMessage (SslStreamPal.OSX.cs:206)
7 MailClient.Mobile.iOS 0x203ef0ef4 _System_Net_Security_System_Net_Security_SslStream__DecryptData (SslStream.IO.cs:787)
8 MailClient.Mobile.iOS 0x204e080ac _System_Net_Security_System_Net_Security_SslStream__ReadAsyncInternal_d__170_1<T>__MoveNex
...
However, we also caught a very similar issue on Android in a debugger:

In both cases it's .NET 9.0.12.
The issues look vaguely similar to #117045, #117950 and #117982, which was fixed in .NET 10. If there's a possibility that the root cause is the same perhaps a backport to servicing would be warranted.
Reactions are currently unavailable