[Mono-bugs] [Bug 410743] New: wapi leak in System.Diagnostic.Process

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Jul 21 00:10:37 EDT 2008


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


           Summary: wapi leak in System.Diagnostic.Process
           Product: Mono: Class Libraries
           Version: SVN
          Platform: All
        OS/Version: Linux
            Status: NEW
          Keywords: Code
          Severity: Major
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: mitchell.wheeler at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


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

Processes with Exited event callbacks, don't tend to free all related wapi
handles when disposed...

See attached for test case... The test case will produce the output below, when
it has an Exited event, however will run indefinitely (without leaking wapi
handles) when there is no Exited event.

Test Case (eventual) Output:

**
(/volumes/sda1p4/.home/nasrudin/Download/LinuxDiskSpaceUsage/bin/Debug/LinuxFreeDiskSpace.exe:24940):
WARNING **: CreateProcess: error creating process handle
exited

Unhandled Exception: System.InvalidOperationException: Process has not been
started.
  at System.Diagnostics.Process.get_HasExited () [0x0003b] in
/<snip>/mcs/class/System/System.Diagnostics/Process.cs:205 
  at (wrapper remoting-invoke-with-check)
System.Diagnostics.Process:get_HasExited ()
  at BugReport.MainClass.Main (System.String[] args) [0x00064] in
/<snip>/Main.cs:19


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