|
From: kusanapudi r. k. <k_...@ho...> - 2006-01-23 04:34:47
|
Dear sir,
i am new to this tool, how to apply this tool to check the memory
leakages for perl scripts, i try to run this tool on perl scripts but it is
showing leakage for simple scripts invlved only print statements
i have given a perl script containing following few print stmts and
print("krk");
print("abc search");
exit;
when i run on command line valgrind perl krk.pl
the out put generated by valgrind is
==4730== Memcheck, a memory error detector.
==4730== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
==4730== Using LibVEX rev 1471, a library for dynamic binary translation.
==4730== Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks LLP.
==4730== Using valgrind-3.1.0, a dynamic binary instrumentation framework.
==4730== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al.
==4730== For more details, rerun with: -v
==4730==
krkabc search==4730==
==4730== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 25 from 1)
==4730== malloc/free: in use at exit: 213,845 bytes in 528 blocks.
==4730== malloc/free: 667 allocs, 139 frees, 232,686 bytes allocated.
==4730== For counts of detected errors, rerun with: -v
==4730== searching for pointers to 528 not-freed blocks.
==4730== checked 575,216 bytes.
==4730==
==4730== LEAK SUMMARY:
==4730== definitely lost: 213,669 bytes in 524 blocks.
==4730== possibly lost: 0 bytes in 0 blocks.
==4730== still reachable: 176 bytes in 4 blocks.
==4730== suppressed: 0 bytes in 0 blocks.
==4730== Use --leak-check=full to see details of leaked memory.
but it is saying definitely lost: 213,669 bytes in 524 blocks , i dont
understand it is saying you lost memory, but i run for simple programme it
is showing memory lost or i mean wrong any other way to know the memory
loss
or how to use this valgrind tool for perl modules and what is exact meaning
the tool is saying
about the perl module i run ...
if you dont mind also suggest me the tools which also avialable freely
and useful to do in perl programmmes in the aspect of
Performance and Load testing
Memory leakages
thanks in advance
rama krishna
_________________________________________________________________
How good are you in a Formula One car? Play now
http://server1.msn.co.in/sp05/tataracing/onlinegame.asp
|
|
From: Igmar P. <mai...@jd...> - 2006-01-24 07:59:47
|
> i am new to this tool, how to apply this tool to check the memory
> leakages for perl scripts, i try to run this tool on perl scripts but it is
> showing leakage for simple scripts invlved only print statements
Not in a usefull way. Perl is an interpreted language, so you're
basiscally debugging the interpreter, which in most cases isn't usefull.
Valgrind operates on a machine level, which means it has no knowledge of
what it actually executes.
>
> i have given a perl script containing following few print stmts and
>
> print("krk");
> print("abc search");
> exit;
>
> but it is saying definitely lost: 213,669 bytes in 524 blocks , i dont
> understand it is saying you lost memory, but i run for simple programme it
> is showing memory lost or i mean wrong any other way to know the memory
> loss
> or how to use this valgrind tool for perl modules and what is exact meaning
> the tool is saying
> about the perl module i run ...
It is saying the perl interpreter (which you are running) is leaking
memory.
> if you dont mind also suggest me the tools which also avialable freely
> and useful to do in perl programmmes in the aspect of
>
> Performance and Load testing
> Memory leakages
I have no idea :)
Igmar
|