Memory leak with net-snmp agent v3 ?

2024-02-16 Thread Vincent Gilson via Net-snmp-coders
Hi, I managed to do a secure DTLS comm between my laptop (snmpget) and my embedded device net-snmp agent. But I noticed there's somewhere a memory leak on the Agent (embedded device) side : I see some 12KB amount of memory taken by the agent each time it successfully handles such request

Memory leak in list of sessions.

2019-07-02 Thread Alexander Ruzin
Hi, It seems, that there is a memory leak when reconfiguration by SIGHUP signal. To reproduce and debug the issue I propose the following patch: diff -rBbNuw -X ../Exclude net-snmp-5.8.org/agent/agent_read_config.c net-snmp-5.8/agent/agent_read_config.c --- net-snmp-5.8.org/agent

Re: Memory Leak in snmplib/keytools.c

2018-10-10 Thread Bart Van Assche
On 10/10/18 10:53 AM, Roedersheimer, Drew A. wrote: I searched for usage of EVP_MD_CTX_free()/EVP_MD_CTX_new() and found a similar memory leak in the generate_Ku() function within snmplib/keytools.c. Also this patch has been applied on the master and v5.8 branches. Thanks for the patch

Memory Leak in snmplib/keytools.c

2018-10-10 Thread Roedersheimer, Drew A.
I searched for usage of EVP_MD_CTX_free()/EVP_MD_CTX_new() and found a similar memory leak in the generate_Ku() function within snmplib/keytools.c. I had to craft up a client app to force this error path, but Valgrind did confirm it: ==4091== 17,328 bytes in 361 blocks are definitely lost in

Re: Memory Leak in snmplib/scapi.c

2018-10-09 Thread Bart Van Assche
On 10/9/18 4:28 PM, Roedersheimer, Drew A. wrote: After applying the patch, Valgrind shows no memory leaks. Thanks for the patch! A slightly modified patch has been applied on the master and v5.8 branches. Comments or questions are welcome. My company is planning to supply this patch to Re

Memory Leak in snmplib/scapi.c

2018-10-09 Thread Roedersheimer, Drew A.
I found a memory leak in the sc_hash()/sc_hash_type() function within snmplib/scapi.c. The leak was identified by running Valgrind on a SNMP client application which queries v3 servers using SHA/AES. Here's an example of the Valgrind memory leak trace (using net-snmp-5.7.2-28 from

Re: Snmptrapd memory leak at log_notification

2017-08-02 Thread Jeffry Copps
addr_in2+150 >> netsnmp_sockaddr_in2+134 >> netsnmp_tcp_create_tstring+24 >> netsnmp_tdomain_transport_full+508 >> netsnmp_transport_open_client+18 >> subagent_open_master_session+125 >> agentx_reopen_session+82 >> run_alarms+ce >> SnmpTrapdMain+c28 >> >

Re: Snmptrapd memory leak at log_notification

2017-07-29 Thread Bill Fenner
addr_in2+150 > netsnmp_sockaddr_in2+134 > netsnmp_tcp_create_tstring+24 > netsnmp_tdomain_transport_full+508 > netsnmp_transport_open_client+18 > subagent_open_master_session+125 > agentx_reopen_session+82 > run_alarms+ce > SnmpTrapdMain+c28 > > > Thanks, > Jeffry copps &g

Re: Snmptrapd memory leak at log_notification

2017-07-24 Thread Jeffry Copps
Are you sure it is a memory leak, or is it simply the NOTIFICATION-LOG-MIB > implementation? > > Does the memory usage still increase when you run with "-- > doNotRetainNotificationLogs=yes" or the equivalent in snmptrapd.conf? > > Bill > > > On Tue, Jul 11

Re: Snmptrapd memory leak at log_notification

2017-07-13 Thread Bill Fenner
Are you sure it is a memory leak, or is it simply the NOTIFICATION-LOG-MIB implementation? Does the memory usage still increase when you run with "--doNotRetainNotificationLogs=yes" or the equivalent in snmptrapd.conf? Bill On Tue, Jul 11, 2017 at 3:12 AM, Jeffry Copps wrote: >

Re: Snmptrapd memory leak at log_notification

2017-07-11 Thread Jeffry Copps
iginal Message - > | From: "Jeffry Copps" > | To: [email protected] > | Sent: Tuesday, July 11, 2017 9:12:13 AM > | Subject: Snmptrapd memory leak at log_notification > | > | Hi NET-SNMP, > | > | I have recently starting working on SNMP Trapd d

Re: Snmptrapd memory leak at log_notification

2017-07-11 Thread Josef Ridky
Core Services Team Red Hat Czech, s.r.o. - Original Message - | From: "Jeffry Copps" | To: [email protected] | Sent: Tuesday, July 11, 2017 9:12:13 AM | Subject: Snmptrapd memory leak at log_notification | | Hi NET-SNMP, | | I have recently starting worki

