dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pnet-developers] [bugs #10500] System.Net.Socket Solaris 9 SocketType.S


From: Gopal.V
Subject: [Pnet-developers] [bugs #10500] System.Net.Socket Solaris 9 SocketType.Stream Incorrect
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040206 Firefox/0.8

This mail is an automated notification from the bugs tracker
 of the project: DotGNU Portable.NET.

/**************************************************************************/
[bugs #10500] Latest Modifications:

Changes by: 
                Gopal.V <address@hidden>
'Date: 
                Sun 09/26/2004 at 13:43 (Asia/Calcutta)

            What     | Removed                   | Added
---------------------------------------------------------------------------
         Assigned to | None                      | t3rmin4t0r


------------------ Additional Follow-up Comments ----------------------------
Solaris seems to use the following for socket values 

#define SOCK_STREAM     2               /* stream socket */
#define SOCK_DGRAM      1               /* datagram socket */ 
#define SOCK_RAW        4               /* raw-protocol interface */

I'll be fixing this soon.







/**************************************************************************/
[bugs #10500] Full Item Snapshot:

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=10500>
Project: DotGNU Portable.NET
Submitted by: 0
On: Sun 09/26/2004 at 06:59

Category:  None
Severity:  5 - Average
Item Group:  None
Resolution:  None
Privacy:  Public
Assigned to:  t3rmin4t0r
Status:  Open


Summary:  System.Net.Socket Solaris 9 SocketType.Stream Incorrect

Original Submission:  Description:
Running pnet on sparc Solaris 9 sockets are constructed with 
System.Net.Sockets.SocketType.Stream are getting built as SOCK_DGRAM.

C# Code:
Socket listenSocket =
             new Socket(AddressFamily.InterNetwork,
                 SocketType.Stream,
                 ProtocolType.Tcp);

Error Message:
# truss -fl -t so_socket -x so_socket ilrun SocketTest.exe
17071/1:            Incurred fault #6, FLTBOUNDS  %pc = 0x000D540C
17071/1:              siginfo: SIGSEGV SEGV_MAPERR addr=0xFFC00000
17071/1:            Received signal #11, SIGSEGV [caught]
17071/1:              siginfo: SIGSEGV SEGV_MAPERR addr=0xFFC00000
17071/1:        so_socket(PF_INET, SOCK_DGRAM, IPPROTO_TCP,
0x00000000, 1) Err#98 EPROTOTYPE
17071/1:             0x00000000: ""
Uncaught exception: System.Net.Sockets.SocketException: Protocol not supported
      at System.Net.Sockets.Socket..ctor(AddressFamily, SocketType,
ProtocolType) in ./Net/Sockets/Socket.cs:116
      at AdamTest.SocketTest.Main(String[])

Reproduce:
Build pnet on sparc solaris 9.
compile and run the attached sample program.

Follow-up Comments
------------------


-------------------------------------------------------
Date: Sun 09/26/2004 at 13:43       By: Gopal.V <t3rmin4t0r>
Solaris seems to use the following for socket values 

#define SOCK_STREAM     2               /* stream socket */
#define SOCK_DGRAM      1               /* datagram socket */ 
#define SOCK_RAW        4               /* raw-protocol interface */

I'll be fixing this soon.







File Attachments
-------------------

-------------------------------------------------------
Date: Sun 09/26/2004 at 06:59  Name: SocketTest.cs  Size: 763B   By: None
Small Test App for reproducing the bug
http://savannah.gnu.org/bugs/download.php?item_id=10500&amp;item_file_id=1708






For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=10500>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]