[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 23:11:12 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-29 19:08:00.000000000 -0400
+++ shadow/75239.tmp.8254	2005-06-29 23:11:12.000000000 -0400
@@ -821,6 +821,38 @@
 
 Thread 24 (Thread 1083894576 (LWP 19829)):
 #0  0xffffe002 in ?? ()
 #1  0x400ae484 in start_thread () from /lib/tls/libpthread.so.0
 #0  0xffffe002 in ?? ()
 
+
+------- Additional Comments From bmaurer at users.sf.net  2005-06-29 23:11 -------
+I applied this patch:
+
+Index: socket-io.c
+===================================================================
+--- socket-io.c (revision 46614)
++++ socket-io.c (working copy)
+@@ -2566,15 +2566,15 @@
+
+ extern MonoBoolean
+ves_icall_System_Net_Dns_GetHostName_internal(MonoString **h_name)
+ {
+-       guchar hostname[256];
++       guchar hostname[256] = { 'a', 'b', 'c', 'd', '\0' };
+        int ret;
+
+        MONO_ARCH_SAVE_REGS;
+
+-       ret = gethostname (hostname, sizeof (hostname));
+-       if(ret==-1) {
+-               return(FALSE);
+-       }
++       //ret = gethostname (hostname, sizeof (hostname));
++       //if(ret==-1) {
++       //      return(FALSE);
++       //}
+
+        *h_name=mono_string_new(mono_domain_get (), hostname);
+
+And still got issues. This leads me to believe there is something
+wrong inside the GC.


More information about the mono-bugs mailing list