[Mono-bugs] [Bug 75239][Maj] Changed - DNS.GetHostName() and huge
number of threads
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Jun 29 18:26:27 EDT 2005
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 bmaurer at users.sf.net.
http://bugzilla.ximian.com/show_bug.cgi?id=75239
--- shadow/75239 2005-06-20 03:19:50.000000000 -0400
+++ shadow/75239.tmp.376 2005-06-29 18:26:27.000000000 -0400
@@ -1,16 +1,16 @@
Bug#: 75239
-Product: Mono: Class Libraries
+Product: Mono: Runtime
Version: 1.0
OS: GNU/Linux [Other]
OS Details: Linux skif 2.4.27 #1 SMP Thu Apr 14 15:25:11 MSD 2005 i686 athlon i386 GNU/Linux
Status: NEW
Resolution:
Severity: Unknown
-Priority: Normal
-Component: System
+Priority: Major
+Component: io-layer
AssignedTo: dick at ximian.com
ReportedBy: vguzev at yandex.ru
QAContact: mono-bugs at ximian.com
TargetMilestone: ---
URL:
Cc:
@@ -115,6 +115,38 @@
machine in order to get the same error...
------- Additional Comments From vguzev at yandex.ru 2005-06-20 03:19 -------
By the way, methods of DNS class such as GetHostName and
GetHostByName often hang on when I try to call them simultaneously on
different machines (more than 10) in multiple threads.
+
+------- Additional Comments From bmaurer at users.sf.net 2005-06-29 18:26 -------
+I had an easier time reproducing with this:
+
+using System;
+using System.Threading;
+using System.Net;
+
+class TestDNS {
+ static void X2 ()
+ {
+ for (int i = 0; i < 1000; i ++)
+ Dns.GetHostName();
+ Console.Write ('.');
+ }
+
+ static void X1 ()
+ {
+ new Thread (X2).Start ();
+ new Thread (X2).Start ();
+ }
+
+ static void Main ()
+ {
+ for (int i = 0; i < 3000; i++ )
+ new Thread (X1).Start ();
+ }
+}
+
+I get hangs and NREs pretty frequently on the smp box here. I had a
+harder time reproducing it on my box, but it is only a HT box, so
+maybe thats not good enough.
More information about the mono-bugs
mailing list