[Mono-bugs] [Bug 69869][Wis] New - Process.Kill crashes on closed process

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 24 Nov 2004 00:46:48 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by fawad@fawad.net.

http://bugzilla.ximian.com/show_bug.cgi?id=69869

--- shadow/69869	2004-11-24 00:46:48.000000000 -0500
+++ shadow/69869.tmp.19076	2004-11-24 00:46:48.000000000 -0500
@@ -0,0 +1,45 @@
+Bug#: 69869
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: fawad@fawad.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Process.Kill crashes on closed process
+
+Description of Problem: Killing an Process that's not running should throw
+an exception. However, as of the r36407, mono crashes instead of the Kill()
+call throwing an exception.
+ 
+Steps to reproduce the problem:
+1. Compile and execute the C# code:
+
+  public class Foo{
+          public static void Main(){
+                  System.Diagnostics.Process p=new
+System.Diagnostics.Process();
+                  p.Kill();
+          }
+  }
+
+Actual Results:
+Program crashes with error:
+
+** ERROR **: file handles.c: line 440 (_wapi_lookup_handle): assertion
+failed: ( GPOINTER_TO_UINT (handle) >= _wapi_fd_offset_table_size)
+aborting...
+Aborted
+
+
+Expected Results: InvalidOperationException should have been thrown
+
+How often does this happen? Every time