net-snmp 5.5 - Not HTML version

Paulo Eduardo Ostermann Filho <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <FBE823ACB6185A499D7AEF5B4E57775D089474AC16@excdbpoa01>
Hi everyone.

We are using "NET-SNMP version: 5.5" in "Linux localhost.localdomain 2.6.18-308.13.1.el5 #1 SMP Tue Aug 21 17:10:06 EDT 2012 i686 i686 i386 GNU/Linux". 

We have some questions about using net-snmp that we didn't find in documentation and examples  :
1) When must we use netsnmp_container_table_unregister, netsnmp_handler_free and netsnmp_unregister_handler ?
2)  The function netsnmp_cache_free is making a test of cache_head (http://fossies.org/dox/net-snmp-5.7.1/cache__handler_8c_source.html#l00233). This is generating  the following memory leak :
==5518== 60 bytes in 1 blocks are still reachable in loss record 82 of 100
==5518==    at 0x4005E69: calloc (vg_replace_malloc.c:593)
==5518==    by 0x4073610: netsnmp_cache_create (in /usr/lib/libnetsnmphelpers.so.20.0.0)
==5518==    by 0x8091080: Interface::containerInit(interface_ctx_s*, unsigned long*, int, String const&) (Interface.cpp:1736)
==5518==    by 0x808BF93: Interface::initializeInterface(netsnmp_data_list_s*, String const&, unsigned long*, int, unsigned int, unsigned int, String const&, interface_ctx_s*, TableMIBNode const*) (Interface.cpp:347)
==5518==    by 0x808762B: AgentSNMP::initializeTable(TableMIBNode const*) (AgentSNMP.cpp:261)
==5518==    by 0x80872C6: AgentSNMP::initNodeGateway() (AgentSNMP.cpp:200)
==5518==    by 0x8086B66: AgentSNMP::start() (AgentSNMP.cpp:143)
==5518==    by 0x8068964: SNMPInterfaceManager::initialize(CoreLib*) (SNMPInterfaceManager.cpp:27)
==5518==    by 0x8063FAD: CoreStandard::doJob(char*) (CoreStandard.cpp:74)
==5518==    by 0x8063C1A: CoreStandard::execute(int, char**) (CoreStandard.cpp:53)
==5518==    by 0x8064394: main (CoreStandard.cpp:136)

Are we using the function correctly ?

We are developing our application in C++. For getting memory leaks we are using valgrind (3.8.0). When we finish our application, valgrind reports to us the memory leaks attached to this message for net-snmp. 
Is it possible remove these memory leaks ?

Thanks in advance.



AVISO LEGAL

As informações contidas neste e-mail e nos arquivos anexos são confidenciais e para uso exclusivo do destinatário aqui indicado. 
Caso não seja o destinatário desta mensagem, por favor, apague o conteúdo do e-mail e notifique o remetente imediatamente. 
Qualquer utilização indevida ou divulgação do conteúdo deste e-mail, parcial ou total, é estritamente proibida e sujeita às penalidades legais. 
A transmissão de mensagens e arquivos pela internet não garante a integridade de seu conteúdo. 
O remetente não pode ser responsabilizado pela mensagem, caso ela tenha sido modificada.

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
memoryErrors.txt7120 (application/octet-stream, 109.4 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.