[Mono-bugs] [Bug 75722][Wis] New - Socket System call failed Error Code=10107

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Aug 5 05:18:24 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 yury at serdyuk.botik.ru.

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

--- shadow/75722	2005-08-05 05:18:24.000000000 -0400
+++ shadow/75722.tmp.20080	2005-08-05 05:18:24.000000000 -0400
@@ -0,0 +1,244 @@
+Bug#: 75722
+Product: Mono: Class Libraries
+Version: 1.0
+OS: other
+OS Details: Linux node-031 2.6.5-1.358smp #1 SMP Sat May 8 09:28:14 EDT 2004 x86_64 x86_64 x86_64 GNU/Linux
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: Yury at serdyuk.botik.ru               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Socket System call failed  Error Code=10107
+
+Description of Problem:
+
+System call failed with error code 10107 during readdressing to Infiniband
+interconnect
+
+Steps to reproduce the problem:
+
+We are trying to use Sockets Direct Protocol (SDP) over Infiniband
+interconnect (http://infiniband.sourceforge.net/NW/SDP/overview.htm)
+between machines
+
+This is performed by automatic readdressing from AF_INET address family 
+to AF_INET_SDP ( https://docs.mellanox.com/
+dm/ibgold/docs/IBGD_Stack_user_manual.pdf )
+
+1. Compile 
+>mcs server.cs
+>mcs client.cs
+
+2. Run
+a) at one machine ( say, with name "server" )
+>mono server.exe
+and
+b) at another machine
+>mono client.exe server
+
+
+Actual Results (on client machine):
+
+$ mono client.exe server
+
+** (client.exe:2938): WARNING **: _wapi_connect: Need to translate 89
+[Destination address required] into winsock error
+Error Message =System call failed
+Error Code =10107
+NativeErrorCode =10107
+SocketException : System.Net.Sockets.SocketException: System call failed
+in <0x0025d> System.Net.Sockets.Socket:Connect (System.Net.EndPoint remote_end)
+in <0x0019d> client:Main (System.String[] args)
+
+
+
+Expected Results:
+Correct message sending from client to server
+
+
+How often does this happen? 
+Always
+
+
+Additional Information:
+Code to test :
+//---------------------------server----------------------------//
+using System;
+using System.Net;
+using System.Net.Sockets;
+using System.Text;
+
+class server
+{
+        static void Main(string[] args)
+        {
+
+                byte[] buffer = new byte[10];
+
+                IPHostEntry ipHostInfo = Dns.Resolve(Dns.GetHostName());
+                IPAddress ipAddress = ipHostInfo.AddressList[0];
+
+                IPEndPoint localEndPoint = new IPEndPoint(ipAddress, 12521);
+
+                Socket listener = new Socket(AddressFamily.InterNetwork,
+                        SocketType.Stream, ProtocolType.Tcp );
+
+                try
+                {
+                        listener.Bind(localEndPoint);
+                        listener.Listen(5);
+
+                        Socket handler = listener.Accept();
+
+                        int bytesRec = handler.Receive(buffer, 0, 10,
+SocketFlags.None);
+
+                        Console.WriteLine ( Encoding.ASCII.GetString (
+buffer, 0, bytesRec ) );
+
+                        handler.Close();
+                }
+                catch (Exception e)
+                {
+                        Console.WriteLine(e.ToString());
+                        Console.Read();
+                }
+        }
+//--------------------------client-----------------------------//
+using System;
+using System.Net;
+using System.Net.Sockets;
+using System.Text;
+
+class client
+{
+        static void Main(string[] args)
+        {
+                if (args.Length < 1)
+                {
+                        Console.WriteLine("You must input host. Example :
+mono test_client.exe <host> ");
+                        return;
+                }
+
+                string host = args[0];
+                string str = "hello";
+                byte[] buffer = Encoding.ASCII.GetBytes(str.ToCharArray());
+
+                try
+                {
+                        IPHostEntry ipHostInfo = Dns.Resolve(host);
+                        IPAddress ipAddress = ipHostInfo.AddressList[0];
+                        IPEndPoint remoteEP = new IPEndPoint(ipAddress, 12521);
+
+                        Socket sender = new Socket(AddressFamily.InterNetwork,
+                                SocketType.Stream, ProtocolType.Tcp );
+
+                        try
+                        {
+                                sender.Connect(remoteEP);
+
+                                sender.Send(buffer, 0, buffer.Length,
+SocketFlags.None);
+
+                                sender.Shutdown(SocketShutdown.Both);
+                                sender.Close();
+
+                        }
+                        catch (ArgumentNullException ane)
+                        {
+                                Console.WriteLine("ArgumentNullException :
+{0}",ane.ToString());
+                                Console.Read();
+                        }
+                        catch (SocketException se)
+     Console.WriteLine("Error Message =" + se.Message + "\n" +
+                                                  "Error Code =" +
+se.ErrorCode + "\n" +
+                                                  "NativeErrorCode =" +
+se.NativeErrorCode );
+                                Console.WriteLine("SocketException :
+{0}",se.ToString());
+                                Console.Read();
+                        }
+                        catch (Exception e)
+                        {
+                                Console.WriteLine("Unexpected exception :
+{0}", e.ToString());
+                                Console.Read();
+                        }
+                }
+                catch(Exception ex)
+                {
+                        Console.WriteLine("ERROR : " + ex.Message +
+ex.ToString());
+                }
+        }
+
+Mono version :
+----------------------
+
+$ mono -V
+Mono JIT compiler version 1.1.8.2, (C) 2002-2005 Novell, Inc and
+Contributors. www.mono-project.com
+        TLS:           __thread
+        GC:            Included Boehm (with typed GC)
+        SIGSEGV      : normal
+        Globalization: normal
+
+cpuinfo :
+----------------------------------------
+
+$ cat cpuinfo
+processor       : 0
+vendor_id       : AuthenticAMD
+cpu family      : 15
+model           : 5
+model name      : AMD Opteron(tm) Processor 248
+stepping        : 10
+cpu MHz         : 2192.352
+cache size      : 1024 KB
+fpu             : yes
+fpu_exception   : yes
+cpuid level     : 1
+wp              : yes
+flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
+cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext lm 3dnowext 3dnow
+bogomips        : 4308.99
+TLB size        : 1088 4K pages
+clflush size    : 64
+cache_alignment : 64
+address sizes   : 40 bits physical, 48 bits virtual
+power management: ts fid vid ttp
+
+processor       : 1
+vendor_id       : AuthenticAMD
+cpu family      : 15
+model           : 5
+model name      : AMD Opteron(tm) Processor 248
+stepping        : 10
+cpu MHz         : 2192.352
+cache size      : 1024 KB
+fpu             : yes
+fpu_exception   : yes
+cpuid level     : 1
+wp              : yes
+flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
+cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext lm 3dnowext 3dnow
+bogomips        : 4374.52
+TLB size        : 1088 4K pages
+clflush size    : 64
+cache_alignment : 64
+address sizes   : 40 bits physical, 48 bits virtual
+power management: ts fid vid ttp
+
+
+OS distro :
+
+Fedora Core 3


More information about the mono-bugs mailing list