Re: example app gives errors in valgrind

This is a discussion on Re: example app gives errors in valgrind within the SNMP Coders forums, part of the Networking and Network Related category; On s=F6n, 2007-06-24 at 14:14 +0200, Thomas Anders wrote: > Juuso Alasuutari wrote: > > The ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-24-2007
Magnus Fromreide
 
Posts: n/a
Default Re: example app gives errors in valgrind

On s=F6n, 2007-06-24 at 14:14 +0200, Thomas Anders wrote:
> Juuso Alasuutari wrote:
> > The distribution is Debian unstable, libsnmp version is 5.3.1, and Valg=

rind is =

> > 3.2.3. Is this kind of behavior normal from libsnmp, or is the test pro=

gram's =

> > code broken in some way?

> =


> Would you mind building net-snmp 5.4.1.pre3 from source, compile the
> test program against it and re-run your test?


Using trunk, the memory leak is due to init_snmp_enums where we try to
add both the string "gauge" and the string "unsigned" to the same key in
an snmp_enum that is indexed on the ASN.1 type tag.

According to my valgrind that is the definite memory leak.

/MF


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:12 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0