Snmptrapd memory leak at log_notification

2017-07-11 Thread Jeffry Copps
Hi NET-SNMP, I have recently starting working on SNMP Trapd daemon. And I was running a memory leak analysis on the application and came to know that there is a leak in the below call stack. Could someone help me here? Or have I understood it wrong? LeakTrack+20b07 msvcr120!malloc+5b memdup+53

Re: Memory leak in inetCidrRouteTable 5.7.3

2016-11-09 Thread Robert Story
On Wed, 9 Nov 2016 16:10:33 +0530 Soubhagya wrote: SP> Yes, we have used mib2c compiler to generate the code and which SP> I feel it's same to MFD template. SP> SP> Apart from "Which method would you like to use to gather data SP> about available rows?" option all other option we choosed is SP> DE

Re: Memory leak in inetCidrRouteTable 5.7.3

2016-11-09 Thread Soubhagya Panigrahi
Hi Robert, Thank you for your response. We have already implemented this table using autogeneration method. But while doing a continuous query, I got memory leak in inetCidrRouteTable and that's the reason I am going through all over again, specially *_container_load() and add_ipv6_route_en

Re: Memory leak in inetCidrRouteTable 5.7.3

2016-11-07 Thread Robert Story
[Replying only to coders list] On Mon, 7 Nov 2016 19:25:49 +0530 Soubhagya wrote: SP> I have some queries with respect to memory leak in inetCidrRouteTable while SP> continuous query to inetCidrRouteTable . SP> [...] SP> As part of my project, we have added a support for ipv6 route

Memory leak in inetCidrRouteTable 5.7.3

2016-11-07 Thread Soubhagya Panigrahi
Hi All, I have some queries with respect to memory leak in inetCidrRouteTable while continuous query to inetCidrRouteTable . Valgrind report === 7480 ==16547== 7,569,856 bytes in 3,416 blocks are definitely lost in loss record 5,344 of 5,344 7481 ==16547==at 0x4C266B0: calloc

memory Leak in net-snmp-5.7.3

2016-04-29 Thread Soubhagya Panigrahi
Hi Team, I am facing one memory leak issue while doing a continuous query for more than 12 hours within a interval of 5 seconds. Used Net-snmp version : 5.7.3 This is the valgrind report. ==20640== 32 bytes in 1 blocks are definitely lost in loss record 2,210 of 5,253 ==20640==at 0x4C266B0

C++ Table Subagent Memory Leak (6.5.1.1)

2016-04-22 Thread Ian C
Hi folks, I have a peculiar memory leak from a sub-agent created with mib2c's "iterate" configuration.  Each time it processes a request, it grabs 64Kb which never gets released.  The stranger  part is that this only happens on a production system but NOT on my dev environmen

Re: Memory leak in 5.7.2.1, _sess_process_packet?

2014-07-11 Thread Sean Burke
I've observed the leak with GET and v3 AuthNoPriv. I believe that GET-NEXT and GET-BULK would show the problem also. I am running an agent session that receives these requests. -SEan On Jul 8, 2014, at 11:10 AM, Bill Fenner wrote: On Tue, Jun 24, 2014 at 3:47 AM, Sean Burke wrote: Hi All,

Re: Memory leak in 5.7.2.1, _sess_process_packet?

2014-07-09 Thread Bill Fenner
I tried running "top" while servicing SNMPv3 "get" requests. Results: PID USER PR NI VIRT RES SHR S %CPU %MEMTIME+ COMMAND 3585 root 20 0 13168 2988 1008 S 0.0 0.1 0:00.05 snmpd 3585 root 20 0 13168 2988 1008 S 0.0 0.1 0:00.05 snmpd 3585 root 20 0 1

Re: Memory leak in 5.7.2.1, _sess_process_packet?

2014-07-08 Thread Bill Fenner
On Tue, Jun 24, 2014 at 3:47 AM, Sean Burke wrote: > Hi All, > > I am writing to ask about this code in 5.7.2.1 snmp_api.c at line 5423. > I am specifically concerned with the constraint pdu->command == > SNMP_MSG_TRAP2, > which appears to interfere with freeing the securityStateRef for request >

Memory leak in 5.7.2.1, _sess_process_packet?

2014-07-08 Thread Sean Burke
Hi All, I am writing to ask about this code in 5.7.2.1 snmp_api.c at line 5423. I am specifically concerned with the constraint pdu->command == SNMP_MSG_TRAP2, which appears to interfere with freeing the securityStateRef for request command types, e.g. GET, SET, GET-NEXT, GET-BULK. Testing with v

Re: Memory Leak bug in net-snmp-5.6.2.1, in the procedure snmpv3_parse()

2014-03-13 Thread Bill Fenner
);* > *}* > > * SNMP_FREE(mallocbuf);* > * return ret_val;* > * <--- TWO LEAKS OCCUR HERE **}* > > > > > On 03/12/2014 11:06 AM, John Zavgren wrote: > > Dear List: > > Let me apologize... the "memor

