Red Hat Bugzilla – Bug 65545
clnt_call() returns Failure in multithread environment on RH7.2
Last modified: 2005-10-31 17:00:50 EST
Description of Problem:
I have a multi-threaded client, in which I create
CLIENT handle in the first thread, and then use
clnt_call in other child-threads to access server.
If the clnt_create() and clnt_call() are invoked in the same thread then
clnt_call() returns success.
On Linux RH7.1 there is no problem. but it's giving problem on RH7.2 (2.4.7-10
#1 Thu Sep 6 17:21:28 EDT 2001 i586).
Version-Release number of selected component (if applicable):
Call clnt_create() in one thread and get the CLIENT pointer then call clnt_call
() in another thread by passing the same CLIENT pointer. It returns Failure.
I am attaching a file new.tar this contains
compile - to compile the sameple.
after compilation just run
1. dateproc &
2. rdate "hostname" (hostname must be the host for the dateproc server)
you will see the problem. saying that clnt_call failed.
Steps to Reproduce:
clnt_call() returns FAILURE.
clnt_call() should return SUCCESS.
*** This bug has been marked as a duplicate of 65544 ***
Created attachment 58665 [details]
new.tar file has the sample to reproduce the Bug.