Hello everybody, I'm not very sure this is the correct place to ask, in case it's not please point me to the correct place.>From time to time my BSNMPD instance randomly crash without any apparentreason. It happens on different machines and different FreeBSD releases. It happened tonight as well on one of our servers. Usually I just delete the bsnpmd.core file and restart the service, but I thought there may be someone interested in looking at the core to understand what the reason may be? The bsnmpd daemon is in a private network so malicious stuff is not the case, and is used by a central Cacti instance to do usual graphs to monitor cpus, disks, memory, lan cards and whatever. The servers usually have high uptimes and quite solid network traffic. The core file is 1.3GB with seems pretty a lot to me, so maybe it died because it's leaking memory? If anyone is interested please feel free to contact me otherwise I'll just delete it :-) -- Andrea Brancatelli
On 29/03/2020 5:53 am, Andrea Brancatelli via freebsd-stable wrote:> Hello everybody, > > I'm not very sure this is the correct place to ask, in case it's not > please point me to the correct place.If the systems are running *-STABLE branches, perhaps, but freebsd-net may be better> From time to time my BSNMPD instance randomly crash without any apparent > reason. > > It happens on different machines and different FreeBSD releases. It > happened tonight as well on one of our servers. Usually I just delete > the bsnpmd.core file and restart the service, but I thought there may be > someone interested in looking at the core to understand what the reason > may be? > > The bsnmpd daemon is in a private network so malicious stuff is not the > case, and is used by a central Cacti instance to do usual graphs to > monitor cpus, disks, memory, lan cards and whatever. > > The servers usually have high uptimes and quite solid network traffic. > The core file is 1.3GB with seems pretty a lot to me, so maybe it died > because it's leaking memory? > > If anyone is interested please feel free to contact me otherwise I'll > just delete it :-) >Hi Andrea, Can you obtain a backtrace? If so, please include it as an attachment Can you post your snmp config (sanitized if necessary) ? Do any of these look relevant? https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221487 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233431 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=152259
29.03.2020 1:53, Andrea Brancatelli via freebsd-stable wrote:> If anyone is interested please feel free to contact me otherwise I'll > just delete it :-)What is most recent version of FreeBSD that has this problem with bsnmpd crashing? Please rebuild bsnmpd with debugging enabled, if you have sources installed: cd /usr/src/usr.sbin/bsnmpd make clean make cleandir make obj depend make WITH_DEBUG=yes install /usr/obj/usr/local/src/usr.sbin/bsnmpd/bsnmpd/bsnmpd /usr/sbin Restart bsnmpd and wait for next crash. Then you could obtain meaningfull backtrace.