Article View: comp.unix.programmer
Article #335Re: send()
From: Jonathan I. Kamens
Date: Thu, 09 Apr 1992 21:54
Date: Thu, 09 Apr 1992 21:54
29 lines
1888 bytes
1888 bytes
In article <1992Apr7.191046.21349@aio.jsc.nasa.gov> mulcihy@mimas.NoSubdomain.NoDomain (David Mulcihy 283-4279) writes:
I have two computers talking to each other using tcp. I then add another
computer talking to the first computer. While using send() I get the
error EFAULT while trying to send data to the first computer. The unix
function perror translates this error as Bad address. Has someone else
encountered this error? Is this an error on the sending machine or the
receiving machine?
From send(2):
ERRORS
...
[EFAULT] An invalid user space address was speci-
fied for a parameter.
Since the only address passed into send() is the message pointer,
presumably you are either (a) passing in an invalid address for that
pointer, or (b) passing in a length that is too large and that causes
the kernel to fall off the end of your valid address space while
reading the message.
--
Jonathan Kamens jik@MIT.Edu
MIT Information Systems/Athena Moderator, news.answers
(Send correspondence related to the news.answers newsgroup
{and ONLY correspondence related to the newsgroup}
to news-answers-request@MIT.Edu.)
Technical Details
Message-ID:
<JIK.92Apr9175412@pit-manager.mit.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!udel!rochester!cornell!uw-beaver!micro-heart-of-gold.mit.edu!bloom-beacon!bloom-picayune.mit.edu!athena.mit.edu!jikReferences:
<1992Apr7.191046.21349@aio.jsc.nasa.gov>Show Full Headers
Complete Article Headers
Newsgroups: comp.unix.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!udel!rochester!cornell!uw-beaver!micro-heart-of-gold.mit.edu!bloom-beacon!bloom-picayune.mit.edu!athena.mit.edu!jik From: jik@athena.mit.edu (Jonathan I. Kamens) Subject: Re: send() In-Reply-To: mulcihy@mimas.NoSubdomain.NoDomain's message of 7 Apr 1992 19:10:46 GMT Message-ID: <JIK.92Apr9175412@pit-manager.mit.edu> Lines: 29 Sender: news@athena.mit.edu (News system) Nntp-Posting-Host: pit-manager.mit.edu Organization: Massachusetts Institute of Technology References: <1992Apr7.191046.21349@aio.jsc.nasa.gov> Date: Thu, 9 Apr 1992 21:54:21 GMT Lines: 29