[Mono-bugs] [Bug 546743] New: Stepping in debugger sometimes freezes

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Oct 13 23:39:23 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=546743


           Summary: Stepping in debugger sometimes freezes
    Classification: Mono
           Product: Mono: Tools
           Version: MonoVS 0.5
          Platform: x86-64
        OS/Version: Windows XP
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Visual Studio Integration
        AssignedTo: jpobst at novell.com
        ReportedBy: emp.007 at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=322385)
 --> (http://bugzilla.novell.com/attachment.cgi?id=322385)
Test case

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.3)
Gecko/20090824 Firefox/3.5.3 (.NET CLR 4.0.20506)

I use "Debug Remotely in Mono" to debug some code that connects to a Postgres
database using Npgsql.

1           using (var conn = new NpgsqlConnection(connString))
            {
2               Console.WriteLine("Connecting to Postgres...");
3               conn.Open();
4               Console.WriteLine("Connection opened... will it freeze?");

5               Console.WriteLine("It didn't freeze this time!");
            }

If I set a breakpoint on line 3 and then, when the debugger hits the
breakpoint, press F10 to step over the code the program freezes after executing
line 4 and before executing line 5. I can see in the Linux terminal window that
the string "Connection opened... will it freeze?" has been written. This
doesn't happen every time. In this minimal test case it happens maybe 10-20% of
the time. In the bigger original application it happens about half the time. It
seems to happen more if I pause a bit before each Step Over command than if I
press F10 as quickly as possible. If I put the breakpoint on line 4 instead the
problem doesn't occur.

To recover I need to go to the Linux terminal window and press Control-C to
stop the debuggee.

Reproducible: Sometimes

Steps to Reproduce:
1. Open the attached project.
2. Make connString a valid connection string.
3. Set a breakpoint on the "conn.Open()" line.
4. Select "Debug Remotely in Mono"
5. When the breakpoint is hit press F10 twice, pausing a little before each
time.
6. Repeat until it freezes.
Actual Results:  
After executing line 4 Visual Studio remains in run mode, as if that line is
still executing. The terminal window in the Linux VM shows the string from line
4, but not the string from line 5.

Expected Results:  
The current statement highlighting should have moved to line 5 immediately.

Host: Windows XP Pro x64 SP2, Visual Studio 2008 Pro SP1
Guest: VMware image 0.3.3771, MonoVS 0.5.4128

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list