[Mono-bugs] [Bug 435263] New: Leak with Response.WriteFile()

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Oct 14 11:17:25 EDT 2008


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


           Summary: Leak with Response.WriteFile()
           Product: Mono: Class Libraries
           Version: 2.0
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: informatique.internet at fiducial.fr
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


I've found where a memory leak in mono 2.0.

It appears on mono 1.9.1, 2.0 (i don't know if it happens on svn) but it
doesn't appears in mono 1.2.6

Test Case : try this page 

<%@ Page Language="C#" Inherits="TestExecute.Default" %>

public class Default : Page
        {

                protected override void OnLoad(System.EventArgs e)
                {
                        Response.Clear();
                        Response.WriteFile("/tmp/test.pdf");

                }
        }

Where /tmp/test.pdf is a >300kB  file

run xsp and do request 
for example :
 /usr/sbin/ab2 -c1 -n 10000  http://localhost:8080/

you'll see the memory growing and growing

I think this bug is the main cause of the out of memory crash on our CMS


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