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: 
                Tue 09/28/2004 at 09:22 (Asia/Calcutta)

            What     | Removed                   | Added
---------------------------------------------------------------------------
          Resolution | None                      | Fixed
              Status | Open                      | Closed


------------------ Additional Follow-up Comments ----------------------------
Fixed by patch #3392.






/**************************************************************************/
[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:  Fixed
Privacy:  Public
Assigned to:  t3rmin4t0r
Status:  Closed


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: Tue 09/28/2004 at 09:22       By: Gopal.V <t3rmin4t0r>
Fixed by patch #3392.

-------------------------------------------------------
Date: Sun 09/26/2004 at 15:49       By: Adam J. Tybor <abombss>
I would have liked to submit a patch but I do not know how to create one.  I 
just modified the support/socket.c with an ugly hack that seems to work.  I am 
not sure if this is the most effecitent cross platform way to fix this but I 
tried my best and I can at least use pnet.

Can someone please point me to a page on out to create a patch.

The patch was made from cvs using:
# diff -ur pnet pnet-hack > bug10500_socket.patch

Adam

-------------------------------------------------------
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 15:49  Name: bug10500_socket.patch  Size: 9.93KB   By: 
abombss
Patch for 10500 
http://savannah.gnu.org/bugs/download.php?item_id=10500&amp;item_file_id=1710

-------------------------------------------------------
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]