Crashes when querying HTTPS via HttpClient

TonyDTonyD Antoine El DaherUSMember ✭✭✭

Hi - I've been getting random crashes whenever I do SSL requests. The issue appears to be in the Mono/native code. This is a simple Xamarin.Forms app that does HTTPS Post requests. Can someone suggest what the next steps would be and/or how to escalate this?

2015-05-16 11:01:59.171 TestProgram.iOS[18452:644201] warning: mono_class_from_mono_type: implement me 0x22

2015-05-16 11:01:59.171 TestProgram.iOS[18452:644201] error: * Assertion: should not be reached at ../../../../../mono/mono/metadata/class.c:6482
2015-05-16 11:01:59.175 TestProgram.iOS[18452:644201] critical: Stacktrace:

2015-05-16 11:01:59.175 TestProgram.iOS[18452:644201] critical: at <0xffffffff>
2015-05-16 11:01:59.175 TestProgram.iOS[18452:644201] critical: at Crimson.CommonCrypto.FastCryptorTransform.InternalTransformBlock (byte[],int,int,byte[],int) [0x00095] in /Users/builder/data/lanes/1503/6481535e/source/maccore/src/CommonCrypto/FastCryptorTransform.cs:170
2015-05-16 11:01:59.175 TestProgram.iOS[18452:644201] critical: at Crimson.CommonCrypto.FastCryptorTransform.TransformBlock (byte[],int,int,byte[],int) [0x000df] in /Users/builder/data/lanes/1503/6481535e/source/maccore/src/CommonCrypto/FastCryptorTransform.cs:132
2015-05-16 11:01:59.175 TestProgram.iOS[18452:644201] critical: at Mono.Security.Protocol.Tls.CipherSuite.EncryptRecord (byte[],byte[]) [0x0008c] in //Library/Frameworks/Xamarin.iOS.framework/Versions/8.10.0.267/src/mono/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/CipherSuite.cs:307
2015-05-16 11:01:59.176 TestProgram.iOS[18452:644201] critical: at Mono.Security.Protocol.Tls.RecordProtocol.encryptRecordFragment (Mono.Security.Protocol.Tls.ContentType,byte[]) [0x00047] in //Library/Frameworks/Xamarin.iOS.framework/Versions/8.10.0.267/src/mono/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/RecordProtocol.cs:894
2015-05-16 11:01:59.176 TestProgram.iOS[18452:644201] critical: at Mono.Security.Protocol.Tls.RecordProtocol.EncodeRecord (Mono.Security.Protocol.Tls.ContentType,byte[],int,int) [0x00085] in //Library/Frameworks/Xamarin.iOS.framework/Versions/8.10.0.267/src/mono/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/RecordProtocol.cs:838
2015-05-16 11:01:59.176 TestProgram.iOS[18452:644201] critical: at Mono.Security.Protocol.Tls.RecordProtocol.EncodeRecord (Mono.Security.Protocol.Tls.ContentType,byte[]) [0x00000] in //Library/Frameworks/Xamarin.iOS.framework/Versions/8.10.0.267/src/mono/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/RecordProtocol.cs:793
2015-05-16 11:01:59.176 TestProgram.iOS[18452:644201] critical: at Mono.Security.Protocol.Tls.RecordProtocol.EncodeHandshakeRecord (Mono.Security.Protocol.Tls.Handshake.HandshakeType) [0x0000e] in //Library/Frameworks/Xamarin.iOS.framework/Versions/8.10.0.267/src/mono/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/RecordProtocol.cs:862
2015-05-16 11:01:59.177 TestProgram.iOS[18452:644201] critical: at Mono.Security.Protocol.Tls.SslClientStream.NegotiateAsyncWorker (System.IAsyncResult) [0x0022e] in //Library/Frameworks/Xamarin.iOS.framework/Versions/8.10.0.267/src/mono/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslClientStream.cs:510
2015-05-16 11:01:59.177 TestProgram.iOS[18452:644201] critical: at (wrapper runtime-invoke) .runtime_invoke_void__this___object (object,intptr,intptr,intptr)
2015-05-16 11:01:59.177 TestProgram.iOS[18452:644201] critical:

Posts

  • StephenWilkinsonStephenWilkinson Stephen Wilkinson USMember ✭✭

    I know this is not super useful - but I'm getting this error too - very infrequently though. Not often enough to debug or have any kind of pattern to it.

  • NikiNiki Nikola Irinchev BGMember ✭✭✭

    You can file a bug on https://bugzilla.xamarin.com. If you can create a sample project that consistently reproduces the issue, be sure to attach it.

  • TonyDTonyD Antoine El Daher USMember ✭✭✭

    OK thanks - bug created.

    https://bugzilla.xamarin.com/show_bug.cgi?id=30487

    I also cannot repro it consistently - it happens at random times for random reasons. I'd say maybe 1/100-1/50 but it crashes the whole process. I wrapped it in a try catch but still crashed the process.

  • TonyDTonyD Antoine El Daher USMember ✭✭✭

    @StephenWilkinson any chance you are still getting repros? The xamarin team got back to me about this bug https://bugzilla.xamarin.com/show_bug.cgi?id=30487 and they are looking for symbolicated crash reports.

  • NuninzNuninz Nuno Horta USMember ✭✭

    It's happening the same to me...but just some times. It's very random

Sign In or Register to comment.