[Mono-bugs] [Bug 536194] New: Inifite loop in DataSet.Merge() with itself

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Sep 2 04:45:14 EDT 2009


           Summary: Inifite loop in DataSet.Merge() with itself
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: Sys.Data
        AssignedTo: bnc-blr-team-mono at forge.provo.novell.com
        ReportedBy: novell at hafner-software.de
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

Description of Problem:
If you invoke DataSet.Merge(DataSet), and if the supplied parameter is the same
instance as the one for which the method is invoked, then the method executed
forever and consumes an infinite amount of memory.

Code to reproduce the problem:
DataTable dataTable = new DataTable("Test");
DataSet dataSet = new DataSet("Test");
dataSet.Merge(dataSet); // <-- crashes here

Actual Results:
"dataSet.Merge(dataSet)" executes forever. Memory consumption increases
quickly. It will probably crash as soon as it consumed all available memory and
cannot allocate any more.

Expected Results:
The Microsoft implementation does nothing in this case and returns immediately.
I assume that they have an additional check at the very beginning of the
DataSet.Merge(DataSet) implementation that skips the whole merge process.

How often does this happen? 

Additional Information:
I assume that this bug occurs on all platforms and all systems. However, I
confirmed it on Ubuntu 9.04 x86 and x64 and on the suseLinux vmware appliance
provided by mono-project.com with mono  

I classified the severity as "critical" because I consider the behavior as s
"Crash" and "Severe Memory leak" I guess that a unit test and fix and is
quickly done.

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