Reporting issue resolved with v5.4.3.  Below is my net-snmp config
info and a snippet of the valgrind output, and I attached the complete
valgrind log in case it is helpful.  Sorry to take so long to reply
with being on travel.  Thank you Bart and Thomas for your time and
help.

-Brendan


  SNMP Versions Supported:    1 2c 3
  UCD-SNMP compatability:     enabled
  Net-SNMP Version:           5.4.3
  Building for:               linux
  Network transport support:  Callback Unix TCP UDP TCPIPv6 UDPIPv6
  SNMPv3 Security Modules:     usm
  Agent MIB code:             host ucd-snmp/dlmod default_modules =>
host/hr_system host/hr_storage host/hr_device host/hr_other
host/hr_proc host/hr_network host/hr_print host/hr_disk
host/hr_partition host/hr_filesys host/hr_swrun host/hr_swinst
snmpv3mibs mibII ucd_snmp notification notification-log-mib target
agent_mibs agentx disman/event disman/schedule utilities host
  Embedded Perl support:      disabled
  SNMP Perl modules:          disabled
  SNMP Python modules:        disabled
  Authentication support:     MD5 SHA1
  Encryption support:         DES AES

$ ./net-snmp-config --configure-options
'--prefix=/home/btauras/lib/net-snmp' '--build=x86_64-pc-linux-gnu'
'--host=x86_64-pc-linux-gnu'
'--mandir=/home/btauras/lib/net-snmp/usr/share/man'
'--infodir=/home/btauras/lib/net-snmp/usr/share/info'
'--datadir=/home/btauras/lib/net-snmp/usr/share'
'--sysconfdir=/home/btauras/lib/net-snmp/etc'
'--localstatedir=/home/btauras/lib/net-snmp/var/lib'
'--libdir=/home/btauras/lib/net-snmp/usr/lib64'
'--with-sys-location=Unknown' '--with-sys-contact=r...@unknown'
'--with-default-snmp-version=3' '--with-mib-modules=host
ucd-snmp/dlmod'
'--with-logfile=/home/btauras/lib/net-snmp/var/log/net-snmpd.log'
'--with-persistent-directory=/home/btauras/lib/net-snmp/var/lib/net-snmp'
'--enable-ucd-snmp-compatibility' '--enable-shared'
'--enable-as-needed' '--disable-mfd-rewrites'
'--disable-embedded-perl' '--enable-ipv6' '--disable-internal-md5'
'--with-openssl' '--with-libwrap' '--without-rpm' '--without-bzip2'
'--without-zlib' '--without-elf' '--without-perl-modules'
'--without-python-modules' 'build_alias=x86_64-pc-linux-gnu'
'host_alias=x86_64-pc-linux-gnu' 'CFLAGS= -march=nocona -O2 -pipe
-ggdb' 'LDFLAGS=-Wl,-O1'

# diff for Makefile from asynchronous application tutorial (
http://www.net-snmp.org/wiki/index.php/TUT:Simple_Async_Application )
17,19c17,19
< CFLAGS=-I. `net-snmp-config --cflags`
< BUILDLIBS=`net-snmp-config --libs`
< BUILDAGENTLIBS=`net-snmp-config --agent-libs`
---
> CFLAGS=-I. `/home/btauras/lib/net-snmp/bin/net-snmp-config --cflags`
> BUILDLIBS=`/home/btauras/lib/net-snmp/bin/net-snmp-config --libs`
> BUILDAGENTLIBS=`/home/btauras/lib/net-snmp/bin/net-snmp-config --agent-libs`

$ ldd asyncapp
        linux-vdso.so.1 =>  (0x00007fffbb2ef000)
        libnetsnmp.so.15 =>
/home/btauras/lib/net-snmp/usr/lib64/libnetsnmp.so.15
(0x00007f392ebb9000)
        libc.so.6 => /lib/libc.so.6 (0x00007f392e860000)
        libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8 (0x00007f392e4e5000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f392ee82000)
        libdl.so.2 => /lib/libdl.so.2 (0x00007f392e2e1000)
        libz.so.1 => /lib/libz.so.1 (0x00007f392e0cc000)

