[Mono-bugs] [Bug 79397][Blo] Changed - runtime crash when socket handle greater than 1215
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Fri Oct 6 20:03:16 EDT 2006
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 miguel at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=79397
--- shadow/79397 2006-09-14 13:44:10.000000000 -0400
+++ shadow/79397.tmp.19766 2006-10-06 20:03:16.000000000 -0400
@@ -66,6 +66,38 @@
works fine with MS.NET
tested with :
uname -a = Linux ... 2.6.17.4 ... i686 GNU/Linux
mono -V = Mono JIT compiler version 1.1.17.1, ...
+
+------- Additional Comments From miguel at ximian.com 2006-10-06 20:03 -------
+Attached a complete test case:
+
+using System;
+using System.Collections;
+using System.IO;
+using System.Net;
+using System.Net.Sockets;
+
+class X {
+static void Main(string[] args)
+ {
+ ArrayList remember =new ArrayList();
+ // test for crash
+ while (remember.Count<10000)
+ {
+ Socket s = new Socket(AddressFamily.InterNetwork,
+SocketType.Stream, ProtocolType.Tcp);
+ remember.Add(s);
+ Console.Error.Write("try to poll handle : {0}
+:",s.Handle);
+ s.Poll(1, SelectMode.SelectRead);
+ Console.Error.WriteLine(" ok");
+ }
+
+ Console.Error.WriteLine("--end--");
+ Console.ReadLine();
+ }
+}
+
+I can reproduce this problem.
More information about the mono-bugs
mailing list