On 04/12/2013, at 9:42 AM, srean wrote:

> ==1902== HEAP SUMMARY:
> ==1902==     in use at exit: 205,147 bytes in 3,702 blocks
> ==1902==   total heap usage: 12,066 allocs, 8,364 frees, 2,487,653 bytes 
> allocated
> ==1902==
> ==1902== LEAK SUMMARY:
> ==1902==    definitely lost: 12,360 bytes in 505 blocks
> ==1902==    indirectly lost: 62,376 bytes in 1,320 blocks
> ==1902==      possibly lost: 56,600 bytes in 1,140 blocks
> ==1902==    still reachable: 73,811 bytes in 737 blocks
> ==1902==         suppressed: 0 bytes in 0 blocks
> ==1902== Rerun with --leak-check=full to see details of leaked memory
> ==1902==
> ==1902== For counts of detected and suppressed errors, rerun with: -v
> ==1902== Use --track-origins=yes to see where uninitialised values come from
> ==1902== ERROR SUMMARY: 40 errors from 4 contexts (suppressed: 0 from 0)
> 
> Basically it's too much work. Valgrind is just plain wrong in too many
> cases.
> 
> It is indeed. One has to learn to ignore a lot of junk that it generates. But 
> if you can put up with its speed, with the right command line options its 
> quite powerful. I do not know of anything better. Its been a really long time 
> I used it, but do turn on --leak-check=full and --track-origins=yes. The 
> latter prints the snippets of code where non freed memory originated. Not all 
> of these are leaks though, it is conservative in that sense.
> 

It's no help. And worse, Ctrl-C is broken with valgrind so I cannot easily kill 
the server. When I do manage somehow to kill it OF COURSE there are leaks.

There's no way to find out exactly what those 505 leaks are.
I need to know what the type is, there's no use finding the source
of the allocation because its always malloc :)

If you go up the call chain high enough you get calls from C++ routines
with weird names that I have no idea about since they're generated
by the Felix compiler.

--
john skaller
skal...@users.sourceforge.net
http://felix-lang.org




------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to