Bug 85071
Summary: | ipv6 net-snmp 5.0.x seems to leave descriptors behind | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Raw Hide | Reporter: | Kaj J. Niemi <kajtzu> | ||||||
Component: | net-snmp | Assignee: | Phil Knirsch <pknirsch> | ||||||
Status: | CLOSED RAWHIDE | QA Contact: | |||||||
Severity: | high | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 1.0 | CC: | rvokal | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | i686 | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2003-04-29 12:43:09 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Kaj J. Niemi
2003-02-25 10:56:28 UTC
Created attachment 90344 [details]
output of lsof -p on a snmpd
This bug is NOT reproduceable unless there the IPv6 stack is enabled (dual-stack makes it reproduceable as well.) Suppose pid 17703 is the 'snmpd' process and one monitors the descriptors with lsof as follows: % while (true) { lsof -p 17703 | wc ; sleep 2 } and one walks the IPv6 interfaces tree with snmpwalk -O n -v 2c -c quux 10.0.0.82 .1.3.6.1.2.1.55.1.5.1 the socket count goes up (as witnessed by running lsof every two seconds.) towards infinity until the open file descriptor limit is reached (at which point snmpd dies.) Simplest reproduceable case is the following (requesting IPV6-MIB::ipv6IfAdminStatus) which leaves behind one new socket. snmpget -O n -v 2c -c quux 10.0.0.82 .1.3.6.1.2.1.55.1.5.1.9.1 Patch follows. ;-) Created attachment 90351 [details]
Patch fixing missing close for IPV6IFADMSTATUS/IPV6IFOPERSTATUS.
Seems to work.
This should probably be fixed upstream, too... Not fixed in 5.0.8, patch still applies. Package updated and patch included in latest rawhide version (to appear real soon). Read ya, Phil The patch is needed ONLY if using net-snmp-5.0.9 as a base. The net-snmp-5.1.2 and later releases close the socket several lines earlier in the code fragment. Please do not include net-snmp-5.0.8-ipv6-sock-close.patch in upcoming source packages that are based on net-snmp-5.1.2. |