[Mono-dev] Can anyone explain this to me? It's the Bermuda triangle.

Rolf Bjarne Kvinge rolf at xamarin.com
Tue Apr 22 13:42:33 UTC 2014


Hi,

It's possible if the exception is thrown on another thread.

Try adding an AppDomain.UnhandledException handler and print out the thread
id (and do the same in OnRemoteCertificateValidation). Comparing the thread
ids will show you if this is happening in the same thread or not.

Rolf


On Tue, Apr 22, 2014 at 2:56 PM, Miljenko Cvjetko <mcvjetko at holisticware.net
> wrote:

>  Hi
>
> Console.Error is Textwriter maybe calling Flush()???
>
> I can recall that not flushing cout, cerr in c++ might lead to loss of
> output.. This could be the case.
>
> mel
>
>
>
> On 20140421 22:23 , Edward Ned Harvey (mono) wrote:
>
>  I'm trying to figure out why mono is rejecting one of my server's certs
> (while not rejecting some others).  I sprinkled WriteLines in the mono
> source, and I ran with --debug --trace
>
>
>
> The last line I ever reach is 635.  And then exceptions are thrown.
> Neither 638 nor 641 is ever displayed.  I don't know of any way this is
> physically possible.  I do have 6,000 lines of trace log starting with the
> WriteLine at 635, if anybody's interested to look at it...
>
>
>
> (from
> 'mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslClientStream.cs')
>
>
>
> internal override bool OnRemoteCertificateValidation(X509Certificate
> certificate, int[] errors)
>
> {
>
>     System.Console.Error.WriteLine("NEDDEBUG
> 'mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslClientStream.cs'
> line 635");
>
>     if (this.ServerCertValidation != null)
>
>     {
>
>         System.Console.Error.WriteLine("NEDDEBUG
> 'mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslClientStream.cs'
> line 638");
>
>         return this.ServerCertValidation(certificate, errors);
>
>     }
>
>     System.Console.Error.WriteLine("NEDDEBUG
> 'mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslClientStream.cs'
> line 641");
>
>
>
>     return (errors != null && errors.Length == 0);
>
> }
>
>
>
>
>
>
> _______________________________________________
> Mono-devel-list mailing listMono-devel-list at lists.ximian.comhttp://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>


-- 
Explore Xamarin University <http://xamarin.com/university>--unlimited, live,
online, mobile training around the clock.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20140422/24174bd4/attachment.html>


More information about the Mono-devel-list mailing list