[Mono-bugs] [Bug 689964] New: HttpListener.GetContext throws NullReferenceException with soft debugger attached

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Apr 26 11:27:57 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=689964

https://bugzilla.novell.com/show_bug.cgi?id=689964#c0


           Summary: HttpListener.GetContext throws NullReferenceException
                    with soft debugger attached
    Classification: Mono
           Product: Mono: Debugger
           Version: 2.10.x
          Platform: Other
        OS/Version: Windows 7
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: backend
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: sgsghu at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Description of Problem:
HttpListener.GetContext call does not block, it throws NullReferenceException
instead when soft debugger attached. 

Steps to reproduce the problem:
1. Run the following code with Mono Soft Debugger
 HttpListener listener = new HttpListener();
 listener.Prefixes.Add("http://*:8889/");
 listener.Start();
 listener.GetContext();
 listener.Stop();
 listener.Close();

Actual Results: 
Following exception at GetContext call:
System.NullReferenceException: Object reference not set to an instance of an
object
  at System.Net.HttpListener.EndGetContext (IAsyncResult asyncResult) [0x000b0]
in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.10.2\mcs\class\System\System.Net\HttpListener.cs:236 
  at System.Net.HttpListener.GetContext () [0x00030] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.10.2\mcs\class\System\System.Net\HttpListener.cs:256 

Expected Results:
GetContext call blocks until the first request.


How often does this happen? 
Always.

Additional Information:
This bug appeared only on Windows (tested with Mono Virtual Machine too).

-- 
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