RE: Memory Leak in netsnmp-5.4.2.1

2010-04-28 Thread Mike Ayers

Hmmm... unfortunately I'm not fluent in Valgrindese, but these appear 
to be happening during module and/or table initializations - i.e., they are 
one-shot losses.  That's not a good thing, but it shouldn't cause instability.  
Myself, I wouldn't worry about these unless there are repeats.


HTH,

Mike

> -Original Message-
> From: sanjaykumar [mailto:sanjay.ku...@globaledgesoft.com]
> Sent: Sunday, April 25, 2010 10:43 PM
> To: Mike Ayers
> Cc: net-snmp users
> Subject: Re: Memory Leak in netsnmp-5.4.2.1
> 
> Mike Ayers wrote:
> 
>   From: sanjaykumar [mailto:sanjay.ku...@globaledgesoft.com]
>   Sent: Friday, April 23, 2010 3:21 AM
> 
> 
> 
> 
> 
>   I am using the netsnmp-5.4.2.1
>   I run the valgrind on this, I find lot of Merory Leaks.
>   Could someone help me out regarding this :
>   Does any patches are available to fix the memory leak for
> 5.4.2.1
>   version ???
> 
> 
> 
>   Do the leaks appear during execution, or upon termination?
> 
> 
>   Thanks,
> 
>   Mike
> 
> 
> 
> duing the execution
> some of memory leak example:
> 
> ==10240==
> ==10240== 20 bytes in 1 blocks are indirectly lost in loss record 60 of
> 134
> ==10240==at 0x40218C9: calloc (vg_replace_malloc.c:397)
> ==10240==by 0x827293F: initialize_table_snmpTargetAddrExtTable
> (snmpTargetAddrExtTable.c:51)
> ==10240==by 0x8272902: init_snmpTargetAddrExtTable
> (snmpTargetAddrExtTable.c:26)
> ==10240==by 0x8257754: init_mib_modules (mib_module_inits.h:170)
> ==10240==by 0x824EFD4: snmpd (snmpd.c:1039)
> ==10240==by 0x40471B2: start_thread (in /lib/libpthread-2.5.so)
> ==10240==by 0x42E303D: clone (in /lib/libc-2.5.so)
> 
> ==10240==
> ==10240== 20 bytes in 1 blocks are still reachable in loss record 61 of
> 134
> ==10240==at 0x40218C9: calloc (vg_replace_malloc.c:397)
> ==10240==by 0x8259007: init_vacm_context (vacm_context.c:104)
> ==10240==by 0x82575F6: init_mib_modules (mib_module_inits.h:145)
> ==10240==by 0x824EFD4: snmpd (snmpd.c:1039)
> ==10240==by 0x40471B2: start_thread (in /lib/libpthread-2.5.so)
> ==10240==by 0x42E303D: clone (in /lib/libc-2.5.so)
> ==10240==
> ==10240==
> ==10240== 20 bytes in 1 blocks are still reachable in loss record 62 of
> 134
> ==10240==at 0x40218C9: calloc (vg_replace_malloc.c:397)
> ==10240==by 0x825EC01: init_tcpTable (tcpTable.c:156)
> ==10240==by 0x82575DD: init_mib_modules (mib_module_inits.h:143)
> ==10240==by 0x824EFD4: snmpd (snmpd.c:1039)
> ==10240==by 0x40471B2: start_thread (in /lib/libpthread-2.5.so)
> ==10240==by 0x42E303D: clone (in /lib/libc-2.5.so)
> ==10240==
> ==10240== 5 bytes in 1 blocks are still reachable in loss record 4 of
> 134
> ==10240==at 0x4022799: malloc (vg_replace_malloc.c:207)
> ==10240==by 0x834BA94: snmp_clone_mem (snmp_client.c:318)
> ==10240==by 0x833523D: build_oid (mib.c:3742)
> ==10240==by 0x832928B: _netsnmp_tdata_generate_index_oid
> (table_tdata.c:62)
> ==10240==by 0x83296AD: netsnmp_tdata_add_row (table_tdata.c:206)
> ==10240==by 0x82735E3: snmpCommunityTable_createEntry
> (snmpCommunityTable.c:181)
> ==10240==by 0x8273ECF: snmpCommunityTable_parse_com2sec
> (snmpCommunityTable.c:496)
> ==10240==by 0x824CBFF: create_community_user (snmp_init.c:976)
> ==10240==by 0x824C867: snmp_create_user_new (snmp_init.c:895)
> ==10240==by 0x824C617: snmp_create_v2c_user (snmp_init.c:836)
> ==10240==by 0x824C559: snmp_create_v2cuser_multiple_source
> (snmp_init.c:787)
> ==10240==by 0x824C25F: snmp_create_user (snmp_init.c:700)
> 
> 
> ==10240==
> ==10240== 8 bytes in 1 blocks are still reachable in loss record 9 of
> 134
> ==10240==at 0x40218C9: calloc (vg_replace_malloc.c:397)
> ==10240==by 0x835BDB1: atime_newMarker (tools.c:810)
> ==10240==by 0x831FE9D: _cache_load (cache_handler.c:570)
> ==10240==by 0x831F881: netsnmp_cache_handler_get
> (cache_handler.c:274)
> ==10240==by 0x831821E: _ifTable_initialize_interface
> (ifTable_interface.c:361)
> ==10240==by 0x8285107: initialize_table_ifTable (ifTable.c:155)
> ==10240==by 0x82850B0: init_ifTable (ifTable.c:99)
> ==10240==by 0x8257641: init_mib_modules (mib_module_inits.h:148)
> ==10240==by 0x824EFD4: snmpd (snmpd.c:1039)
> ==10240==by 0x40471B2: start_thread (in /lib/libpthread-2.5.so)
> ==10240==by 0x42E303D: clone (in /lib/libc-2.5.so)
> ==10240==
> 
> Rgds,
> Sanjay

