Memory big problem
Dmitry V. Pleganoff
dimple at mail.primorye.ru
Wed Dec 14 00:38:58 CET 2005
Thanks for corrections, valgrind has shown MUCH less losses.
==9603== 21 bytes in 1 blocks are definitely lost in loss record 27 of 124
==9603== at 0x1B90659D: malloc (vg_replace_malloc.c:130)
==9603== by 0x1D1A8E1F: ldap_instantiate (rlm_ldap.c:429)
==9603== by 0x80568A6: find_module_instance (modules.c:314)
==9603== by 0x8057192: setup_modules (modules.c:888)
==9603== by 0x80560A0: read_mainconfig (mainconfig.c:1088)
==9603== by 0x805976F: main (radiusd.c:281)
==9603==
==9603==
==9603== 45 bytes in 6 blocks are definitely lost in loss record 44 of 124
==9603== at 0x1B90659D: malloc (vg_replace_malloc.c:130)
==9603== by 0x1BB4708F: strdup (in /lib/tls/libc-2.3.2.so)
==9603== by 0x804ECF2: cf_item_parse (conffile.c:747)
==9603== by 0x80562AF: read_mainconfig (mainconfig.c:884)
==9603== by 0x805976F: main (radiusd.c:281)
==9603==
==9603==
==9603== 492 (108 direct, 384 indirect) bytes in 3 blocks are definitely
lost in loss record 64 of 124
==9603== at 0x1B90659D: malloc (vg_replace_malloc.c:130)
==9603== by 0x1BBB6EE6: (within /lib/tls/libc-2.3.2.so)
==9603== by 0x1BBB6788: __nss_database_lookup (in /lib/tls/libc-2.3.2.so)
==9603== by 0x1BE0A797: ???
==9603== by 0x1BB76A4B: getgrnam_r (in /lib/tls/libc-2.3.2.so)
==9603== by 0x1BB76170: getgrnam (in /lib/tls/libc-2.3.2.so)
==9603== by 0x80554AA: switch_users (mainconfig.c:501)
==9603== by 0x8055FDC: read_mainconfig (mainconfig.c:1016)
==9603== by 0x805976F: main (radiusd.c:281)
==9603==
==9603==
==9603== 340 bytes in 5 blocks are possibly lost in loss record 81 of 124
==9603== at 0x1B906F75: calloc (vg_replace_malloc.c:175)
==9603== by 0x1B8F2678: (within /lib/ld-2.3.2.so)
==9603== by 0x1B8F294B: _dl_allocate_tls (in /lib/ld-2.3.2.so)
==9603== by 0x1B93E24A: allocate_stack (in /lib/tls/libpthread-0.60.so)
==9603== by 0x1B93DC54: pthread_create@@GLIBC_2.1 (in
/lib/tls/libpthread-0.60.so)
==9603== by 0x805CD6C: spawn_thread (threads.c:703)
==9603== by 0x805CFDD: thread_pool_init (threads.c:878)
==9603== by 0x80597EB: main (radiusd.c:391)
==9603==
==9603== LEAK SUMMARY:
==9603== definitely lost: 174 bytes in 10 blocks.
==9603== indirectly lost: 384 bytes in 32 blocks.
==9603== possibly lost: 340 bytes in 5 blocks.
==9603== still reachable: 1554785 bytes in 25099 blocks.
==9603== suppressed: 0 bytes in 0 blocks.
More information about the Freeradius-Users
mailing list