RPC Client problem

This is a discussion on RPC Client problem within the Linux Networking forums, part of the Linux Forums category; Hello all, We are using RPC under Linux environment; programming in C using xdr. we are facing an error with ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-03-2004
AMol Natekar
 
Posts: n/a
Default RPC Client problem

Hello all,

We are using RPC under Linux environment; programming in C using xdr.
we are facing an error with clnt_call function in RPC. When ever we
try to set the memory(using memset) of the variable in which the
result is to be stored it is giving us a segmentation fault.
when clinet function run a loop repeatatively for 1000 times or so,
it abruptly halts and gives segmentation fault.
How could this error be handled?

thanks in advance!
Reply With Quote
  #2 (permalink)  
Old 03-04-2004
Cameron Kerr
 
Posts: n/a
Default Re: RPC Client problem

AMol Natekar <natekara@ismartintl.com> wrote:
> Hello all,
>
> We are using RPC under Linux environment; programming in C using xdr.
> we are facing an error with clnt_call function in RPC. When ever we
> try to set the memory(using memset) of the variable in which the
> result is to be stored it is giving us a segmentation fault.


Make sure that the memory has been allocated first, and you're not
trying to write past its bounds.

--
Cameron Kerr
cameron.kerr@paradise.net.nz : http://nzgeeks.org/cameron/
Empowered by Perl!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:32 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0