Hi Robert and Thomas,

<<  I am still watching the movement of the process and will test the
new version for days, ..>>

I was away for few days, Today, I check the snmptrapd, it core dump less
a day (6/21 14:01:54 to 6/22 11:31), although the memory did not
increase, but it is still core dump in the same place, please see the
attachment. So I am guessing the memory leak may be not the root cause
of the core dump ??

Any help will be appreciated.

Thanks.

Lan 

-----Original Message-----
From: Wu, Lan, ALABS 
Sent: Tuesday, June 21, 2005 10:40 AM
To: 'net-snmp-users@lists.sourceforge.net'
Subject: RE: snmptrapd memory leak ??

 
Hi Robert and Thomas,

I updated the code according to Robert's new patch, make and install, it
has run for almost 30 minutes now, the memory does not increase at all,
it keeps as 5256K and 3680K, it is great. I am still watching the
movement of the process and will test the new version for days, the
receiver currently process the incoming traps almost every or other
second.

I am really appreciate you guys instant support.

Thank!


Lan
-----Original Message-----
From: Robert Story [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 21, 2005 8:07 AM
To: Wu, Lan, ALABS
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: snmptrapd memory leak ??

On Thu, 16 Jun 2005 15:09:32 -0500 Wu, wrote:
WLA> I whipped out the old software, then untar the 5.2.1, before
config, I
WLA> edited the snmptrapd.c changed the
WLA> agentx_subagent = 0 as said in the patch.

Sorry, I missed a part - a handler was installed globally, not
respecting the
agentx flag. The fix is simply moving one line... Here is a patch
against a
clean 5.2.1 snmptrapd.c.

-- 
NOTE: messages sent directly to me, instead of the lists, will be
deleted
      unless they are requests for paid consulting services.

Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>  
Archive:
<http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>

You are lost in a twisty maze of little standards, all different. 

snmptrpad core

-rwxr-x---   1 snmp     staff        920 Apr 23 15:29 ConfigMib
-rw-------   1 snmp     staff    1179464 Jun 22 11:31 core
$ gdb /home/snmp/netsnmp/net-snmp-5.2.1/apps/.libs/snmptrapd /home/snmp/snmpc>
GNU gdb 6.0
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.8"...
Core was generated by `snmptrapd -f -F 
%N|%w%q|%#y%#02m%#02l_%#02.2h%#02.2j%#02.2k|%A|%B|%-v\n -OTausQ'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/libnetsnmptrapd.so.5...done.
Loaded symbols for /usr/local/lib/libnetsnmptrapd.so.5
Reading symbols from /usr/local/lib/libnetsnmpagent.so.5...done.
Loaded symbols for /usr/local/lib/libnetsnmpagent.so.5
Reading symbols from /usr/local/lib/libnetsnmpmibs.so.5...done.
Loaded symbols for /usr/local/lib/libnetsnmpmibs.so.5
Reading symbols from /usr/local/lib/libnetsnmphelpers.so.5...done.
Loaded symbols for /usr/local/lib/libnetsnmphelpers.so.5
Reading symbols from /usr/local/lib/libnetsnmp.so.5...done.
Loaded symbols for /usr/local/lib/libnetsnmp.so.5
Reading symbols from /usr/lib/libdl.so.1...done.
Loaded symbols for /usr/lib/libdl.so.1
Reading symbols from /usr/lib/libkvm.so.1...done.
Loaded symbols for /usr/lib/libkvm.so.1
Reading symbols from /usr/local/ssl/lib/libcrypto.so.0.9.7...done.
Loaded symbols for /usr/local/ssl/lib/libcrypto.so.0.9.7
Reading symbols from /usr/lib/libkstat.so.1...done.
Loaded symbols for /usr/lib/libkstat.so.1
eading symbols from /usr/lib/libelf.so.1...done.
Loaded symbols for /usr/lib/libelf.so.1
Reading symbols from /usr/lib/libm.so.1...done.
Loaded symbols for /usr/lib/libm.so.1
Reading symbols from /usr/lib/libnsl.so.1...done.
Loaded symbols for /usr/lib/libnsl.so.1
---Type <return> to continue, or q <return> to quit---
Reading symbols from /usr/lib/libsocket.so.1...done.
Loaded symbols for /usr/lib/libsocket.so.1
Reading symbols from /usr/lib/libadm.so.1...done.
Loaded symbols for /usr/lib/libadm.so.1
Reading symbols from /usr/lib/libc.so.1...done.
Loaded symbols for /usr/lib/libc.so.1
Reading symbols from /usr/local/lib/libgcc_s.so.1...done.
Loaded symbols for /usr/local/lib/libgcc_s.so.1
Reading symbols from /usr/lib/libmp.so.2...done.
Loaded symbols for /usr/lib/libmp.so.2
Reading symbols from /usr/platform/SUNW,Sun-Fire-880/lib/libc_psr.so.1...done.
Loaded symbols for /usr/platform/SUNW,Sun-Fire-880/lib/libc_psr.so.1
Reading symbols from /usr/lib/nss_files.so.1...done.
Loaded symbols for /usr/lib/nss_files.so.1
Reading symbols from /usr/lib/locale/en_US.ISO8859-15/en_US.ISO8859-15.so.2...
done.
Loaded symbols for /usr/lib/locale/en_US.ISO8859-15/en_US.ISO8859-15.so.2
#0  0xff196054 in sprint_realloc_integer (buf=0xffbeea98, buf_len=0xffbeea94, 
    out_len=0xffbeea90, allow_realloc=1, var=0x30060, enums=0x0, hint=0x0, 
    units=0x0) at mib.c:1333
1333                sprintf(str, "%ld", *var->val.integer);
(gdb) where
#0  0xff196054 in sprint_realloc_integer (buf=0xffbeea98, buf_len=0xffbeea94, 
    out_len=0xffbeea90, allow_realloc=1, var=0x30060, enums=0x0, hint=0x0, 
    units=0x0) at mib.c:1333
#1  0xff19a57c in sprint_realloc_variable (buf=0xffbeea98, buf_len=0xffbeea94, 
    out_len=0xffbeea90, allow_realloc=1, objid=0x0, objidlen=406480, 
    variable=0x30060) at mib.c:3237
#2  0xff375d6c in realloc_handle_trap_fmt (buf=0x0, buf_len=0xffbeea94, 
    out_len=0xffbeea90, allow_realloc=1, options=0x30060, pdu=0x633d0)
    at snmptrapd_log.c:983
(gdb) 

Reply via email to