Comment 8 for bug 1979933

Revision history for this message
Matthew Ruffell (mruffell) wrote :

Performing verification for Focal

I install snmptrapd 5.8+dfsg-2ubuntu2.4 from updates, and edited /etc/snmp/snmptrapd.conf to have the following contents:

disableAuthorization yes
traphandle default /usr/bin/logger
sqlMaxQueue 1
sqlSaveInterval 9

I disabled all snmptrapd services:

$ sudo systemctl stop snmptrapd.service
$ sudo systemctl stop snmpd.service

and then tried to start snmptrapd, but received a segmentation fault:

$ sudo /usr/sbin/snmptrapd -LOw -f
Segmentation fault

From syslog:
Aug 4 00:47:45 focal-snmp kernel: [ 1615.972207] snmptrapd[5293]: segfault at 8 ip 00007f4879003680 sp 00007ffe914993f0 error 4 in libmysqlclient.so.21.2.30[7f4878f93000+130000]
Aug 4 00:47:45 focal-snmp kernel: [ 1615.972229] Code: 5c 41 5d 41 5e 5d c3 e8 0e 17 f9 ff 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 55 48 89 e5 41 55 49 89 fd 41 54 53 48 83 ec 08 <4c> 8b 67 08 48 8b 47 10 4c 29 e0 48 83 f8 37 0f 86 cb 00 00 00 49

I then enabled -proposed and installed snmptrapd 5.8+dfsg-2ubuntu2.5.

Again, I stopped the services:

$ sudo systemctl stop snmptrapd.service
$ sudo systemctl stop snmpd.service

and tried to start snmptrapd:

$ sudo /usr/sbin/snmptrapd -LOw -f
mysql_real_connect() failed
Error 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

This time we no longer segmentation fault, and snmptrapd keeps running.

The package in -proposed fixes the issue, happy to mark verified.