Re: Memory Leak bug in net-snmp-5.6.2.1, in the procedure snmpv3_parse()

2014-03-12 Thread John Zavgren
u_buf_len);** **DEBUGINDENTADD(-8);** **} else {** **DEBUGINDENTADD(-4);** **}** ** **SNMP_FREE(mallocbuf);** **return ret_val;**<--- TWO LEAKS OCCUR HERE **}** * On 03/12/2014 11:06 AM, John Zavgren wrote:

Re: Memory Leak bug in net-snmp-5.6.2.1, in the procedure snmpv3_parse()

2014-03-12 Thread John Zavgren
Dear List: Let me apologize... the "memory leak" that I reported, IS NOT a memory leak. I should have read my email carefully before sending it. I'm sorry for any confusion or consternation I may have created. :-( JZ On 03/12/2014 10:55 AM, John Zavgren wrote: Greetings: Memo

Memory Leak bug in net-snmp-5.6.2.1, in the procedure snmpv3_parse()

2014-03-12 Thread John Zavgren
Greetings: Memory is allocated in the procedure snmv3_parse(), in the file: snmplib/snmp_api.c, at line number 3995, and leaked at line number 4004. */*** ** * securtityParameters OCTET STRING begins after msgGlobalData ** ** */** **sec_params = data;** **pdu->contextEngineID =

Re: Memory leak in _sess_process_packet/handle_snmp_packet upon unknown context.

2013-07-31 Thread Patrik Thunström
many have encountered it, but any memory leak I'd say is a bad memory leak (besides that we in our usage encounter this not too rarely). The suggested way of fixing the leak has been working just fine on our end since end of may. We applied the fix to the 5.7.2 source release, but the patch

Memory leak in _sess_process_packet/handle_snmp_packet upon unknown context.

2013-05-30 Thread Patrik Thunström
h seems to work fine, is to just after the call to netsnmp_remove_and_free_agent_snmp_session add the same routines as is available at snmp_api.c:5260 and snmp_api.c:5422 (which I can see in the git repository has been converted to the function free_securityStateRef). This does eliminate the memory leak on our test environment at le

Re: CFV: snmpd 5.6.1.1, memory leak on hpux 11i (all versions) (bug 3560655)

2012-09-17 Thread Wes Hardaker
Niels Baggesen writes: > This seems to be a simple fix for the problem. Applied. -- Wes Hardaker Please mail all replies to [email protected] -- Live Security Virtual Conference Exclusive live event

CFV: snmpd 5.6.1.1, memory leak on hpux 11i (all versions) (bug 3560655)

2012-09-02 Thread Niels Baggesen
This seems to be a simple fix for the problem. /Niels -- Niels Baggesen - @home - Århus - Denmark - [email protected] The purpose of computing is insight, not numbers --- R W Hamming swrun_pstat.dif Description: video/dv

Re: snmp_async_send triggers a memory leak, if agent is unreachable

2012-02-27 Thread Wes Hardaker
>>>>> On Fri, 17 Feb 2012 21:46:22 +0530, said: > If it is powered off, it triggers a memory leak; causing the size of the > application to increase by 1mb every day. Are you freeing the PDU when a failure occurs? If you read the documentation on snmp_send you'll

RE: snmp_async_send triggers a memory leak, if agent is unreachable

2012-02-20 Thread basil.joseph
the agent, these information get stuck in the memory forever. And these PDUs and the increasing "outstanding requests list" may be reason behind the memory leak. My questions are: After the timeout/expire value, are these information automatically deleted? Or it resides in the memory

snmp_async_send triggers a memory leak, if agent is unreachable

2012-02-17 Thread basil.joseph
sec. Everything worked fine if the network device is turned on. If it is powered off, it triggers a memory leak; causing the size of the application to increase by 1mb every day. I am using SNMPv3 with authnoPriv security level. I am also setting the Engine-id of the network device in

Re: memory leak calling snmp_send()

2011-02-27 Thread Bart Van Assche
On Sat, Feb 26, 2011 at 5:48 PM, Adam Mendlik wrote: > Here is a simple demo I put together that exemplifies the problem I'm > seeing. If you run this code as-is, memory use will increase indefinately. > However, if you take out the snmp_send() call and just call snmp_free_pdu(), > memory use wil

Re: memory leak calling snmp_send()

2011-02-26 Thread Adam Mendlik
Here is a simple demo I put together that exemplifies the problem I'm seeing. If you run this code as-is, memory use will increase indefinately. However, if you take out the snmp_send() call and just call snmp_free_pdu(), memory use will remain perfectly flat. I should also mention that my netsnmp.

Re: memory leak calling snmp_send()

