19.11.2019 4:22, Michael W. Lucas wrote: > Hi, > > I can reliably crash net-snmp with an snmpset. Worth a formal bug > report? > > $ uname -a > FreeBSD freebsdtest 12.0-RELEASE-p10 FreeBSD 12.0-RELEASE-p10 GENERIC amd64 > > $ pkg info net-snmp > net-snmp-5.7.3_20,1 > Name : net-snmp > Version : 5.7.3_20,1 > Installed on : Wed Oct 9 15:22:24 2019 EDT > ... > > Detail: > > $ sysctl net.inet.ip.forwarding > net.inet.ip.forwarding: 0 > > $ snmpget freebsd IP-MIB::ipForwarding.0 > IP-MIB::ipForwarding.0 = INTEGER: notForwarding(2) > > $ snmpset freebsd IP-MIB::ipForwarding.0 i 1 > Timeout: No Response from freebsd > > Yep, the agent is dead: > > $ pgrep snmpd > $ > > The sysctl change took place, however: > > $ sysctl net.inet.ip.forwarding > net.inet.ip.forwarding: 1 > > I can restart the agent and reverse the change, but snmpd crashes > again. > > So: worth a bug report, or no?
Yes, and this should be easy to debug and fix provided net-snmpd port built WITH_DEBUG=yes to include debugging symbols and coredumps enabled.
signature.asc
Description: OpenPGP digital signature