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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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! |
|
|||
|
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! |
![]() |
| Thread Tools | |
| Display Modes | |
|
|