2011-02-26 Thread Niels Baggesen
Den 23-02-2011 19:07, Adam Mendlik skrev: > My question is: is there a reason why snmp_send() is leaking memory, how > do I fix it, or should I be using a different function in this scenario? Are you checking the return value from snmp_send? I seem to recall that sending traps is different, in th

Re: memory leak calling snmp_send()

2011-02-26 Thread Bart Van Assche
Hello Adam, If you can post a minimal example to this list that allows to reproduce the leak I'll have a look at it. Bart. On Thu, Feb 24, 2011 at 6:50 PM, Adam Mendlik wrote: > I'm using 5.5.1.pre2. > > > On Thu, Feb 24, 2011 at 4:26 AM, Bart Van Assche wrote: > >> On Wed, Feb 23, 2011 at 7

Re: memory leak calling snmp_send()

2011-02-24 Thread Adam Mendlik
I'm using 5.5.1.pre2. On Thu, Feb 24, 2011 at 4:26 AM, Bart Van Assche wrote: > On Wed, Feb 23, 2011 at 7:07 PM, Adam Mendlik wrote: > >> I've written a Windows service which consumes an inbound data stream and >> sends out SNMP traps using netsnmp.lib. >> >> During service initialization I ca

Re: memory leak calling snmp_send()

2011-02-24 Thread Bart Van Assche
On Wed, Feb 23, 2011 at 7:07 PM, Adam Mendlik wrote: > I've written a Windows service which consumes an inbound data stream and > sends out SNMP traps using netsnmp.lib. > > During service initialization I call: > snmp_sess_init(&session); > session.version = SNMP_VERSION_1; > init_snmp("snmpapp"

memory leak calling snmp_send()

2011-02-23 Thread Adam Mendlik
I've written a Windows service which consumes an inbound data stream and sends out SNMP traps using netsnmp.lib. During service initialization I call: snmp_sess_init(&session); session.version = SNMP_VERSION_1; init_snmp("snmpapp"); ... and set session.peername, session.community, and session.comm

Re: Memory leak when doing snmpwalk

2010-07-29 Thread Abhimanyu Chowdhary
Thanks Dave, I tried with 5.5, problem seems to be fixed now. On Fri, Jul 23, 2010 at 11:46 AM, Dave Shield wrote: > On 22 July 2010 17:32, Abhimanyu Chowdhary wrote: > > When I do snmpwalk over mib-2, agent crashes after like 15 hours because > of > > memory leak I have ne

Re: Memory leak when doing snmpwalk

2010-07-23 Thread Dave Shield
On 22 July 2010 17:32, Abhimanyu Chowdhary wrote: > When I do snmpwalk over mib-2, agent crashes after like 15 hours because of > memory leak I have netsnmp 5.3.1 and OS is linux(fedora). Can you try with one of the more recent releases? (5.3.3, 5.4.3, 5.5 or the 5.6 pre-release)

Re: Memory leak when doing snmpwalk

2010-07-22 Thread Manjit
Hi , Valgrind report w.r.t this leak will help people to analyse the exact cause. Regards, Manjit Abhimanyu Chowdhary wrote: > Hi, > > When I do snmpwalk over mib-2, agent crashes after like 15 hours > because of memory leak. > Now, what I have seen is the memory only leaks w

Memory leak when doing snmpwalk

2010-07-22 Thread Abhimanyu Chowdhary
Hi, When I do snmpwalk over mib-2, agent crashes after like 15 hours because of memory leak. Now, what I have seen is the memory only leaks when it is going through ipCidrRoteTable, and it always goes down in multiple of 28K. I saw their were some issues with this[BUG 1596638], I patched that

Re: memory leak - net-snmp 5.1.2 with agentx

2010-03-20 Thread Robert Story
On Fri, 19 Mar 2010 06:28:59 -0700 (PDT) nathan wrote: N> I am running netsnmp on an embedded platform, and noticed that memory is filling up very quicklyusing the same agentx sw in my laptop with memory anlyzing tool, i found out this 5.1.2 is no longer supported. Please try and reprod

memory leak - net-snmp 5.1.2 with agentx

2010-03-19 Thread nathan
Hi, I am running netsnmp on an embedded platform, and noticed that memory is filling up very quicklyusing the same agentx sw in my laptop with memory anlyzing tool, i found out this ==4815== 2,352 bytes in 4 blocks are definitely lost in loss record 75 of 75 ==4815==at 0x4006AEE: ma

Re: Memory leak in snmp_agent.c

2010-03-12 Thread lanas
Le Vendredi, 12 Mars 2010 17:38:37 -0800, Wes Hardaker a écrit : > You're right it's not. Generally there are a number of places in the > code (many many actually) where single-instance calls to memory > allocation are taken and never cleaned up like they should be at > shut-down time because we

Re: Memory leak in snmp_agent.c

2010-03-12 Thread Wes Hardaker
>>>>> On Sat, 6 Mar 2010 15:18:32 -0500, "Szudy Brett-CBS035" >>>>> said: SB> I have version 5.5 of netsnmp. I am looking at snmp_agent.c, function SB> init_master_agent and see a memory leak here. strdup mallocs and SB> duplicates the string

