Solaris 11 snmpd can core dump when proxy option used in the /etc/net-snmp/snmp/snmpd.conf file (Doc ID 1454665.1)

Last updated on AUGUST 01, 2016

Applies to:

Solaris Operating System - Version 11 11/11 to 11 11/11 [Release 11.0]
Information in this document applies to any platform.

Symptoms

Solaris 11 snmpd can core dump during a snmpwalk or snmpget query when the proxy option is used in the /etc/net-snmp/snmp/snmpd.conf file.

 

The option would appear such as the following:

proxy -v 1 -c public 127.0.0.1:2749 .1.3.6.1.4.1.211.4.33

During a snmpwalk when the core dump takes place a error will occur:

snmpwalk: Protocol error (Expected RESPONSE-PDU but got GETNEXT-PDU)

A review of the net-snmp SMF log file /var/svc/log/application-management-net-snmp:default.log will record a error:

[ Mar 15 13:41:33 Stopping because process dumped core. ]
[ Mar 15 13:41:33 Executing stop method (:kill). ]
[ Mar 15 13:41:33 Executing start method ("/lib/svc/method/svc-net-snmp"). ]
[ Mar 15 13:41:33 Method "start" exited with status 0. ]
[ Mar 15 13:43:51 Stopping because process dumped core. ]
[ Mar 15 13:43:51 Executing stop method (:kill). ]
[ Mar 15 13:43:51 Executing start method ("/lib/svc/method/svc-net-snmp"). ]
[ Mar 15 13:43:51 Method "start" exited with status 0. ]


A pstack command run on the core file from snmpd may reveal stacks such as the following:

# pstack core
core 'core' of 25386:   /usr/sbin/snmpd
fffffd7ffc27e959 snmp_timeout () + 2b9
0000000000408673 receive () + 7d3
000000000040536d main () + 2039
000000000040313c ???????? ()

# pstack core
core 'core' of 26063:   /usr/sbin/snmpd
 fffffd7fff231418 realfree () + d4
 fffffd7fff231ad6 cleanfree () + 4a
 fffffd7fff230e03 _malloc_unlocked () + 9b
 fffffd7fff230d3c malloc () + 2c
 fffffd7ffc2786f3 snmp_send () + 227
 fffffd7ffc4a3de1 netsnmp_wrap_up_request () + 46d
 fffffd7ffc4a7b15 netsnmp_check_outstanding_agent_requests () + 5a9
 00000000004086b5 receive () + 815
 000000000040536d main () + 2039
 000000000040313c ???????? ()

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms