[Mono-bugs] [Bug 77572][Nor] New - Segmentation fault in
asynchronous I/O
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Feb 15 20:32:36 EST 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 mes at zeroc.com.
http://bugzilla.ximian.com/show_bug.cgi?id=77572
--- shadow/77572 2006-02-15 20:32:36.000000000 -0500
+++ shadow/77572.tmp.29927 2006-02-15 20:32:36.000000000 -0500
@@ -0,0 +1,114 @@
+Bug#: 77572
+Product: Mono: Runtime
+Version: 1.1
+OS: GNU/Linux [Other]
+OS Details: Linux CentOS 4.2 i386
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: io-layer
+AssignedTo: dick at ximian.com
+ReportedBy: mes at zeroc.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Segmentation fault in asynchronous I/O
+
+Description of Problem:
+
+Running the code below results in a segmentation fault.
+
+Steps to reproduce the problem:
+
+Compile and run the following program.
+
+using System;
+using System.Net;
+using System.Net.Sockets;
+
+sealed class Client
+{
+ public static void Main(string[] args)
+ {
+ try
+ {
+ Socket fd = new Socket(AddressFamily.InterNetwork,
+SocketType.Dgram, ProtocolType.Udp);
+ IPHostEntry e = Dns.GetHostByName(Dns.GetHostName());
+ IPEndPoint endp = new IPEndPoint(e.AddressList[0], 10000);
+ fd.Bind(endp);
+
+ byte[] buf = new byte[1000];
+ EndPoint peerAddr = new IPEndPoint(IPAddress.Any, 0);
+ fd.BeginReceiveFrom(buf, 0, 1000, SocketFlags.None, ref
+peerAddr, null, null);
+
+ fd.Close();
+ }
+ catch(Exception e)
+ {
+ Console.WriteLine(e.ToString());
+ }
+ }
+}
+
+
+Actual Results:
+
+=================================================================
+Got a SIGSEGV while executing native code. This usually indicates
+a fatal error in the mono runtime or one of the native libraries
+used by your application.
+=================================================================
+
+Stacktrace:
+
+in <0x4> (wrapper managed-to-native)
+System.Net.Sockets.Socket:RecvFrom_internal
+(intptr,byte[],int,int,System.Net.Sockets.SocketFlags,System.Net.SocketAddress&,int&)
+in <0xffffff7b> (wrapper managed-to-native)
+System.Net.Sockets.Socket:RecvFrom_internal
+(intptr,byte[],int,int,System.Net.Sockets.SocketFlags,System.Net.SocketAddress&,int&)
+in <0x4b> System.Net.Sockets.Socket:ReceiveFrom_nochecks
+(byte[],int,int,System.Net.Sockets.SocketFlags,System.Net.EndPoint&)
+in <0x5b> Worker:ReceiveFrom ()
+in <0xffff8630> (wrapper delegate-invoke)
+System.MulticastDelegate:invoke_void ()
+in <0x7aa7fa8> (wrapper runtime-invoke) System.Object:runtime_invoke_void
+(object,intptr,intptr,intptr)
+
+Native stacktrace:
+
+ mono(mono_handle_native_sigsegv+0x7c) [0x813b748]
+ mono [0x81298e4]
+ /lib/tls/libpthread.so.0 [0xccf7c0]
+ mono [0x80df387]
+ [0x609210]
+ [0x609154]
+ [0x609084]
+ [0x609010]
+ [0x601611]
+ mono(mono_runtime_invoke_array+0x1bd) [0x80a9591]
+ mono(mono_message_invoke+0xbc) [0x80a9ff4]
+ mono [0x80dced6]
+ mono [0x80dd106]
+ mono [0x80acd79]
+ mono [0x80ea2f5]
+ mono [0x80fb03d]
+ /lib/tls/libpthread.so.0 [0xcc9341]
+ /lib/tls/libc.so.6(__clone+0x5e) [0xc346fe]
+Abort
+
+Expected Results:
+
+Successful termination without seg fault.
+
+How often does this happen?
+
+Every time.
+
+Additional Information:
+
+None.
More information about the mono-bugs
mailing list