Memory leak in snmp_agent.c

2010-03-06 Thread Szudy Brett-CBS035
Hi all I have version 5.5 of netsnmp. I am looking at snmp_agent.c, function init_master_agent and see a memory leak here. strdup mallocs and duplicates the string into buf, but then buf is never released. It is a local which is also never stored or returned, so it is lost forever and not

Re: [PATCH] cpu sysctl memory leak

2010-01-07 Thread Wes Hardaker
>>>>> On Tue, 22 Dec 2009 17:53:22 -0800, Stephen Hemminger >>>>> said: SH> Minor memory leak, the mcpu_stats array is malloc'd but never freed. Thanks! In the future, if you upload patches to our patch tracker we can't miss and forget them: htt

[PATCH] cpu sysctl memory leak

2009-12-22 Thread Stephen Hemminger
Minor memory leak, the mcpu_stats array is malloc'd but never freed. --- a/agent/mibgroup/hardware/cpu/cpu_sysctl.c 2009-12-22 17:25:47.923759085 -0800 +++ b/agent/mibgroup/hardware/cpu/cpu_sysctl.c 2009-12-22 17:26:37.373759058 -0800 @@ -196,6 +196,7 @@ int netsnmp_cpu_arch

Re: strdup() in sprintf() in patch 1775124 = memory leak

2009-12-22 Thread lanas
intf() > > statement in the netsnmp_udp_fmtaddr() method (plus one more) > > > > See: http://pastebin.ca/1701854. > > > > I reckon that this was fixed later (5.5. does not have it). > > It was. > > Revision 16654 accepted the patch. > Revision 16716 fixe

Re: strdup() in sprintf() in patch 1775124 = memory leak

2009-12-22 Thread Magnus Fromreide
//pastebin.ca/1701854. > > I reckon that this was fixed later (5.5. does not have it). It was. Revision 16654 accepted the patch. Revision 16716 fixed the memory leak. I think this should be sent to the Debian Net-SNMP maintainers. /MF > The default patch excerpt: > > +

Re: strdup() in sprintf() in patch 1775124 = memory leak

2009-12-21 Thread Stephen Hemminger
} else { > +sprintf(tmp, "UDP: [%s]->[%s]:%hu", > +strdup(inet_ntoa(addr_pair->local_addr)), > +strdup(inet_ntoa(to->sin_addr)), ntohs(to->sin_port)); > > Patch URL: > > http://sourceforge.net/tracker/?func=det

strdup() in sprintf() in patch 1775124 = memory leak

2009-12-21 Thread lanas
All, Just to let you know that 5.4.1 as shipped by Debian applies a patch # 1775124 that contains two strdup() inside a sprintf() statement in the netsnmp_udp_fmtaddr() method (plus one more) See: http://pastebin.ca/1701854. I reckon that this was fixed later (5.5. does not have it). Th

Re: free'ing of all malloc's on shutdown would make memory leak detection easier

2009-03-11 Thread Robert Story
On Wed, 11 Mar 2009 10:41:48 + (GMT) R. wrote: RD> I normally develop with memory leak detection turned on, so that I quickly find out about any new leaks I might have just introduced in the code. This strategy does not work for Net-SNMP, and it looks like it's by design, It'

Re: free'ing of all malloc's on shutdown would make memory leak detection easier

2009-03-11 Thread Bart Van Assche
On Wed, Mar 11, 2009 at 11:41 AM, R. Diez wrote: > I find the the suggested leak-debugging procedure cumbersome and error-prone. > It would be > nice if all malloc'ed memory were free'd on shutdown. I guess that would be > inside > snmp_shutdown(), or maybe I'm just missing some clean-up call so

free'ing of all malloc's on shutdown would make memory leak detection easier

2009-03-11 Thread R. Diez
Hi all: I'm debugging my own AgentX subagent on Windows XP under Visual Studio 2005, and, I always get a number of memory leaks reported on shutdown. I normally develop with memory leak detection turned on, so that I quickly find out about any new leaks I might have just introduced i

Re: memory leak on traps

2009-03-04 Thread Amit Kumar
 the guys who faced the same issue .. help me out to resolve the same.. Thanks Amit From: Amit Kumar To: [email protected] Sent: Wednesday, 4 March, 2009 15:54:18 Subject: memory leak on traps Hi All ,         I am getting some m/m

memory leak on traps

2009-03-04 Thread Amit Kumar
Hi All ,         I am getting some m/m leak in send_v2trap .. i added one patch to avoid this --- net-snmp-5.4/agent/agent_trap.c 2006-09-19 20:15:26.0 +0530 +++ net-snmp-5.4_new/agent/agent_trap.c 2009-03-04 15:03:14.0 +0530 @@ -897,6 +897,7 @@ send_trap_to_sess(netsnmp_sess

RE: snmpd memory leak on overnight stress test ..

2009-02-26 Thread Sergio Cabaço
@lists.sourceforge.net Subject: Re: snmpd memory leak on overnight stress test .. 2009/2/26 Amit Kumar : >         I upgraded the net-snmp version to 5.4.2.1 > (is this the latest one?) Yes. > i am getting the leak only while doing walk on private mib > (which is dynamically loaded ) > i think th

Re: snmpd memory leak on overnight stress test ..

2009-02-26 Thread Dave Shield
2009/2/26 Amit Kumar : >         I upgraded the net-snmp version to 5.4.2.1 > (is this the latest one?) Yes. > i am getting the leak only while doing walk on private mib > (which is dynamically loaded ) > i think the problem is in net-snmp dlmod only .. Or else it's in your private module. So th

Re: snmpd memory leak on overnight stress test ..

2009-02-26 Thread Amit Kumar
From: Magnus Fromreide To: Amit Kumar Cc: [email protected] Sent: Thursday, 26 February, 2009 13:03:32 Subject: Re: snmpd memory leak on overnight stress test .. On Wed, 2009-02-25 at 22:44 -0800, Amit Kumar wrote: > please find the valgring tra

Re: snmpd memory leak on overnight stress test ..

2009-02-25 Thread Magnus Fromreide
On Wed, 2009-02-25 at 22:44 -0800, Amit Kumar wrote: > please find the valgring traces : > ... lots of valgrind output... > Hi All, > > I am using net-snmp 5.4 version . while doing overnight stress > test i got a memory leak of 2 MB .. > i am not able to f

snmpd memory leak on overnight stress test ..

2009-02-25 Thread Amit Kumar
Hi All,         I am using net-snmp 5.4 version . while doing overnight stress test i got a memory leak of 2 MB .. i am not able to figure out the problem .. please help me out ... Thanks in Advance.. Amit Kumar

Fwd: python snmpwalk memory leak

2008-10-27 Thread Gabriele Messineo
ple ? val_tuple : Py_BuildValue("")); } Regards, Gabriele Messineo -- Forwarded Message -- Subject: python snmpwalk memory leak Date: Friday 24 October 2008 From: Gabriele Messineo <[EMAIL PROTECTED]> To: [email protected] Hi, I woul

