ports/161064: net-mgmt: net-snmp cores and memory leak

Helmut Schneider jumper99 at gmx.de
Tue Sep 27 10:20:05 UTC 2011


>Number:         161064
>Category:       ports
>Synopsis:       net-mgmt: net-snmp cores and memory leak
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 27 10:20:04 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Helmut Schneider
>Release:        8.2-RELEASE-p2
>Organization:
>Environment:
>Description:
net-snmp-5.7_3 cores after a while. It also has a memory leak.

# gdb
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 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 "i386-marcel-freebsd".
(gdb) core /snmpd.core
Core was generated by `snmpd'.
Program terminated with signal 11, Segmentation fault.
#0  0x286fe4fe in ?? ()
(gdb) bt
#0  0x286fe4fe in ?? ()
#1  0x3f7ff100 in ?? ()
[...]
#1152 0x0000000f in ?? ()
#1153 <signal handler called>
Cannot access memory at address 0x4c
(gdb)

[helmut at BSDHelmut ~]$ ps auxww | grep snmpd
root      41224  0.0 14.0 311996 292284  ??  S    Sun03PM  12:38.10 /usr/local/sbin/snmpd -p /var/run/snmpd.pid
[helmut at BSDHelmut ~]$

At startup it takes ~30MB, currently 312MB, I have also seen the process using 1.6GB.

[helmut at BSDHelmut ~]$ sudo /usr/local/etc/rc.d/snmpd restart
Stopping snmpd.
Waiting for PIDS: 41224.
Starting snmpd.
mibII/mta_sendmail.c:open_sendmailst: could not guess version of statistics file "/var/log/sendmail.st"
[helmut at BSDHelmut ~]$ ps auxww | grep snmpd
root      62232  1.0  0.3 27324  6560  ??  S    12:16PM   0:00.07 /usr/local/sbin/snmpd -p /var/run/snmpd.pid
[helmut at BSDHelmut ~]$

>How-To-Repeat:
Install net-snmp, wait.
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list