|
From: Zand, N. <noo...@in...> - 2003-10-23 09:03:01
|
Roldan,
Thank you so much for reply.
How can I make valgrind observed the program for 10 minutes.
After starting the program it exited.=20
I got following report.
Regards,
nooshin
=3D=3D21502=3D=3D 32 bytes in 2 blocks are definitely lost in loss =
record 2 of 9
=3D=3D21502=3D=3D at 0x40029AD6: calloc (vg_replace_malloc.c:284)
=3D=3D21502=3D=3D by 0x80C1932: xcalloc (util.c:557)
=3D=3D21502=3D=3D by 0x8087161: memPoolAlloc (MemPool.c:254)
=3D=3D21502=3D=3D by 0x804B9AD: aclParseIpData (acl.c:393)
=3D=3D21502=3D=3D
=3D=3D21502=3D=3D LEAK SUMMARY:
=3D=3D21502=3D=3D definitely lost: 32 bytes in 2 blocks.
=3D=3D21502=3D=3D possibly lost: 0 bytes in 0 blocks.
=3D=3D21502=3D=3D still reachable: 22194 bytes in 879 blocks.
=3D=3D21502=3D=3D suppressed: 200 bytes in 1 blocks.
=3D=3D21502=3D=3D Reachable blocks (those to which a pointer was found) =
are not shown.
=3D=3D21502=3D=3D To see them, rerun with: --show-reachable=3Dyes
=3D=3D21502=3D=3D
--21502-- TT/TC: 0 tc sectors discarded.
--21502-- 4861 chainings, 0 unchainings.
--21502-- translate: new 6631 (97291 -> 1349146; ratio 138:10)
--21502-- discard 213 (2990 -> 38912; ratio 130:10).
--21502-- dispatch: 2300000 jumps (bb entries), of which 295339 (12%) =
were unchained.
--21502-- 48/51204 major/minor sched events. 7671 tt_fast =
misses.
--21502-- reg-alloc: 1196 t-req-spill, 250656+7082 orig+spill uis, 33030 =
total-reg-r.
--21502-- sanity: 49 cheap, 2 expensive checks.
--21502-- ccalls: 24725 C calls, 58% saves+restores avoided (84704 =
bytes)
--21502-- 33089 args, avg 0.89 setup instrs each (6758 bytes)
--21502-- 0% clear the stack (74175 bytes)
--21502-- 8589 retvals, 31% of reg-reg movs avoided (5158 =
bytes)
-----Original Message-----
From: Andr=E9s Rold=E1n [mailto:ar...@de...]=20
Sent: Wednesday, October 22, 2003 9:06 AM
To: Zand, Nooshin
Cc: val...@li...
Subject: Re: [Valgrind-users] Create SUPP
Try with:
=20
valgrind --gen-suppressions=3Dyes ./program
"Zand, Nooshin" <noo...@in...> writes:
> Hi,
>
> I would like to use valgrind to see if there is any memory leak on
> squid2.5STable4, Caching Proxy, which runs on Redhat 9.0
> It seems I need to define "SUPP" for library in use.
> I need your help to create SUPP.
> Currently squid is using following Libraries.
> Regards,
> Nooshin
>
>
> libcrypt.so.1 =3D> /lib/libcrypt.so.1 (0x4001a000)
> libpthread.so.0 =3D> /lib/tls/libpthread.so.0 (0x40047000)
> libm.so.6 =3D> /lib/tls/libm.so.6 (0x40055000)
> libresolv.so.2 =3D> /lib/libresolv.so.2 (0x40078000)
> libnsl.so.1 =3D> /lib/libnsl.so.1 (0x4008a000)
> libc.so.6 =3D> /lib/tls/libc.so.6 (0x42000000)
> /lib/ld-linux.so.2 =3D> /lib/ld-linux.so.2 (0x40000000)
>
> Version information:
> /squid/sbin/squid-real:
> libm.so.6 (GLIBC_2.0) =3D> /lib/tls/libm.so.6
> libc.so.6 (GLIBC_2.2) =3D> /lib/tls/libc.so.6
> libc.so.6 (GLIBC_2.3) =3D> /lib/tls/libc.so.6
> libc.so.6 (GLIBC_2.1) =3D> /lib/tls/libc.so.6
> libc.so.6 (GLIBC_2.0) =3D> /lib/tls/libc.so.6
> libpthread.so.0 (GLIBC_2.0) =3D> =
/lib/tls/libpthread.so.0
> libpthread.so.0 (GLIBC_2.1) =3D> =
/lib/tls/libpthread.so.0
> libpthread.so.0 (GLIBC_2.3.2) =3D>
> /lib/tls/libpthread.so.0
> /lib/libcrypt.so.1:
> libc.so.6 (GLIBC_2.1.3) =3D> /lib/tls/libc.so.6
> libc.so.6 (GLIBC_2.0) =3D> /lib/tls/libc.so.6
> /lib/tls/libpthread.so.0:
> ld-linux.so.2 (GLIBC_PRIVATE) =3D> /lib/ld-linux.so.2
> libc.so.6 (GLIBC_2.1.3) =3D> /lib/tls/libc.so.6
> libc.so.6 (GLIBC_2.3.2) =3D> /lib/tls/libc.so.6
> libc.so.6 (GLIBC_2.0) =3D> /lib/tls/libc.so.6
> libc.so.6 (GLIBC_2.2) =3D> /lib/tls/libc.so.6
> libc.so.6 (GLIBC_PRIVATE) =3D> /lib/tls/libc.so.6
> libc.so.6 (GLIBC_2.1.2) =3D> /lib/tls/libc.so.6
> /lib/tls/libm.so.6:
> libc.so.6 (GLIBC_2.1.3) =3D> /lib/tls/libc.so.6
> libc.so.6 (GLIBC_2.0) =3D> /lib/tls/libc.so.6
> /lib/libresolv.so.2:
> libc.so.6 (GLIBC_2.1.3) =3D> /lib/tls/libc.so.6
> libc.so.6 (GLIBC_2.1) =3D> /lib/tls/libc.so.6
> libc.so.6 (GLIBC_2.3) =3D> /lib/tls/libc.so.6
> libc.so.6 (GLIBC_2.2) =3D> /lib/tls/libc.so.6
> libc.so.6 (GLIBC_2.0) =3D> /lib/tls/libc.so.6
> /lib/libnsl.so.1:
> libc.so.6 (GLIBC_2.1.3) =3D> /lib/tls/libc.so.6
> libc.so.6 (GLIBC_2.2) =3D> /lib/tls/libc.so.6
> libc.so.6 (GLIBC_2.2.3) =3D> /lib/tls/libc.so.6
> libc.so.6 (GLIBC_2.0) =3D> /lib/tls/libc.so.6
> libc.so.6 (GLIBC_2.1) =3D> /lib/tls/libc.so.6
> /lib/tls/libc.so.6:
> ld-linux.so.2 (GLIBC_2.3) =3D> /lib/ld-linux.so.2
> ld-linux.so.2 (GLIBC_2.1) =3D> /lib/ld-linux.so.2
> ld-linux.so.2 (GLIBC_2.0) =3D> /lib/ld-linux.so.2
> ld-linux.so.2 (GLIBC_PRIVATE) =3D> /lib/ld-linux.so.2
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by OSDN developer relations
> Here's your chance to show off your extensive product knowledge
> We want to know what you know. Tell us and you have a chance to win =
$100
> http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
> _______________________________________________
> Valgrind-users mailing list
> Val...@li...
> https://lists.sourceforge.net/lists/listinfo/valgrind-users
--=20
Andres Roldan
Fluidsignal Group <ar...@fl...>
The Debian Project <ar...@de...>
GPG Key-ID: 0xB29396EB=09
Home Page http://people.fluidsignal.com/~aroldan
|
|
From: Tom H. <th...@cy...> - 2003-10-23 11:36:04
|
In message <37F...@fm...>
Nooshin Zand <noo...@in...> wrote:
> Thank you so much for reply.
> How can I make valgrind observed the program for 10 minutes.
> After starting the program it exited.
Like most daemons, squid will automatically fork to put itself into
the background and the original process (the one you were tracing) will
then exit.
If you give squid the -N switch then it should stay attached to the
console rather than going into the background, and valgrind will then
be able to continue tracing it.
Tom
--
Tom Hughes (th...@cy...)
Software Engineer, Cyberscience Corporation
http://www.cyberscience.com/
|