python snmpwalk memory leak

2008-10-24 Thread Gabriele Messineo
Hi, I would like to re-open netsnmp Bug "[ 1868278 ] A bug in python useing netsnmp.snmpwalk". That's because cited patch ( http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=497656 ) was addressing a seg fault. I did some tests in order to find the memory leak, I hope it ca

Re: Memory leak when trap is sent in 5.3.1

2008-09-18 Thread Daniel Chuang
Hi, Zhouhuai, I also saw the same coredump but it seemed to related to delegated requessts on timeout in my case. thanks, Daniel Zhouhuai Shen wrote: > Hi, > > I had a coredump when I run net-snmp 5.3.1. It seems the leakage was > observed when traps are sent. > Doesanyoneknow about this issue

Memory leak when trap is sent in 5.3.1

2008-09-17 Thread Zhouhuai Shen
Hi, I had a coredump when I run net-snmp 5.3.1. It seems the leakage was observed when traps are sent. Doesanyoneknow about this issue and any possible patch has been done tofix this?It seems the problem also happens in net-snmp 5.4.1. My coredump is as the following: ===

Re: RFV: fix memory leak for snmptrapd embedded Perl on x86_64

2008-06-06 Thread Wes Hardaker
> On Thu, 05 Jun 2008 02:41:25 +0200, Thomas Anders <[EMAIL PROTECTED]> > said: TA> BTW, you've been heavily arguing against the #ifdef hack in the first TA> place back then, but don't let it stop you from voting for its TA> persistence now that the alternative isn't a fancy segfault, but

Re: Memory leak problem in snmpget

2008-06-05 Thread Dave Shield
김성환 wrote: > > I am using the following function modified from the main function of > 'snmpget' program. > Bear in mind that this code is a "use once" program. It doesn't necessarily try to tidy up cleanly, since all memory will be released automatically when the program exits. > When I call the

Memory leak problem in 'snmpget'

2008-06-04 Thread 김성환
Hello, I am using the following function modified from the main function of 'snmpget' program. The SNMP library version is 5.4.1. But, it has a memory leak problem. When I call the functions infinitely, the memory size of the program grows. How can I solve the problem? Please, l

Memory leak problem in snmpget

2008-06-04 Thread 김성환
Hello,   I am using the following function modified from the main function of 'snmpget' program. The SNMP library version is 5.4.1. But, it has a memory leak problem. When I call the functions infinitely, the memory size of the program grows. How can I solve the problem? P

Re: RFV: fix memory leak for snmptrapd embedded Perl on x86_64

