On Fri, 2009-05-29 at 10:46 +0200, Bart Van Assche wrote: > On Fri, May 29, 2009 at 10:18 AM, Dave Shield > <[email protected]> wrote: > > 2009/5/28 Bart Van Assche <[email protected]>: > >> On Thu, May 28, 2009 at 5:28 PM, James R. Leu <[email protected]> wrote: > >>> We have been seeing a memory leak with snmpd in our > >>> environment since the days of net-snmp 5.3. > > > > > >>> Some of loss records seem bogus, (librpm and librpmio?). > >>> The ones I find interesting that I am going to look into are: > >>> > >>> initialize_table_ipAddressPrefixTable > >>> _ipAddressPrefixTable_container_init > >>> netsnmp_subtree_load > >> > >> I suggest that you file a bug report for the "definitely lost" reports. > > > > > > In particular, we would be specifically interested in leaks > > that increase over time, during the normal operation of the > > agent, or when the configuration is re-read. > > > > There are a number of "initialisation leaks", where resources > > are allocated at startup, and not released when the agent shuts > > down. We've tended to be less concerned about those, since the > > agent would typically be exiting and hence releasing them anyway. > > > > Of course, patches to fix any leaks would be welcome! > > Hello Dave, > > IMHO the posted Valgrind output contains at least one report that > indicates a leak that increases over time, namely the following (341 > times 100 bytes lost): > > ==13458== 34100 bytes in 341 blocks are definitely lost in loss record > 121 of 128 > ==13458== at 0x3C01C9D7: calloc (vg_replace_malloc.c:141) > ==13458== by 0x3C26E327: netsnmp_container_get_ssll > (container_list_ssll.c:294) > ==13458== by 0x3C26E3E8: netsnmp_container_get_usll > (container_list_ssll.c:334) > ==13458== by 0x3C26BB3D: netsnmp_container_find (container.c:230)
I do agree - it is interesting. It would be really nice to know how it looks if one gives valgrind the additional option --num-callers=25 so that it shows what code it is that calls this code. /MF ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
