[Mono-bugs] [Bug 37550][Maj] Changed - Process.GetCurrentProcess() always throws SystemException

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Tue, 4 Feb 2003 09:01:06 -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 dick@ximian.com.

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

--- shadow/37550	Tue Feb  4 08:58:59 2003
+++ shadow/37550.tmp.21243	Tue Feb  4 09:01:06 2003
@@ -1,12 +1,12 @@
 Bug#: 37550
 Product: Mono/Class Libraries
 Version: unspecified
 OS: unknown
 OS Details: Linux reven 2.4.20-686 #2 Sun Dec 1 13:36:19 EST 2002 i686 unknown unknown GNU/Linux
-Status: NEW   
+Status: ASSIGNED   
 Resolution: 
 Severity: Unknown
 Priority: Major
 Component: System
 AssignedTo: dick@ximian.com                            
 ReportedBy: karaznie@acn.waw.pl               
@@ -64,6 +64,18 @@
 
 Additional Information:
 
 affects mono cvs and mono-19. On same
 machine and OS earlier versions of 
 mono works fine.
+
+------- Additional Comments From dick@ximian.com  2003-02-04 09:01 -------
+The problem is the linuxthreads assigns a different process ID to each
+thread, and the GetCurrentProcess() call is trying to do a lookup with
+getpid().
+
+It would have broken on previous versions of mono too, it's just luck
+that noone (including me) has tried calling GetCurrentProcess() in a
+subthread.
+
+I'll have to extend the private thread and process handle data.
+