Bug 255214 - [bsnmpd]
Summary: [bsnmpd]
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 12.2-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-19 08:59 UTC by Eugene M. Zheganin
Modified: 2021-04-19 08:59 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene M. Zheganin 2021-04-19 08:59:30 UTC
bsnmpd crashes regularily (every 3-5 days).

Env:
FreeBSD gw1.tpark-it 12.2-RELEASE-p4 FreeBSD 12.2-RELEASE-p4 GENERIC  amd64

Also the bsnmp-ucd-0.4.5 in installed, but accoring to the backtrace, the crash source is inside the main app.

Backtrace:
===Cut===
[root@gw1:/]# lldb --core /bsnmpd.core /usr/sbin/bsnmpd
(lldb) target create "/usr/sbin/bsnmpd" --core "/bsnmpd.core"
Core file '/bsnmpd.core' (x86_64) was loaded.
(lldb) bt
* thread #1, name = 'bsnmpd', stop reason = signal SIGSEGV
  * frame #0: 0x0000000000213a12 bsnmpd`snmp_input_start(buf=<unavailable>, len=<unavailable>, source="", pdu=0x00007ffffffe2900, ip=0x00007ffffffe28c4, pdulen=<unavailable>) at main.c:644:40
    frame #1: 0x000000000021498e bsnmpd`snmpd_input(pi=0x0000000801045000, tport=0x0000000801008c80) at main.c:1071:9
    frame #2: 0x000000080026fa3e libbegemot.so.4`poll_dispatch(wait=<unavailable>) at rpoll.c:603:6
    frame #3: 0x000000000021593a bsnmpd`main(argc=0, argv=<unavailable>) at main.c:1747:3
    frame #4: 0x00000000002130b0 bsnmpd`_start(ap=<unavailable>, cleanup=<unavailable>) at crt1.c:76:7
(lldb) frame select 0
frame #0: 0x0000000000213a12 bsnmpd`snmp_input_start(buf=<unavailable>, len=<unavailable>, source="", pdu=0x00007ffffffe2900, ip=0x00007ffffffe28c4, pdulen=<unavailable>) at main.c:644:40
   641                          pdu->engine.engine_boots = snmpd_engine.engine_boots;
   642                          pdu->engine.engine_time = snmpd_engine.engine_time;
   643                  }
-> 644          } else if (usm_user->suser.auth_proto != SNMP_AUTH_NOAUTH &&
   645               (pdu->engine.engine_boots == 0 || pdu->engine.engine_time == 0)) {
   646                  snmpd_usmstats.not_in_time_windows++;
   647                  ret = SNMPD_INPUT_FAILED;
(lldb)
===Cut===