--
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Memory Leak in netsnmp-5.4.2.1

2010-04-25 Thread sanjaykumar

Mike Ayers wrote:

From: sanjaykumar [mailto:sanjay.ku...@globaledgesoft.com]
Sent: Friday, April 23, 2010 3:21 AM



  

I am using the netsnmp-5.4.2.1
I run the valgrind on this, I find lot of Merory Leaks.
Could someone help me out regarding this :
Does any patches are available to fix the memory leak for 5.4.2.1
version ???



Do the leaks appear during execution, or upon termination?


Thanks,

Mike
/*
*/

/*_duing the execution_
some of memory leak example:*/

==10240== 
==10240== 20 bytes in 1 blocks are indirectly lost in loss record 60 of 134

==10240==at 0x40218C9: calloc (vg_replace_malloc.c:397)
==10240==by 0x827293F: initialize_table_snmpTargetAddrExtTable 
(snmpTargetAddrExtTable.c:51)
==10240==by 0x8272902: init_snmpTargetAddrExtTable 
(snmpTargetAddrExtTable.c:26)
==10240==by 0x8257754: init_mib_modules (mib_module_inits.h:170)
==10240==by 0x824EFD4: snmpd (snmpd.c:1039)
==10240==by 0x40471B2: start_thread (in /lib/libpthread-2.5.so)
==10240==by 0x42E303D: clone (in /lib/libc-2.5.so)


==10240== 
==10240== 20 bytes in 1 blocks are still reachable in loss record 61 of 134

==10240==at 0x40218C9: calloc (vg_replace_malloc.c:397)
==10240==by 0x8259007: init_vacm_context (vacm_context.c:104)
==10240==by 0x82575F6: init_mib_modules (mib_module_inits.h:145)
==10240==by 0x824EFD4: snmpd (snmpd.c:1039)
==10240==by 0x40471B2: start_thread (in /lib/libpthread-2.5.so)
==10240==by 0x42E303D: clone (in /lib/libc-2.5.so)
==10240== 
==10240== 
==10240== 20 bytes in 1 blocks are still reachable in loss record 62 of 134

==10240==at 0x40218C9: calloc (vg_replace_malloc.c:397)
==10240==by 0x825EC01: init_tcpTable (tcpTable.c:156)
==10240==by 0x82575DD: init_mib_modules (mib_module_inits.h:143)
==10240==by 0x824EFD4: snmpd (snmpd.c:1039)
==10240==by 0x40471B2: start_thread (in /lib/libpthread-2.5.so)
==10240==by 0x42E303D: clone (in /lib/libc-2.5.so)

==10240== 
==10240== 5 bytes in 1 blocks are still reachable in loss record 4 of 134

==10240==at 0x4022799: malloc (vg_replace_malloc.c:207)
==10240==by 0x834BA94: snmp_clone_mem (snmp_client.c:318)
==10240==by 0x833523D: build_oid (mib.c:3742)
==10240==by 0x832928B: _netsnmp_tdata_generate_index_oid (table_tdata.c:62)
==10240==by 0x83296AD: netsnmp_tdata_add_row (table_tdata.c:206)
==10240==by 0x82735E3: snmpCommunityTable_createEntry 
(snmpCommunityTable.c:181)
==10240==by 0x8273ECF: snmpCommunityTable_parse_com2sec 
(snmpCommunityTable.c:496)
==10240==by 0x824CBFF: create_community_user (snmp_init.c:976)
==10240==by 0x824C867: snmp_create_user_new (snmp_init.c:895)
==10240==by 0x824C617: snmp_create_v2c_user (snmp_init.c:836)
==10240==by 0x824C559: snmp_create_v2cuser_multiple_source (snmp_init.c:787)
==10240==by 0x824C25F: snmp_create_user (snmp_init.c:700)



==10240== 
==10240== 8 bytes in 1 blocks are still reachable in loss record 9 of 134

==10240==at 0x40218C9: calloc (vg_replace_malloc.c:397)
==10240==by 0x835BDB1: atime_newMarker (tools.c:810)
==10240==by 0x831FE9D: _cache_load (cache_handler.c:570)
==10240==by 0x831F881: netsnmp_cache_handler_get (cache_handler.c:274)
==10240==by 0x831821E: _ifTable_initialize_interface 
(ifTable_interface.c:361)
==10240==by 0x8285107: initialize_table_ifTable (ifTable.c:155)
==10240==by 0x82850B0: init_ifTable (ifTable.c:99)
==10240==by 0x8257641: init_mib_modules (mib_module_inits.h:148)
==10240==by 0x824EFD4: snmpd (snmpd.c:1039)
==10240==by 0x40471B2: start_thread (in /lib/libpthread-2.5.so)
==10240==by 0x42E303D: clone (in /lib/libc-2.5.so)
==10240== 



Rgds,
Sanjay
--
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


RE: Memory Leak in netsnmp-5.4.2.1

2010-04-23 Thread Mike Ayers
> From: sanjaykumar [mailto:sanjay.ku...@globaledgesoft.com]
> Sent: Friday, April 23, 2010 3:21 AM

> I am using the netsnmp-5.4.2.1
> I run the valgrind on this, I find lot of Merory Leaks.
> Could someone help me out regarding this :
> Does any patches are available to fix the memory leak for 5.4.2.1
> version ???

Do the leaks appear during execution, or upon termination?


Thanks,

Mike

--
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users