2008-06-04 Thread Thomas Anders
Wes Hardaker wrote: > I think without looking further into the issue, I'd say -1. If it's > known to cause segfaults on x86_64 (as the comment applies) then it > would be better to change the ifdef to a point where we know it's safe > now, or go back to the original perl version that the problem a

Re: RFV: fix memory leak for snmptrapd embedded Perl on x86_64

2008-06-04 Thread Wes Hardaker
>>>>> On Sun, 01 Jun 2008 08:51:54 +0200, Thomas Anders <[EMAIL PROTECTED]> >>>>> said: >> Log Message: >> --- >> NEWS: snmptrapd: BUG: 1955227: Memory leak for embedded Perl on x86_64 >> >> Modified Paths: >

RFV: fix memory leak for snmptrapd embedded Perl on x86_64

2008-05-31 Thread Thomas Anders
[EMAIL PROTECTED] wrote: > Revision: 16983 > http://net-snmp.svn.sourceforge.net/net-snmp/?rev=16983&view=rev > Author: tanders > Date: 2008-05-31 23:45:23 -0700 (Sat, 31 May 2008) > > Log Message: > --- > NEWS: snmptrapd: BUG: 1955227: Memo

Re: Potential memory leak in Netsnmp subagent handling

2008-02-10 Thread Henning Rogge
Am Freitag 08 Februar 2008 17:06:02 schrieb Thomas Anders: > Henning Rogge wrote: > > during writing a netsnmp subagent I noticed my code had a memory leak. I > > tracked it down to a memory leak in netsnmp. > > > > I attached a programm which produce the memory leak.

Re: Potential memory leak in Netsnmp subagent handling

2008-02-08 Thread Thomas Anders
Henning Rogge wrote: > during writing a netsnmp subagent I noticed my code had a memory leak. I > tracked it down to a memory leak in netsnmp. > > I attached a programm which produce the memory leak. Could you please file a bug on http://www.net-snmp.org/bugs so it won't get

Potential memory leak in Netsnmp subagent handling

2008-02-08 Thread Henning Rogge
Hello, during writing a netsnmp subagent I noticed my code had a memory leak. I tracked it down to a memory leak in netsnmp. My code has to create and release entries in the SNMP tree and it seems that function netsnmp_unregister_handler() does not free all resources allocated during handler

memory leak and socket in Net-SNMP version 5.3.1 - trap

2007-10-08 Thread Kobi Vaknin (kvaknin)
Hello all I've encounter with memory leak and unclose sockets in the snmp agent -Net-SNMP version 5.3.1: scenarios: * for each HUP signal sent to the agent ( for configuration update) while in the snmpd.conf include trap directive ( v1 or v2 ). for example "

memory leak in net-snmp-5.2.4

2007-08-21 Thread 李 �F
hi, the tool valgrind report there is a memory leak in function "netsnmp_transport *netsnmp_udp_transport(struct sockaddr_in *addr, int local)" in file "snmplib/snmpUDPDomain.c" : *addr_pair is malloced but not freed. The net-snmp version is 5.2.4. I looked into

Re: net-snmp 5,4 memory leak when sending out traps

2007-07-20 Thread Dave Shield
On 20/07/07, 吴亚东 <[EMAIL PROTECTED]> wrote: >From http://net-snmp.sourceforge.net/docs/CHANGES.html, there are two: - [PATCH 1592706]: Fix memory leak when cloning varbinds. - [PATCH 1616912]: fix memory leak in snmp_udp_transport But I can not find patch 1592706. http://source

net-snmp 5,4 memory leak when sending out traps

2007-07-19 Thread 吴亚东
I use net-snmp 5.4 to send out enterprise-specific traps. The trap-sending code is like agent/mibgroup/examples/notification.c When sending trap very fast, we can see that snmpd consumes more and more memory(up to 500M). Is there any memory leak problem in net-snmp 5.4? >From http://

Re: small memory leak in snmp_api.c (WAS: Re: example app gives errors in valgrind)

2007-07-05 Thread Magnus Fromreide
is 5.3.1, and > > > > Valgrind is 3.2.3. Is this kind of behavior normal from libsnmp, or is > > > > the test program's code broken in some way? > > > > > > Would you mind building net-snmp 5.4.1.pre3 from source, compile the > > > test p

RE: Memory leak in agent code using mfd

2007-07-05 Thread Graeme Wilson
> > RS> Instead, make the release call in _mfd__post_request (in > RS> _interface.c) unconditional. > OK, I've done that and it still fixes the memory leak :) However I still have problems when inserting a new Row - see below for the Debug (error on subcontainer '

small memory leak in snmp_api.c (WAS: Re: example app gives errors in valgrind)

2007-07-05 Thread Juuso Alasuutari
normal from libsnmp, or is > > > the test program's code broken in some way? > > > > Would you mind building net-snmp 5.4.1.pre3 from source, compile the > > test program against it and re-run your test? > > Using trunk, the memory leak is due to init_snmp_enums where