On Sun, Jun 6, 2010 at 02:39, Thomas Anders <[email protected]> wrote:
> Brendan Tauras wrote:
>> My Net-SNMP version and configuration info is below.  I also attached
>> some information about my system.
>>
>> $ net-snmp-config --version
>> 5.4.2.1
>
> The obvious question is: could you retry with the latest 5.4.x version, i.e. 
> 5.4.3, and report back?
>
>
> Cheers,
> Thomas
>
Script started on Thu Jun 17 11:55:57 2010
==7415== Memcheck, a memory error detector
==7415== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
==7415== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info
==7415== Command: ./asyncapp
==7415== 
--7415-- Valgrind options:
--7415--    --tool=memcheck
--7415--    --leak-check=full
--7415--    -v
--7415--    --track-origins=yes
--7415-- Contents of /proc/version:
--7415--   Linux version 2.6.32-gentoo-r7 (r...@anon) (gcc version 4.3.4 
(Gentoo 4.3.4 p1.1, pie-10.1.5) ) #5 SMP Sun May 30 11:29:41 EDT 2010
--7415-- Arch and hwcaps: AMD64, amd64-sse3-cx16
--7415-- Page sizes: currently 4096, max supported 4096
--7415-- Valgrind library directory: /usr/lib64/valgrind
--7415-- Reading syms from 
/home/btauras/proj/c4isr/snmp_poller/examples/snmp-async-sample/asyncapp 
(0x400000)
--7415-- Reading syms from /lib64/ld-2.10.1.so (0x4000000)
--7415-- Reading debug info from /usr/lib/debug/lib64/ld-2.10.1.so.debug ..
--7415-- Reading syms from /usr/lib64/valgrind/memcheck-amd64-linux (0x38000000)
--7415-- Reading debug info from 
/usr/lib/debug/usr/lib64/valgrind/memcheck-amd64-linux.debug ..
--7415--    object doesn't have a dynamic symbol table
--7415-- Reading suppressions file: /usr/lib64/valgrind/default.supp
--7415-- REDIR: 0x4015c70 (strlen) redirected to 0x3803be43 
(vgPlain_amd64_linux_REDIR_FOR_strlen)
--7415-- Reading syms from /usr/lib64/valgrind/vgpreload_core-amd64-linux.so 
(0x4a1e000)
--7415-- Reading debug info from 
/usr/lib/debug/usr/lib64/valgrind/vgpreload_core-amd64-linux.so.debug ..
--7415-- Reading syms from 
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so (0x4c20000)
--7415-- Reading debug info from 
/usr/lib/debug/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so.debug ..
==7415== WARNING: new redirection conflicts with existing -- ignoring it
--7415--     new: 0x04015c70 (strlen              ) R-> 0x04c254ac strlen
--7415-- REDIR: 0x4015ae0 (index) redirected to 0x4c2524b (index)
--7415-- REDIR: 0x4015b60 (strcmp) redirected to 0x4c25729 (strcmp)
--7415-- Reading syms from 
/home/btauras/lib/net-snmp/usr/lib64/libnetsnmp.so.15.1.2 (0x4e29000)
--7415-- Reading syms from /lib64/libc-2.10.1.so (0x50f2000)
--7415-- Reading debug info from /usr/lib/debug/lib64/libc-2.10.1.so.debug ..
--7415-- Reading syms from /usr/lib64/libcrypto.so.0.9.8 (0x544b000)
--7415-- Reading debug info from 
/usr/lib/debug/usr/lib64/libcrypto.so.0.9.8.debug ..
--7415-- Reading syms from /lib64/libdl-2.10.1.so (0x57c6000)
--7415-- Reading debug info from /usr/lib/debug/lib64/libdl-2.10.1.so.debug ..
--7415-- Reading syms from /lib64/libz.so.1.2.3 (0x59ca000)
--7415-- Reading debug info from /usr/lib/debug/lib64/libz.so.1.2.3.debug ..
--7415-- REDIR: 0x516e3f0 (rindex) redirected to 0x4c25140 (rindex)
--7415-- REDIR: 0x516e050 (strlen) redirected to 0x4c25475 (strlen)
--7415-- REDIR: 0x516e250 (strncmp) redirected to 0x4c2568d (strncmp)
--7415-- REDIR: 0x516a2c0 (malloc) redirected to 0x4c23e18 (malloc)
--7415-- REDIR: 0x5171060 (memcpy) redirected to 0x4c257df (memcpy)
--7415-- REDIR: 0x516fbf0 (memset) redirected to 0x4c2618a (memset)
--7415-- REDIR: 0x51698a0 (calloc) redirected to 0x4c22942 (calloc)
--7415-- REDIR: 0xffffffffff600000 (???) redirected to 0x3803be2f 
(vgPlain_amd64_linux_REDIR_FOR_vgettimeofday)
--7415-- REDIR: 0x516a1e0 (free) redirected to 0x4c23790 (free)
--7415-- REDIR: 0x516dac0 (strcmp) redirected to 0x4c256e5 (strcmp)
--7415-- REDIR: 0x516da40 (index) redirected to 0x4c251ab (index)
--7415-- REDIR: 0x516e320 (strncpy) redirected to 0x4c25590 (strncpy)
--7415-- REDIR: 0x51739c0 (strchrnul) redirected to 0x4c26241 (strchrnul)
--7415-- REDIR: 0x5170720 (mempcpy) redirected to 0x4c26281 (mempcpy)
--7415-- REDIR: 0xffffffffff600400 (???) redirected to 0x3803be39 
(vgPlain_amd64_linux_REDIR_FOR_vtime)
--7415-- REDIR: 0x516f4b0 (memchr) redirected to 0x4c257b1 (memchr)
--7415-- REDIR: 0x516fa40 (memmove) redirected to 0x4c261e9 (memmove)
--7415-- REDIR: 0x5173960 (rawmemchr) redirected to 0x4c26269 (rawmemchr)
--7415-- REDIR: 0x516db00 (strcpy) redirected to 0x4c254c7 (strcpy)
---------- synchronous -----------
--7415-- REDIR: 0x5170d30 (stpcpy) redirected to 0x4c25f22 (stpcpy)
--7415-- Reading syms from /lib64/libnss_files-2.10.1.so (0x5fdf000)
--7415-- Reading debug info from 
/usr/lib/debug/lib64/libnss_files-2.10.1.so.debug ..
11:56:00.621834 localhost: SNMPv2-MIB::sysDescr.0 = STRING: Linux anon 
2.6.32-gentoo-r7 #5 SMP Sun May 30 11:29:41 EDT 2010 x86_64
11:56:00.703824 localhost: IF-MIB::ifNumber.1 = No Such Instance currently 
exists at this OID
11:56:00.707402 localhost: IF-MIB::ifNumber.0 = INTEGER: 8
11:56:00.724351 localhost: SNMPv2-MIB::sysDescr.0 = STRING: Linux anon 
2.6.32-gentoo-r7 #5 SMP Sun May 30 11:29:41 EDT 2010 x86_64
11:56:00.726244 localhost: IF-MIB::ifNumber.1 = No Such Instance currently 
exists at this OID
11:56:00.728150 localhost: IF-MIB::ifNumber.0 = INTEGER: 8
11:56:00.731347 localhost: SNMPv2-MIB::sysDescr.0 = STRING: Linux anon 
2.6.32-gentoo-r7 #5 SMP Sun May 30 11:29:41 EDT 2010 x86_64
11:56:00.733187 localhost: IF-MIB::ifNumber.1 = No Such Instance currently 
exists at this OID
11:56:00.735622 localhost: IF-MIB::ifNumber.0 = INTEGER: 8
11:56:00.739026 localhost: SNMPv2-MIB::sysDescr.0 = STRING: Linux anon 
2.6.32-gentoo-r7 #5 SMP Sun May 30 11:29:41 EDT 2010 x86_64
11:56:00.740755 localhost: IF-MIB::ifNumber.1 = No Such Instance currently 
exists at this OID
11:56:00.742586 localhost: IF-MIB::ifNumber.0 = INTEGER: 8
---------- asynchronous -----------
11:56:00.756772 localhost: SNMPv2-MIB::sysDescr.0 = STRING: Linux anon 
2.6.32-gentoo-r7 #5 SMP Sun May 30 11:29:41 EDT 2010 x86_64
11:56:00.759814 localhost: SNMPv2-MIB::sysDescr.0 = STRING: Linux anon 
2.6.32-gentoo-r7 #5 SMP Sun May 30 11:29:41 EDT 2010 x86_64
11:56:00.761725 localhost: SNMPv2-MIB::sysDescr.0 = STRING: Linux anon 
2.6.32-gentoo-r7 #5 SMP Sun May 30 11:29:41 EDT 2010 x86_64
11:56:00.763438 localhost: SNMPv2-MIB::sysDescr.0 = STRING: Linux anon 
2.6.32-gentoo-r7 #5 SMP Sun May 30 11:29:41 EDT 2010 x86_64
11:56:00.765295 localhost: IF-MIB::ifNumber.1 = No Such Instance currently 
exists at this OID
11:56:00.766966 localhost: IF-MIB::ifNumber.1 = No Such Instance currently 
exists at this OID
11:56:00.768638 localhost: IF-MIB::ifNumber.1 = No Such Instance currently 
exists at this OID
11:56:00.770327 localhost: IF-MIB::ifNumber.1 = No Such Instance currently 
exists at this OID
11:56:00.771967 localhost: IF-MIB::ifNumber.0 = INTEGER: 8
11:56:00.773499 localhost: IF-MIB::ifNumber.0 = INTEGER: 8
11:56:00.774793 localhost: IF-MIB::ifNumber.0 = INTEGER: 8
11:56:00.776054 localhost: IF-MIB::ifNumber.0 = INTEGER: 8
--7415-- Discarding syms at 0x5fe1170-0x5fe85fc in 
/lib64/libnss_files-2.10.1.so due to munmap()
==7415== 
==7415== HEAP SUMMARY:
==7415==     in use at exit: 443,850 bytes in 9,009 blocks
==7415==   total heap usage: 23,327 allocs, 14,318 frees, 3,169,911 bytes 
allocated
==7415== 
==7415== Searching for pointers to 9,009 not-freed blocks
==7415== Checked 854,344 bytes
==7415== 
==7415== 24 bytes in 4 blocks are definitely lost in loss record 327 of 604
==7415==    at 0x4C23E8C: malloc (vg_replace_malloc.c:195)
==7415==    by 0x516DDC1: strdup (strdup.c:43)
==7415==    by 0x40150D: synchronous (asyncapp.c:161)
==7415==    by 0x401600: main (asyncapp.c:296)
==7415== 
==7415== 24 bytes in 4 blocks are definitely lost in loss record 328 of 604
==7415==    at 0x4C23E8C: malloc (vg_replace_malloc.c:195)
==7415==    by 0x516DDC1: strdup (strdup.c:43)
==7415==    by 0x4012E7: asynchronous (asyncapp.c:243)
==7415==    by 0x40160F: main (asyncapp.c:299)
==7415== 
==7415== 40 bytes in 4 blocks are definitely lost in loss record 412 of 604
==7415==    at 0x4C23E8C: malloc (vg_replace_malloc.c:195)
==7415==    by 0x516DDC1: strdup (strdup.c:43)
==7415==    by 0x4014FF: synchronous (asyncapp.c:160)
==7415==    by 0x401600: main (asyncapp.c:296)
==7415== 
==7415== 40 bytes in 4 blocks are definitely lost in loss record 413 of 604
==7415==    at 0x4C23E8C: malloc (vg_replace_malloc.c:195)
==7415==    by 0x516DDC1: strdup (strdup.c:43)
==7415==    by 0x4012D6: asynchronous (asyncapp.c:242)
==7415==    by 0x40160F: main (asyncapp.c:299)
==7415== 
==7415== LEAK SUMMARY:
==7415==    definitely lost: 128 bytes in 16 blocks
==7415==    indirectly lost: 0 bytes in 0 blocks
==7415==      possibly lost: 0 bytes in 0 blocks
==7415==    still reachable: 443,722 bytes in 8,993 blocks
==7415==         suppressed: 0 bytes in 0 blocks
==7415== Reachable blocks (those to which a pointer was found) are not shown.
==7415== To see them, rerun with: --leak-check=full --show-reachable=yes
==7415== 
==7415== ERROR SUMMARY: 4 errors from 4 contexts (suppressed: 6 from 6)
--7415-- 
--7415-- used_suppression:      4 dl-hack3-cond-1
--7415-- used_suppression:      2 glibc-2.5.x-on-SUSE-10.2-(PPC)-2a
==7415== 
==7415== ERROR SUMMARY: 4 errors from 4 contexts (suppressed: 6 from 6)

Script done on Thu Jun 17 11:56:00 2010
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to