Closed kevincurtis-at-farsite closed 6 years ago
Try the HEAD of this repository, otherwise run under valgrind?
Hi, thanks for your reply. I haven't tried the latest source (from HEAD) yet, but I have noted that there are differences between the version that I am using (freeradius-client-1.1.7) and the version in GIT.
I did run valigrind on my test application for three test cases. One where authentication succeeds, ones where it fails and one where it times out. The test program performs 20 authentication requests, no retries, 1 second timeout. The output is as follows:
-bash-3.2# valgrind --leak-check=full ./radexample username1 username1 10.0.97.34 1812 mySecret 0 1 20 ==9613== Memcheck, a memory error detector. ==9613== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al. ==9613== Using LibVEX rev 1732, a library for dynamic binary translation. ==9613== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP. ==9613== Using valgrind-3.2.3, a dynamic binary instrumentation framework. ==9613== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al. ==9613== For more details, rerun with: -v ==9613==
Radius Authentication example V1.0
>> Using username of username1 and password of username1
>> Auth Server is (10.0.97.34) on port (1812) using secret (mySecret)
>> number of retries is 0 and the response timeout is 1 seconds loopcount = 20
Start auth request 0: username1 username1 1812 0 0: Authentication requested started on thread 0 Waiting 1 1 1 1.... Processing Authentication result for thread 0 Authentication succeded Start auth request 0: username1 username1 1812 0 1: Authentication requested started on thread 0 Waiting 1 1 1 1.... Processing Authentication result for thread 0 Authentication succeded Start auth request 0: username1 username1 1812 0 2: Authentication requested started on thread 0 Waiting 1 1 1 1.... Processing Authentication result for thread 0 Authentication succeded
This version did indeed seem to resolve the memory leak issue. It also required some additional lines to be added to /etc/services for the radius client
Thanks for the help
This issue should be closed.
We use the freeradius-client for very simple authentication in one of our Daemon processes. We have noted that there is a small memory leak when authentication requests are sent but time out. There does not appear ti=o be an issue when the requests are responded to. Is this a know issue? Is there a patch? Is there a release later than 1.1.7 we could try?