Re: Memory leak in agent code using mfd

2007-07-04 Thread Robert Story
On Mon, 2 Jul 2007 17:37:27 +0100 Graeme wrote: GW> Ok, as per my previous email, I've been looking at a table which uses GW> row-creation, and this is causing a couple of problems - although this GW> could be related to my implementation because I'm a little unsure about GW> a couple of things. M

RE: Memory leak in agent code using mfd

2007-07-02 Thread Graeme Wilson
007 11:13 > To: Robert Story > Cc: [email protected] > Subject: RE: Memory leak in agent code using mfd > > > RS> Ugh. The iterator style mfd code is the least tested aspect of > > RS> this code. > > Oh well, I guess someone has to be the g

RE: Memory leak in agent code using mfd

2007-07-02 Thread Graeme Wilson
RS> I think that will work, but it may cause other side effects > RS> (especially if your table supports row creation). Give it a > RS> whirl and let me know how it goes.. Yes, I've tried this and it seems to be working much better now (no memory leak). My current table I've

Re: Memory leak in agent code using mfd

2007-06-28 Thread Robert Story
On Thu, 28 Jun 2007 16:46:09 +0100 Graeme wrote: GW> ==12187==by 0x8049EF0: _loop_get_first GW> (_data_access.c:213) GW> ==12187==by 0x804C222: __loop_get_first_wrapper GW> (_interface.c:753) Ugh. The iterator style mfd code is the least tested aspect of this code. I've just run through i

Memory leak in agent code using mfd

2007-06-28 Thread Graeme Wilson
Hi, I'm having some problems with a memory leak in my agent code - the template for which generated using the mfd config. I would appreciate any help to solve this problem since its now becoming a serious issue for me. I have run the code through valgrind and observe the following dur

Re: Memory leak in snmpTargetAddrTable

2007-06-18 Thread Magnus Fromreide
On mån, 2007-06-18 at 15:32 +0200, Makavy, Erez (Erez) wrote: > Hi, > > Is there any reason why this function does not close the associated > session? No, and thus revision 15778 corrected this. This will be available in the next net-snmp release. Thanks for the bug report. /MF

Memory leak in snmpTargetAddrTable

2007-06-18 Thread Makavy, Erez (Erez)
Hi, Is there any reason why this function does not close the associated session? <-CODE-SEGMENT- [ from snmpTargetAddrEntry.c ] void snmpTargetAddrTable_dispose(struct targetAddrTable_struct *reaped) { SNMP_FREE(reaped->name); SNMP_FREE(reaped->tAddress); SNMP_FREE(reape

Re: memory leak in function netsnmp_udp_transport() in snmpUDPDomain.c file

2007-04-25 Thread Magnus Fromreide
On ons, 2007-04-25 at 23:59 +0400, Aleksandr Lomanov wrote: > Hello, Wes! > > I found memory leak in function netsnmp_udp_transport() > in snmpUDPDomain.c file. > > Memory for variable 'addr_pair' not released, > when netsnmp_udp_transport() finishes work. Yes,

memory leak in function netsnmp_udp_transport() in snmpUDPDomain.c file

2007-04-25 Thread Aleksandr Lomanov
Hello, Wes! I found memory leak in function netsnmp_udp_transport() in snmpUDPDomain.c file. Memory for variable 'addr_pair' not released, when netsnmp_udp_transport() finishes work. Aleksandr Lomanov ICQ#:

Re: Possible snmp get memory leak?

2007-04-18 Thread Dave Shield
On 11/04/07, Kun Niu <[EMAIL PROTECTED]> wrote: > So I changed the snmpget source code so that it runs continuously for about > 100,000,000 times. > And I found that the useage of my memory grows quickly. First question - which version of the code are you using? We're continually plugging memory l

Re: Re: Possible snmp get memory leak?

2007-04-13 Thread Kun Niu
Dear Santhosh, Thank you for your kind reply. I tried your suggestion. But it's of little help.:( It should have already been freed within snmp_free_pdu. Any other suggestions? Thanks again for your reply. - Take Surveys. Ea

RE: Possible snmp get memory leak?

2007-04-12 Thread santhosh.sundarasamy
Hi, Try freeing variable binding pdu->variables using snmp_free_varbind(). Santhosh == Message: 7 Date: Thu, 12 Apr 2007 01:53:26 +0800 From: "Kun Niu" <[EMAIL PROTECTED]> Subject: Possible snmp get memory leak? To: [EMAIL PR

Possible snmp get memory leak?

2007-04-11 Thread Kun Niu
Dear coders, I'm sorry to trouble. I've successfully made my first snmp program on Win2000 platform with VS2003. It runs smoothly at the first two hours. But it suddenly dies after that. So I changed the snmpget source code so that it runs continuously for about 100,000,000 times. And I found tha

  1   2   >