[Mono-bugs] [Bug 682619] ERROR building certificate chain: System.NullReferenceException: Object reference not set to an instance of an object

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Mar 25 08:30:37 EDT 2011



Sebastien Pouliot <spouliot at novell.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |NEEDINFO
       InfoProvider|                            |refic at psimerion.org
          Component|misc                        |System
                 CC|                            |spouliot at novell.com
            Product|Mono: Runtime               |Mono: Class Libraries

--- Comment #1 from Sebastien Pouliot <spouliot at novell.com> 2011-03-25 12:30:37 UTC ---
Since this occurs when building/validating a certificate chain it means the
code is executed against local data. It could be:

a) certificates you installed using either 'mozroots' or 'certmgr'; or

b) be a certificate that is downloaded while setting up an SSL session (which
could explain why this does not occur every time).

I won't be able to duplicate a) but my guess, from the application description,
is that you're hitting b)

Now I'm not likely to install/run a software (without source) with a disclaimer
such as "WARNING: this application will use lots of bandwidth (though you can
configure how much and stop using it at anytime), do NOT use it unless you have
an unlimited broadband connection!"

OTOH you can likely provide some extra details that I need to fix the issue.
First run the application using --debug, e.g.

mono --debug MJ12nodeMono.exe /s

Since you build your own mono that should give me the exact line numbers in the
stack trace. Attach the result (full stack trace) on this report.

The second step is the trace calls to the network classes.

mono --debug --trace=T:System.Net.WebClient MJ12nodeMono.exe /s

If that does not show anything, then try

mono --debug --trace=T:System.Net.HttpWebRequest MJ12nodeMono.exe /s

The "last" lines before your exception should include the URL being accessed
(please attach them to the bug report). That will let me download and test the
extact https web site that is causing the NRE.


Configure bugmail: https://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.

More information about the mono-bugs mailing list