From: SourceForge.net <no...@so...> - 2004-10-20 08:26:10
|
Bugs item #1050546, was opened at 2004-10-20 10:26 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=1050546&group_id=12694 Category: apps Group: None Status: Open Resolution: None Priority: 5 Submitted By: Gizero (gizero) Assigned to: Nobody/Anonymous (nobody) Summary: snmpget potential memory leakage Initial Comment: At moment I use version 5.1.1 (but what I report appear to be valid in 5.2pre3 too). I was suspecting a memory leakage in some of snmpget components and I made a trivial modification in snmpget.c (see attached code), in order to iterate snmpget funcionality and trying to expose any potential leakage. Maybe I'm doing wrong but what I see from 'top' or /proc process information is a growing memory usage. In particular these are the ever-growing figures:VmSize: 6312 kBVmRSS: 2160 kBVmData: 736 kB Note that this test makes correct requests to the agent (valid oid) and returned values are consistent. I understand this could be a no-problem for a command line tools like snmpget, but it is critical in my project since I do provide snmpget functionalities through a library function. What reported appear to be present in both Linux and Win32 builds. I'm not an expert in using debugging and profiling tools, so any help will be appreciated to understand (and possibly solve) this problem. I'd like to help in tracking this thing down, if possible. Since I can't state where the leakage is (if it is really so...) I'm possibly reporting an already known problem: please forgive me if so. ;-) Andrea Modified snmpget.c follows: -- int main(int argc, char *argv[]) { while(1) { _main(argc, argv); } } int _main(int argc, char *argv[]) { <unmodified original main()> } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=1050546&group_id=12694 |