From: SourceForge.net <no...@so...> - 2009-04-23 14:06:15
|
Bugs item #2779541, was opened at 2009-04-23 10:06 Message generated for change (Tracker Item Submitted) made by ravadac You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=2779541&group_id=12694 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: ravadac (ravadac) Assigned to: Nobody/Anonymous (nobody) Summary: Windows 5.4.x handle leak in pass_persist functionality Initial Comment: We believe we found a bug with a handle leak that impacts Net-SNMP 5.4.x on Windows. We have tested 5.4.1.2 and 5.4.2.1 of the net-snmp agent with identical results. We have tested this on various Windows 2k / 2k3 / XP machines with identical results. It appears that Net-SNMP isn't handling the unexpected shutdown of any pass_persist extension properly. It's re-starting the extension in question but any handles that were in use by that extension originally never get freed up. We have also verified that this only impacts extensions that shutdown for any reason. Net-SNMP's handle count will not increase so long as the agent extension stays running. Steps to replicate: 1. configure snmpd.conf to run a bad pass_persist extension (anything that doesn't stay running ) - Could be a batch file for sake of the test, it doesn't even have to respond to a PING / PONG conversation properly. 2. add the appropriate line to the snmpd.conf 3. poll the oid that exercises your bad agent extension. 4. Open up perfmon -> select Add Counters , under the performance object select Process and then select Handle Count. Under the instances select snmpd.exe 5. Watch the handle count climb with every poll. I have attached the perfmon output as well as Microsoft's diagnosis. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=2779541&group_id=12694 |