🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.misc.discuss
Article #73355

SUN RPC and gcc 1.4 (TCP)

#73355
From: Doug Anson
Date: Wed, 09 Oct 1991 20:47
21 lines
1789 bytes
Hello netters!

I found what I think is a bug in gcc 1.4.  I have an application that requires
an ANSI C compiler and uses SUN's RPC library.  The `bug` appears when I compile the application and then request an RPC call to a remote host using the TCP protocol.  The application can then produce the client handle (or at least its changed from an initial NULL value I give it) but when it makes the RPC call itself, the client aborts on a bus error.  If I use UDP then the application works fine. I have compiled my application on SVR4 with its stock cc (ANSI) and both the TCP and UDP requests work wonder






fully.  Also, I wrote a small example
routine that is compilable by both gcc and cc.  When I compile the example using gcc on the SUN and request TCP as the transport it croaks on a bus error. When I use UDP (with the gcc compile) on the SUN the example works fine.  When I compile the example with SUN's stock cc then I can use EITHER TCP or UDP and the example works like a champ.

Any help,comments,pointers,suggestions would be greatly appreciated.

Thanks in advance,

Doug Anson
danson@udel.edu
Univ. of Del.
ASEL
Technical Details
Message-ID: <66700@nigel.ee.udel.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!wupost!udel!lion!danson

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1025b4,c86f0841265860ba,start
X-Google-Attributes: gid1025b4,public
X-Google-ArrivalTime: 1991-10-10 04:19:26 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!wupost!udel!lion!danson
From: danson@lion.udel.edu (Doug Anson)
Newsgroups: gnu.misc.discuss
Subject: SUN RPC and gcc 1.4 (TCP)
Keywords: SUN RPC gcc cc TCP
Message-ID: <66700@nigel.ee.udel.edu>
Date: 9 Oct 91 20:47:51 GMT
Sender: usenet@ee.udel.edu
Followup-To: danson@udel.edu
Organization: University of Delaware
Lines: 15
Nntp-Posting-Host: lion.asel.udel.edu