[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pnet-developers] [bugs #10500] System.Net.Socket Solaris 9 SocketType.S
From: |
Adam J. Tybor |
Subject: |
[Pnet-developers] [bugs #10500] System.Net.Socket Solaris 9 SocketType.Stream Incorrect |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3 |
This mail is an automated notification from the bugs tracker
of the project: DotGNU Portable.NET.
/**************************************************************************/
[bugs #10500] Latest Modifications:
Changes by:
Adam J. Tybor <address@hidden>
'Date:
Sun 09/26/2004 at 15:49 (GMT)
------------------ Additional Follow-up Comments ----------------------------
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
/**************************************************************************/
[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 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&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&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/