Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1726373

Summary: net-snmpd double free or corruption error
Product: Red Hat Enterprise Linux 8 Reporter: Ravindra Patil <ravpatil>
Component: net-snmpAssignee: Josef Ridky <jridky>
Status: CLOSED ERRATA QA Contact: David Jež <djez>
Severity: high Docs Contact:
Priority: high    
Version: 8.0CC: apmukher, azone, chandrasekaran.natarajan, dchong, djez, dperpeet, fkrska, jcalhoun, jliedy, jobaker, jridky, ovasik, rmetrich, sbroz, thozza, toneata, wattersm
Target Milestone: rcKeywords: Reopened, ZStream
Target Release: 8.0Flags: fkrska: mirror+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: net-snmp-5.8-13.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1802055 (view as bug list) Environment:
Last Closed: 2020-04-28 16:47:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1681495    
Bug Blocks: 1746915, 1802055    
Attachments:
Description Flags
Core dump for snmpd
none
Core dump generated with test package
none
Core dump for latest package net-snmp 5.8-10
none
Core dump for latest package net-snmp 5.8-10-2
none
Core dump for latest package net-snmp 5.8-10-3
none
snmpd core dump for case #02554568
none
snmpd core dump for case #02553749 none

Description Ravindra Patil 2019-07-02 17:15:18 UTC
Created attachment 1586816 [details]
Core dump for snmpd

Description of problem:

After upgrading to the latest release of the net-snmp package the service will fail after some time with the following error in the journal.

Jun 27 12:27:35 node1 snmpd[10056]: NET-SNMP version 5.8
Jun 27 12:43:53 node1 snmpd[10056]: double free or corruption (fasttop)
Jun 27 12:43:53 node1 systemd[1]: snmpd.service: Main process exited, code=dumped, status=6/ABRT
Jun 27 12:43:53 node1 systemd[1]: snmpd.service: Failed with result 'core-dump'.

Version-Release number of selected component (if applicable):
net-snmp-5.8-7.el8_0.1.x86_64 

How reproducible:

Always.

Steps to Reproduce:
1. Install the package 
2. Start snmpd service 

Actual results:

Service fails with error message.

Expected results:

Service runs with no errors.

Comment 1 Josef Ridky 2019-07-03 06:24:24 UTC
This issue is already resolved by bug #1694047.

Fixed version of net-snmp (net-snmp-5.8.8) will be available in RHEL-8.1 release.
For testing purposes, you can use following build [1].

Due the issue is already solved, I am closing this report as CURRENTRELEASE.

[1] https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=892992

Comment 2 Jonathan Liedy 2019-07-09 18:53:06 UTC
I have tried the RHEL 8.1 release for SNMP shared to case # 02415022, and it still fails within 10-20 minutes of the service being started.

Comment 3 Josef Ridky 2019-07-10 08:49:11 UTC
I have tested the scenario from #02415022 on f30 (net-snmp-5.8-10) and RHEL8 (net-snmp-5.8-10) and all is working for 90+ minutes as expected.

I have used the /etc/snmp/snmpd.conf file from attached SOS report and I am not hitting any issue with net-snmp.

Can you share more information about what queries are sent to snmpd (snmpget, snmpwalk and so on) via #02415022?

(Copied from Fedora bug report)

Comment 4 Jonathan Liedy 2019-07-10 14:29:40 UTC
Getting debug output on snmpd.  Will add to the ticket after a failure.

Comment 5 Jonathan Liedy 2019-07-10 14:52:52 UTC
Debug output added.  Consistently dying on a GETBULK request.

Comment 7 Jonathan Liedy 2019-07-11 18:34:34 UTC
After further testing, it looks like I'm only getting the failure when using v3.  Once I switch the monitoring system to use v2c, I no longer get any service crashes/coredumps.

While this is a workaround, we would prefer to use v3.

Comment 9 Josef Ridky 2019-07-12 07:10:19 UTC
Reopening due deeper investigation of this issue is requested.

Comment 11 Ravindra Patil 2019-07-12 20:59:10 UTC
Created attachment 1590042 [details]
Core dump generated with test package

Comment 24 Ravindra Patil 2019-09-04 17:37:26 UTC
Created attachment 1611607 [details]
Core dump for latest package net-snmp 5.8-10

Comment 25 Ravindra Patil 2019-09-04 17:38:19 UTC
Created attachment 1611608 [details]
Core dump for latest package net-snmp 5.8-10-2

Comment 26 Ravindra Patil 2019-09-04 17:38:46 UTC
Created attachment 1611609 [details]
Core dump for latest package net-snmp 5.8-10-3

Comment 37 Ravindra Patil 2020-01-07 22:29:36 UTC
Created attachment 1650519 [details]
snmpd core dump for case #02554568

Comment 38 chandrasekaran 2020-01-08 09:15:52 UTC
Created attachment 1650619 [details]
snmpd core dump for case #02553749

Comment 62 errata-xmlrpc 2020-04-28 16:47:25 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:1817