[Mono-bugs] [Bug 57928][Blo] New - System.Net.Dns.GetHostByName crashes

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 30 Apr 2004 18:34:51 -0400 (EDT)


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 umuff@quark.com.

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

--- shadow/57928	2004-04-30 18:34:51.000000000 -0400
+++ shadow/57928.tmp.18568	2004-04-30 18:34:51.000000000 -0400
@@ -0,0 +1,37 @@
+Bug#: 57928
+Product: Mono: Runtime
+Version: unspecified
+OS: Mac OS X 10.3
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Blocker
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: umuff@quark.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: System.Net.Dns.GetHostByName crashes
+
+The problem is that this machine does not have a dns entry, addrinfo_to_IPHostEntry will not find 
+a name --> text == 0 --> crash
+
+0x90006f40 in strlen ()
+(gdb) bt
+#0  0x90006f40 in strlen ()
+#1  0x01051548 in mono_string_new (domain=0x98f18, text=0x0) at object.c:2040
+#2  0x01082f40 in addrinfo_to_IPHostEntry (info=0x365c9f0, h_name=0xf03fd378, 
+h_aliases=0xf03fd37c, h_addr_list=0xf03fd384) at socket-io.c:2072
+#3  0x01083050 in ves_icall_System_Net_Dns_GetHostByName_internal (host=0x33d3600, 
+h_name=0xf03fd378, h_aliases=0xf03fd37c, h_addr_list=0xf03fd384) at socket-io.c:2108
+#4  0x034c24e8 in ?? ()
+#5  0x0100a498 in ves_pinvoke_method (frame=0xf03fd3a0, sig=0x34b4c90, addr=0x1082f98 
+<ves_icall_System_Net_Dns_GetHostByName_internal>, string_ctor=0, context=0xf04017b0) at 
+interp.c:725
+#6  0x0100d33c in ves_exec_method_with_context (frame=0xf03fd3a0, context=0xf04017b0) 
+at interp.c:1756
+#7  0x0100cd54 in ves_exec_method_with_context (frame=0xf03fd7b0, context=0xf04017b0) 
+at interp.c:1612