Regarding memory leaks

Ravi S M smravi at TechMahindra.com
Fri Aug 25 09:32:43 CEST 2006


Hi



I am integrating my rlm_otp module with freeradius code . if I run
radiusd server with the purify it is giving leaks



As MLK :95 bytes



Finished  radiusd              ( 278 errors, 95 leaked bytes)

      Purify instrumented
/home/ravis/kshitij/freeradius-1.1.2/src/main/.libs/radiusd (pid 8830 at
Fri Aug 25 12:54:30 2006)

      Command-line: radiusd

      UMR: Uninitialized memory read (18 times)

      UMR: Uninitialized memory read (19 times)

      UMR: Uninitialized memory read (6 times)

      UMR: Uninitialized memory read (79 times)

      UMR: Uninitialized memory read (96 times)

      UMR: Uninitialized memory read (3 times)

      UMR: Uninitialized memory read (2 times)

      UMR: Uninitialized memory read

      ABR: Array bounds read (7 times)

      ABR: Array bounds read (7 times)

      ABR: Array bounds read (7 times)

      ABR: Array bounds read (3 times)

      ABR: Array bounds read (3 times)

      ABR: Array bounds read (3 times)

      UMR: Uninitialized memory read (8 times)

      UMR: Uninitialized memory read (3 times)

      UMR: Uninitialized memory read (3 times)

      PAR: Bad function parameter (7 times)

      ABR: Array bounds read

      ABR: Array bounds read

      ABR: Array bounds read

      Current file descriptors in use: 7

      Memory leaked: 95 bytes (0.0142%); potentially leaked: 0 bytes
(0%)

         MLK: 95 bytes leaked in 7 blocks

         This memory was allocated from:

               malloc         [rtlib.o]

               lt_emalloc     [ltdl.c:863]

                  lt_emalloc (size)

                       size_t size;

                  {

               =>   lt_ptr mem = lt_dlmalloc (size);

                    if (size && !mem)

                      LT_DLMUTEX_SETERROR (LT_DLSTRERROR (NO_MEMORY));

                    return mem;

               canonicalize_path [ltdl.c:2044]

                    assert (path && *path);

                    assert (pcanonical);

                 

               =>   canonical = LT_EMALLOC (char, 1+ LT_STRLEN (path));

                 

                    if (!canonical)

                      return 1;

               try_dlopen     [ltdl.c:2562]

               lt_dlopenext   [ltdl.c:2959]

               linkto_module  [modules.c:207]

         Block of 19 bytes at 0x32ed90

         Block of 15 bytes at 0x231728

         Block of 14 bytes at 0x22c9e0

         Block of 12 bytes (3 times); last block at 0x2122b8

         Block of 11 bytes at 0x32e480

         Purify Heap Analysis (combining suppressed and unsuppressed
blocks)

      Thread Summary : 1 thread(s) in existence

      Program exited with status code 0.





So please provide some usefull inputs to solve this problem



Thanks & regards



Ravi



============================================================================================================================

Tech Mahindra, formerly Mahindra-British Telecom.

Disclaimer:

This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="http://tim.techmahindra.com/Disclaimer.html">http://tim.techmahindra.com/Disclaimer.html</a> internally within Tech Mahindra.

============================================================================================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20060825/d0e48432/attachment.html>


More information about the Freeradius-Users mailing list