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

2007-07-05 Thread Magnus Fromreide
On tor, 2007-07-05 at 15:28 +0300, Juuso Alasuutari wrote: > On Sunday 24 June 2007 23:21:46 Magnus Fromreide wrote: > > On sön, 2007-06-24 at 14:14 +0200, Thomas Anders wrote: > > > Juuso Alasuutari wrote: > > > > The distribution is Debian unstable, libsnmp version is 5.3.1, and > > > > Valgrind

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

2007-07-05 Thread Juuso Alasuutari
On Sunday 24 June 2007 23:21:46 Magnus Fromreide wrote: > On sön, 2007-06-24 at 14:14 +0200, Thomas Anders wrote: > > Juuso Alasuutari wrote: > > > The distribution is Debian unstable, libsnmp version is 5.3.1, and > > > Valgrind is 3.2.3. Is this kind of behavior normal from libsnmp, or is > > > t

Re: example app gives errors in valgrind

2007-07-05 Thread Juuso Alasuutari
On Sunday 24 June 2007 23:21:46 Magnus Fromreide wrote: > On sön, 2007-06-24 at 14:14 +0200, Thomas Anders wrote: > > Juuso Alasuutari wrote: > > > The distribution is Debian unstable, libsnmp version is 5.3.1, and > > > Valgrind is 3.2.3. Is this kind of behavior normal from libsnmp, or is > > > t

Re: example app gives errors in valgrind

2007-06-25 Thread Juuso Alasuutari
On Monday 25 June 2007 16:30:28 Dave Shield wrote: > OK - can you please try the following: > >a) Replace the directive "exec truth /bin/true" > with "sh truth /tmp/true" > >b) Create a shell script /tmp/true > containing > > #!/bin/sh >

Re: example app gives errors in valgrind

2007-06-25 Thread Dave Shield
On 25/06/07, Juuso Alasuutari <[EMAIL PROTECTED]> wrote: > I did as you suggested and left only the 'rocommunity public' line in > snmpd.conf, but I still get the freeze. Hmmm... OK - can you please try the following: a) Replace the directive "exec truth /bin/true" with "sh

Re: example app gives errors in valgrind

2007-06-25 Thread Juuso Alasuutari
On Monday 25 June 2007 14:23:08 Dave Shield wrote: > On 25/06/07, Juuso Alasuutari <[EMAIL PROTECTED]> wrote: > > Here's my snmpd.conf: > > rocommunity public > > com2sec paranoid default public > > com2sec readonly default public > > Well, the first thing that springs out is that

Re: example app gives errors in valgrind

2007-06-25 Thread Dave Shield
On 25/06/07, Juuso Alasuutari <[EMAIL PROTECTED]> wrote: > Here's my snmpd.conf: > rocommunity public > com2sec paranoid default public > com2sec readonly default public Well, the first thing that springs out is that you've got three inconsistent settings here. Either the com

Re: example app gives errors in valgrind

2007-06-25 Thread Juuso Alasuutari
On Sunday 24 June 2007 22:04:16 Juuso Alasuutari wrote: > On Sunday 24 June 2007 15:14:01 Thomas Anders wrote: > > Would you mind building net-snmp 5.4.1.pre3 from source, compile the > > test program against it and re-run your test? > > Not at all. I built and installed the prerelease with > `./co

Re: example app gives errors in valgrind

2007-06-24 Thread Magnus Fromreide
On sön, 2007-06-24 at 14:14 +0200, Thomas Anders wrote: > Juuso Alasuutari wrote: > > The distribution is Debian unstable, libsnmp version 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

Re: example app gives errors in valgrind

2007-06-24 Thread Juuso Alasuutari
On Sunday 24 June 2007 15:14:01 Thomas Anders wrote: > Juuso Alasuutari wrote: > > The distribution is Debian unstable, libsnmp version 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 buildin

Re: example app gives errors in valgrind

2007-06-24 Thread Thomas Anders
Juuso Alasuutari wrote: > The distribution is Debian unstable, libsnmp version 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 program

example app gives errors in valgrind

2007-06-24 Thread Juuso Alasuutari
Hi. I'm learning how to write a monitoring client using libsnmp. I copied from the example application in the wiki (http://www.net-snmp.org/wiki/index.php/TUT:Simple_Application) and wrote a small test program which performs an SNMPv1 query. I ran it with valgrind and got 23 errors from 18 con