[Mono-bugs] [Bug 36388][Cri] New - Sockets
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Tue, 7 Jan 2003 10:52:54 -0500 (EST)
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 ebauermeister@t-online.de.
http://bugzilla.ximian.com/show_bug.cgi?id=36388
--- shadow/36388 Tue Jan 7 10:52:54 2003
+++ shadow/36388.tmp.14276 Tue Jan 7 10:52:54 2003
@@ -0,0 +1,82 @@
+Bug#: 36388
+Product: Mono/Runtime
+Version: unspecified
+OS: SuSE 8.1
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Critical
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: ebauermeister@t-online.de
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Sockets
+
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+Description of Problem:
+
+Mono will crash while a socket accept a connection.
+
+Steps to reproduce the problem:
+1. compile und run this code:
+
+namespace EnrBau.Server
+{
+ using System;
+ using System.Net;
+ using System.Net.Sockets;
+
+ public class Server
+ {
+ public static void Main(string[] args)
+ {
+ app=new Server();
+ app.RunApp(args);
+ }
+
+ private void RunApp(string[] args)
+ {
+ serverIPEndPoint=new IPEndPoint(IPAddress.Any,1234);
+ serverSocket=new Socket(AddressFamily.InterNetwork,
+ SocketType.Stream,
+ ProtocolType.Tcp);
+ serverSocket.Bind(serverIPEndPoint);
+ serverSocket.Blocking=true;
+ Console.WriteLine("ServerSocket listen on port 1234...");
+ serverSocket.Listen(0);
+ clientSocket=serverSocket.Accept();
+ }
+
+ private static Server app;
+ private IPEndPoint serverIPEndPoint;
+ private Socket serverSocket;
+ private Socket clientSocket;
+ }
+}
+
+Actual Results:
+
+From mono (linux and windows) i get following errors:
+
+Unhandled Exception: System.Net.Sockets.SocketException: Some sort of w32
+error occurred
+in (unmanaged) mono(mono_raise_exception+0x20) [0x80bb610]
+in (unmanaged)
+mono(ves_icall_System_Net_Sockets_Socket_Accept_internal+0x4d)
+[0x80d20b3]
+in <0x00013> 00 System.Net.Sockets.Socket:Accept ()
+in <0x000f5> 00 EnrBau.Server.Server:RunApp (string[])
+in <0x00041> 00 EnrBau.Server.Server:Main (string[])
+
+Expected Results:
+Waiting for a connection and accept the connection.
+
+How often does this happen?
+always
+
+Additional Information: