http://bugzilla.novell.com/show_bug.cgi?id=594301
http://bugzilla.novell.com/show_bug.cgi?id=594301#c0 Summary: HTTPS problems after inactivity Classification: Mono Product: MonoTouch Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Critical Priority: P5 - None Component: Runtime AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: Customer Blocker: --- Description of Problem: When using HTTPS in our application, after there has been some time of inactivity (in most cases somewhere between 2-5 minutes, sometimes with the device suspending, sometimes not (this time happend during profiling with Instruments)), the app crashes in Mono.Security.X509.OSX509Certificates.SecTrustCreateWithCertificates. Steps to reproduce the problem: We're using a mixture of System.Net.WebClient and UIWebViews, sometimes also System.Net.HttpWebRequest, all with the same HTTPS url with a valid certificate. No handling for invalid certificates is used. Actual Results: The app crashes. Expected Results: The HTTPS request should work. How often does this happen? Often. Additional Information: Here is the stack trace from the xcode organizer console window: Wed Apr 7 11:26:26 unknown UIKitApplication:com.amtangee.amtangee[0xd3db][158] <Notice>: Stacktrace: Wed Apr 7 11:26:26 unknown UIKitApplication:com.amtangee.amtangee[0xd3db][158] <Notice>: at (wrapper managed-to-native) Mono.Security.X509.OSX509Certificates.SecTrustCreateWithCertificates (intptr,intptr,intptr&) <0xffffffff> Wed Apr 7 11:26:26 unknown UIKitApplication:com.amtangee.amtangee[0xd3db][158] <Notice>: at Mono.Security.X509.OSX509Certificates._TrustEvaluateSsl (Mono.Security.X509.X509CertificateCollection) <0x00248> Wed Apr 7 11:26:26 unknown UIKitApplication:com.amtangee.amtangee[0xd3db][158] <Notice>: at Mono.Security.X509.OSX509Certificates.TrustEvaluateSsl (Mono.Security.X509.X509CertificateCollection) <0x00023> Wed Apr 7 11:26:26 unknown UIKitApplication:com.amtangee.amtangee[0xd3db][158] <Notice>: at Mono.Security.Protocol.Tls.Handshake.Client.TlsServerCertificate.validateCertificates (Mono.Security.X509.X509CertificateCollection) <0x002f3> Wed Apr 7 11:26:26 unknown UIKitApplication:com.amtangee.amtangee[0xd3db][158] <Notice>: at Mono.Security.Protocol.Tls.Handshake.Client.TlsServerCertificate.ProcessAsTls1 () <0x000cb> Wed Apr 7 11:26:26 unknown UIKitApplication:com.amtangee.amtangee[0xd3db][158] <Notice>: at Mono.Security.Protocol.Tls.Handshake.HandshakeMessage.Process () <0x00053> Wed Apr 7 11:26:26 unknown UIKitApplication:com.amtangee.amtangee[0xd3db][158] <Notice>: at Mono.Security.Protocol.Tls.ClientRecordProtocol.ProcessHandshakeMessage (Mono.Security.Protocol.Tls.TlsStream) <0x000a3> Wed Apr 7 11:26:26 unknown UIKitApplication:com.amtangee.amtangee[0xd3db][158] <Notice>: at Mono.Security.Protocol.Tls.RecordProtocol.InternalReceiveRecordCallback (System.IAsyncResult) <0x002d7> Wed Apr 7 11:26:26 unknown UIKitApplication:com.amtangee.amtangee[0xd3db][158] <Notice>: at System.Net.Sockets.Socket/SocketAsyncResult.Complete () <0x0020b> Wed Apr 7 11:26:26 unknown UIKitApplication:com.amtangee.amtangee[0xd3db][158] <Notice>: at System.Net.Sockets.Socket/Worker.Receive () <0x00027> Wed Apr 7 11:26:26 unknown UIKitApplication:com.amtangee.amtangee[0xd3db][158] <Notice>: at (wrapper runtime-invoke) object.runtime_invoke_dynamic (intptr,intptr,intptr,intptr) <0x000c3> Wed Apr 7 11:26:26 unknown UIKitApplication:com.amtangee.amtangee[0xd3db][158] <Notice>: Native stacktrace: Wed Apr 7 11:26:26 unknown UIKitApplication:com.amtangee.amtangee[0xd3db][158] <Notice>: 0 AMTANGEE 0x00030450 0x0 + 197712 Wed Apr 7 11:26:26 unknown UIKitApplication:com.amtangee.amtangee[0xd3db][158] <Notice>: 1 AMTANGEE 0x0000bbe0 0x0 + 48096 Wed Apr 7 11:26:26 unknown UIKitApplication:com.amtangee.amtangee[0xd3db][158] <Notice>: 2 libSystem.B.dylib 0x327bb823 _sigtramp + 34 Wed Apr 7 11:26:26 unknown UIKitApplication:com.amtangee.amtangee[0xd3db][158] <Notice>: 3 CoreFoundation 0x32d890bd CFGetTypeID + 64 Wed Apr 7 11:26:26 unknown UIKitApplication:com.amtangee.amtangee[0xd3db][158] <Notice>: 4 Security 0x305a1634 SecTrustCreateWithCertificates + 236 Wed Apr 7 11:26:26 unknown UIKitApplication:com.amtangee.amtangee[0xd3db][158] <Notice>: 5 AMTANGEE 0x002f0e90 WriteZStream + 1337580 Wed Apr 7 11:26:26 unknown UIKitApplication:com.amtangee.amtangee[0xd3db][158] <Notice>: 6 ??? 0x0493e8ec 0x0 + 76802284 Wed Apr 7 11:26:26 unknown UIKitApplication:com.amtangee.amtangee[0xd3db][158] <Notice>: * Assertion: should not be reached at ./../../../mono/mini/mini-darwin.c:258 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
