[Mono-bugs] [Bug 24334] New - Register Allocation error

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
7 May 2002 07:34:03 -0000


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 ndrochak@gol.com.

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

--- shadow/24334	Tue May  7 03:34:03 2002
+++ shadow/24334.tmp.32028	Tue May  7 03:34:03 2002
@@ -0,0 +1,50 @@
+Bug#: 24334
+Product: Mono/Runtime
+Version: unspecified
+OS: 
+OS Details: RedHat 7.2
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: ndrochak@gol.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Register Allocation error
+
+mono on linux is stopping with a Register allocation error in 
+System.Net.IPEndPoint.Create().  Well, actually it seems to stop just 
+before getting into the method, perhaps in the code that sets up the 
+parameter stack.  I put a Console.WriteLine in as the first line of code 
+in the Create() method, but it is not output before the crash.
+
+I extracted the bits from the unit test that was causing the error into 
+a "simple" test case:
+--------------------------------------
+using System;
+using System.Net;
+
+namespace NS {
+	class C {
+		public static int Main() {
+			long ip;
+			IPEndPoint endPoint2;
+		        IPEndPoint endPoint1;
+			const int MyPort = 42;
+			const string MyIPAddressString = "192.168.1.1";
+			IPAddress ipAddress;
+
+			ipAddress = IPAddress.Parse (MyIPAddressString);
+			ip = ipAddress.Address;
+	                endPoint1 = new IPEndPoint(ipAddress, MyPort);
+			endPoint2 = new IPEndPoint(ip, MyPort);
+			SocketAddress addr = endPoint1.Serialize();
+			EndPoint endPoint3 = endPoint2.Create(addr);
+			return 0;
+		}
+	}
+}