Hello,
I've experimented my application with the latest version of net-snmp
(5.2.2), valgrind still reports memory leak (report as below)
Can somebody give me some idea?
Thank you.
==1074== 4 bytes in 1 blocks are still reachable in loss record 1 of 73
==1074== at 0x4003BC55: malloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x4026DF71: init_tree_roots (parse.c:1161)
==1074== by 0x40276ECD: _init_snmp (snmp_api.c:635)
==1074== by 0x402774F2: init_snmp (snmp_api.c:813)
==1074==
==1074== 5 bytes in 1 blocks are still reachable in loss record 2 of 73
==1074== at 0x4003BC55: malloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x4027736C: init_snmp_enums (snmp_api.c:762)
==1074== by 0x40277540: init_snmp (snmp_api.c:828)
==1074== by 0x8094DC0: Session::openSession(std::string) (in
/opt/hsc/bin/ibnmsmd)
==1074==
==1074== 5 bytes in 1 blocks are still reachable in loss record 3 of 73
==1074== at 0x4003BC55: malloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x40277304: init_snmp_enums (snmp_api.c:760)
==1074== by 0x40277540: init_snmp (snmp_api.c:828)
==1074== by 0x8094DC0: Session::openSession(std::string) (in
/opt/hsc/bin/ibnmsmd)
==1074== 6 bytes in 1 blocks are still reachable in loss record 4 of 73
==1074== at 0x4003BC55: malloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x4026639A: init_mib (mib.c:2734)
==1074== by 0x4027754A: init_snmp (snmp_api.c:833)
==1074== by 0x8094DC0: Session::openSession(std::string) (in
/opt/hsc/bin/ibnmsmd)
==1074==
==1074== 6 bytes in 1 blocks are still reachable in loss record 5 of 73
==1074== at 0x4003BC55: malloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x4026DED1: init_tree_roots (parse.c:1140)
==1074== by 0x40276ECD: _init_snmp (snmp_api.c:635)
==1074== by 0x402774F2: init_snmp (snmp_api.c:813)
==1074==
==1074== 7 bytes in 1 blocks are still reachable in loss record 6 of 73
==1074== at 0x4003BC55: malloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x40296F7A: snmp_enable_stderrlog (snmp_logging.c:739)
==1074== by 0x40297741: snmp_log_string (snmp_logging.c:1102)
==1074== by 0x40297801: snmp_vlog (snmp_logging.c:1144)
==1074==
==1074== 7 bytes in 1 blocks are still reachable in loss record 7 of 73
==1074== at 0x4003BC55: malloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x402772D0: init_snmp_enums (snmp_api.c:759)
==1074== by 0x40277540: init_snmp (snmp_api.c:828)
==1074== by 0x8094DC0: Session::openSession(std::string) (in
/opt/hsc/bin/ibnmsmd)
==1074== 8 bytes in 1 blocks are still reachable in loss record 9 of 73
==1074== at 0x4003BC55: malloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x4044FD20: (within /usr/lib/libstdc++.so.5.0.2)
==1074== by 0x4044F97C: (within /usr/lib/libstdc++.so.5.0.2)
==1074== by 0x40430FF2: (within /usr/lib/libstdc++.so.5.0.2)
==1074==
==1074== 8 bytes in 1 blocks are still reachable in loss record 10 of 73
==1074== at 0x4003BC55: malloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x402AD771: usm_create_initial_user (snmpusm.c:3387)
==1074== by 0x402AC48F: init_usm_post_config (snmpusm.c:2818)
==1074== by 0x4029BCD7: snmp_call_callbacks (callback.c:210)
==1074==
==1074== 8 bytes in 1 blocks are still reachable in loss record 11 of 73
==1074== at 0x4003BC55: malloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x40277198: init_snmp_enums (snmp_api.c:753)
==1074== by 0x40277540: init_snmp (snmp_api.c:828)
==1074== by 0x8094DC0: Session::openSession(std::string) (in
/opt/hsc/bin/ibnmsmd)
==1074==
==1074== 8 bytes in 1 blocks are still reachable in loss record 12 of 73
==1074== at 0x4003BC55: malloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x4027715E: init_snmp_enums (snmp_api.c:752)
==1074== by 0x40277540: init_snmp (snmp_api.c:828)
==1074== 8 bytes in 1 blocks are still reachable in loss record 13 of 73
==1074== at 0x4003C0EB: calloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x402A47C5: netsnmp_unix_ctor (snmpUnixDomain.c:447)
==1074== by 0x402A02C3: netsnmp_tdomain_init (snmp_transport.c:213)
==1074== by 0x40276ED2: _init_snmp (snmp_api.c:637)
==1074==
==1074== 8 bytes in 1 blocks are still reachable in loss record 14 of 73
==1074== at 0x4003C0EB: calloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x402A388D: netsnmp_tcp_ctor (snmpTCPDomain.c:431)
==1074== by 0x402A02BE: netsnmp_tdomain_init (snmp_transport.c:202)
==1074== by 0x40276ED2: _init_snmp (snmp_api.c:637)
==1074==
==1074== 8 bytes in 1 blocks are still reachable in loss record 15 of 73
==1074== at 0x4003C0EB: calloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x402A2DB5: netsnmp_udp_ctor (snmpUDPDomain.c:1093)
==1074== by 0x402A02B9: netsnmp_tdomain_init (snmp_transport.c:196)
==1074== by 0x40276ED2: _init_snmp (snmp_api.c:637)
==1074==
==1074== 9 bytes in 1 blocks are still reachable in loss record 16 of 73
==1074== at 0x4003BC55: malloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x402771CC: init_snmp_enums (snmp_api.c:754)
==1074== by 0x40277540: init_snmp (snmp_api.c:828)
==1074== by 0x8094DC0: Session::openSession(std::string) (in
/opt/hsc/bin/ibnmsmd)
==1074== 10 bytes in 1 blocks are still reachable in loss record 17 of 73
==1074== at 0x4003BC55: malloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x40277338: init_snmp_enums (snmp_api.c:761)
==1074== by 0x40277540: init_snmp (snmp_api.c:828)
==1074== by 0x8094DC0: Session::openSession(std::string) (in
/opt/hsc/bin/ibnmsmd)
==1074==
==1074== 10 bytes in 1 blocks are still reachable in loss record 18 of 73
==1074== at 0x4003BC55: malloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x4027729C: init_snmp_enums (snmp_api.c:758)
==1074== by 0x40277540: init_snmp (snmp_api.c:828)
==1074== by 0x8094DC0: Session::openSession(std::string) (in
/opt/hsc/bin/ibnmsmd)
==1074==
==1074== 10 bytes in 1 blocks are still reachable in loss record 19 of 73
==1074== at 0x4003BC55: malloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x40277268: init_snmp_enums (snmp_api.c:757)
==1074== by 0x40277540: init_snmp (snmp_api.c:828)
==1074== by 0x8094DC0: Session::openSession(std::string) (in
/opt/hsc/bin/ibnmsmd)
==1074==
==1074== 10 bytes in 1 blocks are still reachable in loss record 20 of 73
==1074== at 0x4003BC55: malloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x40277234: init_snmp_enums (snmp_api.c:756)
==1074== by 0x40277540: init_snmp (snmp_api.c:828)
==1074== by 0x8094DC0: Session::openSession(std::string) (in
/opt/hsc/bin/ibnmsmd)
==1074== 10 bytes in 1 blocks are still reachable in loss record 21 of 73
==1074== at 0x4003BC55: malloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x40277200: init_snmp_enums (snmp_api.c:755)
==1074== by 0x40277540: init_snmp (snmp_api.c:828)
==1074== by 0x8094DC0: Session::openSession(std::string) (in
/opt/hsc/bin/ibnmsmd)
==1074==
==1074== 11 bytes in 1 blocks are still reachable in loss record 22 of 73
==1074== at 0x4003BC55: malloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x40277470: init_snmp_enums (snmp_api.c:771)
==1074== by 0x40277540: init_snmp (snmp_api.c:828)
==1074== by 0x8094DC0: Session::openSession(std::string) (in
/opt/hsc/bin/ibnmsmd)
==1074==
==1074== 11 bytes in 1 blocks are still reachable in loss record 23 of 73
==1074== at 0x4003BC55: malloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x402773D4: init_snmp_enums (snmp_api.c:766)
==1074== by 0x40277540: init_snmp (snmp_api.c:828)
==1074== by 0x8094DC0: Session::openSession(std::string) (in
/opt/hsc/bin/ibnmsmd)
==1074==
==1074== 12 bytes in 1 blocks are still reachable in loss record 24 of 73
==1074== at 0x4003C0EB: calloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x402A5FA3: register_sec_mod (snmp_secmod.c:68)
==1074== by 0x402AC30C: init_usm (snmpusm.c:2734)
==1074== by 0x402A5F5D: init_secmod (snmp_secmod.c:52)
=1074== 13 bytes in 1 blocks are still reachable in loss record 25 of 73
==1074== at 0x4003C0EB: calloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x4029A4E4: set_enginetime (lcd_time.c:339)
==1074== by 0x40299CEE: init_snmpv3_post_config (snmpv3.c:1373)
==1074== by 0x4029BCD7: snmp_call_callbacks (callback.c:210)
==1074==
==1074== 13 bytes in 1 blocks are still reachable in loss record 26 of 73
==1074== at 0x4003BC55: malloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x40298691: setup_engineID (snmpv3.c:598)
==1074== by 0x40299D37: init_snmpv3_post_premib_config (snmpv3.c:1382)
==1074== by 0x4029BCD7: snmp_call_callbacks (callback.c:210)
==1074==
==1074== 13 bytes in 1 blocks are still reachable in loss record 27 of 73
==1074== at 0x4003BC55: malloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x40277408: init_snmp_enums (snmp_api.c:767)
==1074== by 0x40277540: init_snmp (snmp_api.c:828)
==1074== by 0x8094DC0: Session::openSession(std::string) (in
/opt/hsc/bin/ibnmsmd)
==1074==
==1074== 14 bytes in 1 blocks are still reachable in loss record 28 of 73
==1074== at 0x4003BC55: malloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x4026620F: init_mib (mib.c:2702)
==1074== by 0x4027754A: init_snmp (snmp_api.c:833)
==1074== by 0x8094DC0: Session::openSession(std::string) (in
/opt/hsc/bin/ibnmsmd)
==1074== 14 bytes in 1 blocks are still reachable in loss record 29 of 73
==1074== at 0x4003BC55: malloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x4027743C: init_snmp_enums (snmp_api.c:769)
==1074== by 0x40277540: init_snmp (snmp_api.c:828)
==1074== by 0x8094DC0: Session::openSession(std::string) (in
/opt/hsc/bin/ibnmsmd)
==1074==
==1074== 16 bytes in 1 blocks are still reachable in loss record 30 of 73
==1074== at 0x4003BC55: malloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x4026DE25: init_tree_roots (parse.c:1119)
==1074== by 0x40276ECD: _init_snmp (snmp_api.c:635)
==1074== by 0x402774F2: init_snmp (snmp_api.c:813)
==1074==
==1074== 16 bytes in 1 blocks are definitely lost in loss record 31 of 73
==1074== at 0x4003BC55: malloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x4003C182: realloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x4051C108: __argz_append (in /lib/libc.so.6)
==1074== by 0x404C9685: __newlocale (in /lib/libc.so.6)
==1074==
==1074== 17 bytes in 1 blocks are still reachable in loss record 32 of 73
==1074== at 0x4003BC55: malloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x402773A0: init_snmp_enums (snmp_api.c:764)
==1074== by 0x40277540: init_snmp (snmp_api.c:828)
==1074== by 0x8094DC0: Session::openSession(std::string) (in
/opt/hsc/bin/ibnmsmd)
=1074== 20 bytes in 1 blocks are still reachable in loss record 33 of 73
==1074== at 0x4003C0EB: calloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x4029EF83: init_snmp_enum (snmp_enum.c:41)
==1074== by 0x4027753B: init_snmp (snmp_api.c:826)
==1074== by 0x8094DC0: Session::openSession(std::string) (in
/opt/hsc/bin/ibnmsmd)
==1074==
==1074== 20 bytes in 1 blocks are still reachable in loss record 34 of 73
==1074== at 0x4003C0EB: calloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x402AF714: netsnmp_container_get_binary_array
(container_binary_array.c:162)
==1074== by 0x402AE5D4: netsnmp_container_init_list (container.c:50)
==1074== by 0x4027750D: init_snmp (snmp_api.c:818)
==1074==
==1074== 23 bytes in 1 blocks are still reachable in loss record 35 of 73
==1074== at 0x4003BC55: malloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x400085A2: _dl_new_object (in /lib/ld-2.2.5.so)
==1074== by 0x4000440E: _dl_map_object_from_fd (in /lib/ld-2.2.5.so)
==1074== by 0x400057EC: _dl_map_object (in /lib/ld-2.2.5.so)
==1074==
==1074== 23 bytes in 1 blocks are still reachable in loss record 36 of 73
==1074== at 0x4003BC55: malloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x40005BA5: _dl_map_object (in /lib/ld-2.2.5.so)
==1074== by 0x4059F403: dl_open_worker (in /lib/libc.so.6)
==1074== by 0x4000A1B6: _dl_catch_error (in /lib/ld-2.2.5.so)
==1074== 24 bytes in 2 blocks are still reachable in loss record 37 of 73
==1074== at 0x4003C0EB: calloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x4029F75B: se_add_pair_to_slist (snmp_enum.c:348)
==1074== by 0x402A5FE6: register_sec_mod (snmp_secmod.c:76)
==1074== by 0x402AC30C: init_usm (snmpusm.c:2734)
==1074==
==1074== 24 bytes in 2 blocks are still reachable in loss record 38 of 73
==1074== at 0x4003C0EB: calloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x4029F57C: se_add_pair_to_list (snmp_enum.c:280)
==1074== by 0x4029F745: se_add_pair_to_slist (snmp_enum.c:347)
==1074== by 0x402A5FE6: register_sec_mod (snmp_secmod.c:76)
==1074==
==1074== 24 bytes in 1 blocks are still reachable in loss record 39 of 73
==1074== at 0x4003C0EB: calloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x4029D1BE: netsnmp_ds_register_premib (default_store.c:474)
==1074== by 0x40296115: init_snmp_logging (snmp_logging.c:113)
==1074== by 0x40277517: init_snmp (snmp_api.c:820)
==1074==
==1074== 24 bytes in 2 blocks are still reachable in loss record 40 of 73
==1074== at 0x4003C0EB: calloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x4029153E: register_config_handler (read_config.c:236)
==1074== by 0x402913BC: register_prenetsnmp_mib_handler
(read_config.c:150)
==1074== by 0x40294A41: snmp_debug_init (snmp_debug.c:104)
==1074== 28 bytes in 1 blocks are still reachable in loss record 42 of 73
==1074== at 0x4003C0EB: calloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x4029A4BC: set_enginetime (lcd_time.c:333)
==1074== by 0x40299CEE: init_snmpv3_post_config (snmpv3.c:1373)
==1074== by 0x4029BCD7: snmp_call_callbacks (callback.c:210)
==1074==
==1074== 28 bytes in 1 blocks are still reachable in loss record 43 of 73
==1074== at 0x4003BC55: malloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x4000934A: _dl_map_object_deps (in /lib/ld-2.2.5.so)
==1074== by 0x4059F49C: dl_open_worker (in /lib/libc.so.6)
==1074== by 0x4000A1B6: _dl_catch_error (in /lib/ld-2.2.5.so)
==1074==
==1074== 36 bytes in 2 blocks are still reachable in loss record 44 of 73
==1074== at 0x4003BC55: malloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x40584055: inet_ntoa (in /lib/libc.so.6)
==1074== by 0x402A0D7F: netsnmp_udp_fmtaddr (snmpUDPDomain.c:94)
==1074== by 0x402A1911: netsnmp_udp_transport (snmpUDPDomain.c:499)
==1074==
==1074== 40 bytes in 1 blocks are still reachable in loss record 45 of 73
==1074== at 0x4003C0EB: calloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x40297188: netsnmp_register_loghandler (snmp_logging.c:837)
==1074== by 0x40296F67: snmp_enable_stderrlog (snmp_logging.c:736)
==1074== by 0x40297741: snmp_log_string (snmp_logging.c:1102)
==1074==
==1074== 40 bytes in 1 blocks are still reachable in loss record 46 of 73
==1074== at 0x4003C0EB: calloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x402AC2CD: init_usm (snmpusm.c:2727)
==1074== by 0x402A5F5D: init_secmod (snmp_secmod.c:52)
==1074== by 0x40299A03: init_snmpv3 (snmpv3.c:1267)
==1074==
==1074== 40 bytes in 1 blocks are still reachable in loss record 47 of 73
==1074== at 0x4003C0EB: calloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x402AF507: _ba_insert (container_binary_array.c:349)
==1074== by 0x402AE82A: netsnmp_container_register
(../include/net-snmp/library/container.h:312)
==1074== by 0x402AF7F0: netsnmp_container_binary_array_init
(container_binary_array.c:582)
==1074==
==1074== 64 bytes in 1 blocks are still reachable in loss record 48 of 73
==1074== at 0x4003BC55: malloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x404C98CE: __newlocale (in /lib/libc.so.6)
==1074== by 0x4044F3FF: (within /usr/lib/libstdc++.so.5.0.2)
==1074== by 0x4042BE0F: (within /usr/lib/libstdc++.so.5.0.2)
==1074==
==1074== 72 bytes in 1 blocks are still reachable in loss record 49 of 73
==1074== at 0x4003BC55: malloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x402FEDC1: CRYPTO_malloc (in /usr/lib/libcrypto.so.0.9.6)
==1074== 72 bytes in 9 blocks are still reachable in loss record 50 of 73
==1074== at 0x4003C0EB: calloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x402AE7DC: netsnmp_container_register (container.c:103)
==1074== by 0x402AF7F0: netsnmp_container_binary_array_init
(container_binary_array.c:582)
==1074== by 0x402AE5E8: netsnmp_container_init_list (container.c:56)
==1074==
==1074== 72 bytes in 1 blocks are still reachable in loss record 51 of 73
==1074== at 0x4003C0EB: calloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x402AF6E5: netsnmp_container_get_binary_array
(container_binary_array.c:544)
==1074== by 0x402AE5D4: netsnmp_container_init_list (container.c:50)
==1074== by 0x4027750D: init_snmp (snmp_api.c:818)
==1074==
==1074== 80 bytes in 2 blocks are still reachable in loss record 52 of 73
==1074== at 0x4003BC55: malloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x40285CE1: snmp_duplicate_objid (snmp_api.c:7009)
==1074== by 0x402AD7B7: usm_create_initial_user (snmpusm.c:3394)
==1074== by 0x402AC48F: init_usm_post_config (snmpusm.c:2818)
==1074== 84 bytes in 1 blocks are still reachable in loss record 53 of 73
==1074== at 0x4003C0EB: calloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x402AD67D: usm_create_user (snmpusm.c:3330)
==1074== by 0x402AD711: usm_create_initial_user (snmpusm.c:3373)
==1074== by 0x402AC48F: init_usm_post_config (snmpusm.c:2818)
==1074==
==1074== 104 bytes in 1 blocks are still reachable in loss record 54 of 73
==1074== at 0x4003C0EB: calloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x40266381: init_mib (mib.c:2729)
==1074== by 0x4027754A: init_snmp (snmp_api.c:833)
==1074== by 0x8094DC0: Session::openSession(std::string) (in
/opt/hsc/bin/ibnmsmd)
==1074==
==1074== 104 bytes in 1 blocks are still reachable in loss record 55 of 73
==1074== at 0x4003C0EB: calloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x4026DF54: init_tree_roots (parse.c:1157)
==1074== by 0x40276ECD: _init_snmp (snmp_api.c:635)
==1074== by 0x402774F2: init_snmp (snmp_api.c:813)
==1074==
==1074== 104 bytes in 1 blocks are still reachable in loss record 56 of 73
==1074== at 0x4003C0EB: calloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x4026DEB1: init_tree_roots (parse.c:1136)
==1074== by 0x40276ECD: _init_snmp (snmp_api.c:635)
==1074== by 0x402774F2: init_snmp (snmp_api.c:813)
==1074==
==1074== 104 bytes in 1 blocks are still reachable in loss record 57 of 73
==1074== at 0x4003C0EB: calloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x4026DE0B: init_tree_roots (parse.c:1116)
==1074== by 0x40276ECD: _init_snmp (snmp_api.c:635)
==1074== by 0x402774F2: init_snmp (snmp_api.c:813)
==1074==
==1074== 128 bytes in 1 blocks are still reachable in loss record 58 of 73
==1074== at 0x4003C0EB: calloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x4000B504: _dl_check_map_versions (in /lib/ld-2.2.5.so)
==1074== by 0x4059F82F: dl_open_worker (in /lib/libc.so.6)
==1074== by 0x4000A1B6: _dl_catch_error (in /lib/ld-2.2.5.so)
==1074==
==1074== 144 bytes in 9 blocks are still reachable in loss record 59 of 73
==1074== at 0x4003C0EB: calloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x4029BA59: netsnmp_register_callback (callback.c:137)
==1074== by 0x4029B9B7: snmp_register_callback (callback.c:119)
==1074== by 0x402999BD: init_snmpv3 (snmpv3.c:1235)
==1074==
==1074== 180 bytes in 15 blocks are still reachable in loss record 60 of 73
==1074== at 0x4003C0EB: calloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x4029F566: se_add_pair_to_list (snmp_enum.c:277)
==1074== by 0x4029F745: se_add_pair_to_slist (snmp_enum.c:347)
==1074== by 0x402771BD: init_snmp_enums (snmp_api.c:753)
==1074== 225 bytes in 18 blocks are still reachable in loss record 61 of 73
==1074== at 0x4003BC55: malloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x402606D8: snmp_clone_mem (snmp_client.c:287)
==1074== by 0x4026082E: _clone_pdu_header (snmp_client.c:361)
==1074== by 0x40260A08: _clone_pdu (snmp_client.c:524)
==1074==
==1074== 355 bytes in 3 blocks are still reachable in loss record 62 of 73
==1074== at 0x4003BC55: malloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x40260659: snmp_clone_var (snmp_client.c:260)
==1074== by 0x4026093F: _copy_varlist (snmp_client.c:416)
==1074== by 0x402609E4: _copy_pdu_vars (snmp_client.c:485)
==1074==
==1074== 364 bytes in 1 blocks are still reachable in loss record 63 of 73
==1074== at 0x4003BC55: malloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x40504A13: _IO_fopen@@GLIBC_2.1 (in /lib/libc.so.6)
==1074== by 0x80E3224: NmTrace::openTraceFile(bool) (NmTrace.cpp:703)
==1074== by 0x80E07A1: NmTrace::vaTrace(std::string, std::string,
std::string, int, s
td::string, char const*, char*) (in /opt/hsc/bin/ibnmsmd)
==1074==
==1074== 454 bytes in 1 blocks are still reachable in loss record 64 of 73
==1074== at 0x4003C0EB: calloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x40008373: _dl_new_object (in /lib/ld-2.2.5.so)
==1074== by 0x4000440E: _dl_map_object_from_fd (in /lib/ld-2.2.5.so)
==1074== by 0x400057EC: _dl_map_object (in /lib/ld-2.2.5.so)
==1074== 456 bytes in 19 blocks are still reachable in loss record 65 of 73
==1074== at 0x4003C0EB: calloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x4029D1E1: netsnmp_ds_register_premib (default_store.c:478)
==1074== by 0x402651A5: register_mib_handlers (mib.c:2364)
==1074== by 0x40277521: init_snmp (snmp_api.c:822)
==1074==
==1074== 552 bytes in 23 blocks are still reachable in loss record 66 of 73
==1074== at 0x4003C0EB: calloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x4029D0D5: netsnmp_ds_register_config (default_store.c:432)
==1074== by 0x40277005: register_default_handlers (snmp_api.c:717)
==1074== by 0x40277526: init_snmp (snmp_api.c:823)
==1074==
==1074== 640 bytes in 5 blocks are still reachable in loss record 67 of 73
==1074== at 0x4003C0EB: calloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x4029EFC6: init_snmp_enum (snmp_enum.c:49)
==1074== by 0x4027753B: init_snmp (snmp_api.c:826)
==1074== by 0x8094DC0: Session::openSession(std::string) (in
/opt/hsc/bin/ibnmsmd)
==1074==
==1074== 1296 bytes in 9 blocks are definitely lost in loss record 68 of 73
==1074== at 0x4003BC55: malloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x402607A5: _clone_pdu_header (snmp_client.c:341)
==1074== by 0x40260A08: _clone_pdu (snmp_client.c:524)
==1074== by 0x40260A48: snmp_clone_pdu (snmp_client.c:552)
==1074== 1560 bytes in 65 blocks are still reachable in loss record 69 of 73
==1074== at 0x4003C0EB: calloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x402915A2: register_config_handler (read_config.c:258)
==1074== by 0x402913BC: register_prenetsnmp_mib_handler
(read_config.c:150)
==1074== by 0x40294A41: snmp_debug_init (snmp_debug.c:104)
==1074==
==1074== 3076 bytes in 232 blocks are still reachable in loss record 70 of
73
==1074== at 0x4003BC55: malloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x405195D0: __strdup (in /lib/libc.so.6)
==1074== by 0x4029C975: netsnmp_ds_set_string (default_store.c:297)
==1074== by 0x402774EA: init_snmp (snmp_api.c:805)
==1074==
==1074== 81144 bytes in 138 blocks are still reachable in loss record 73 of
73
==1074== at 0x4003BC55: malloc (in /usr/lib/valgrind/valgrind.so)
==1074== by 0x40260934: _copy_varlist (snmp_client.c:416)
==1074== by 0x402609E4: _copy_pdu_vars (snmp_client.c:485)
==1074== by 0x40260A19: _clone_pdu (snmp_client.c:527)
==10
From: Robert Story <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: "Haizhu Liu" <[EMAIL PROTECTED]>
CC: [email protected]
Subject: Re: memory leak
Date: Mon, 12 Dec 2005 10:43:08 -0500
On Sun, 11 Dec 2005 23:23:45 -0500 Haizhu wrote:
HL> Yes, I know we are using an old netsnmp, it is business decision what
to
HL> go with. But is there memory leak problem with 5.0.8?
I'm sure there are several. And no, we can't tell you how to fix them
without
upgrading to a newer release.
I suggest you test your application with each newer release (5.0.9,
5.0.10.2, 5.1.3, etc) until you find one that doesn't leak. Then do a diff
between the 5.0.8 and the non-leaking version, and try to sort out what
fixed
the leak. Or you might get lucky and find a cvs log message in the
ChangeLog
that would point you to the right fix.
--
NOTE: messages sent directly to me, instead of the lists, will be deleted
unless they are requests for paid consulting services.
Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive:
<http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>
You are lost in a twisty maze of little standards, all different.
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders