Re: investigating memory leak in multithreading app for SNMPv3
Thomas Anders <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Igor Bak wrote: > I use snmp api in my multithreading application. > Each session has its own thread and makes repeat calls to a separate OID. > Sometimes I need to reconfigure threads without relaunching whole > application. > I.e. only terminating and restarting threads. After each restarting I > see about 12 kB memory leak for each thread. > I append the thread function. > What did I forget to clean? > Many thanks for any idea. > > P.S. I use traditional API instead of single API while application fails > while compiling with the single API I didn't see any attachment, but I'm surprised your approach works at all. Net-SNMP's SNMPv3 support is known to not be thread-safe and it'd be highly non-trivial to change that. +Thomas ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users