Hi All, I am running net-snmp ( version 5.4.2.1 ) as a thread and currently working on the removal of memory leak. I find a big leak w.r.t the function run_alrams() :
-------------------------------------------------------------------------- 10,285 (4,356 direct, 5,929 indirect) bytes in 121 blocks are definitely lost in loss record 148 of 162 ==698== at 0x4004864: calloc (vg_replace_malloc.c:279) ==698== by 0x83E7570: netsnmp_access_ipaddress_entry_create (ipaddress_common.c:165) ==698== by 0x84BEE1A: _netsnmp_ioctl_ipaddress_container_load_v4 (ipaddress_ioctl.c:174) ==698== by 0x84BE364: netsnmp_arch_ipaddress_container_load (ipaddress_linux.c:149) ==698== by 0x83E745E: netsnmp_access_ipaddress_container_load (ipaddress_common.c:120) ==698== by 0x84BD990: ipAddressTable_container_load (ipAddressTable_data_access.c:345) ==698== by 0x84BD290: _cache_load (ipAddressTable_interface.c:1922) ==698== by 0x84CC444: _cache_load (cache_handler.c:548) ==698== by 0x84CBD0D: _timer_reload (cache_handler.c:197) ==698== by 0x84E85F2: run_alarms (snmp_alarm.c:266) ==698== by 0x83BFF67: receive (snmpd.c:1504) ==698== by 0x83BF38C: snmpd (snmpd.c:1177) ==698== by 0xC9850A: start_thread (in /lib/libpthread-2.7.so) ==698== by 0xBD9B2D: clone (in /lib/libc-2.7.so) ------------------------------------------------------------------------------- Please provide me information for the below queries : 1. what is the purpose of run_alarms() ? 2. How the system will be affected if i will not call (or comment ) function ? Best Regards, Manjit ------------------------------------------------------------------------------ _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
