English 中文(简体)
了解瓦伦产出[复制]
原标题:Understanding the Valgrind output [duplicate]

我早就派出了一个员额,要求检查记忆泄漏等。 我确实说,我不熟悉Lino的终端,但有人向我说,Valgrind很容易。

我已设法这样做,等等,但我不相信产出意味着什么。 轮功,对我来说都是好事,但是,如果可能的话,我要说,你过去曾经历过民间认可。 产出如下:

^C==2420==
==2420== HEAP SUMMARY:
==2420==     in use at exit: 2,240 bytes in 81 blocks
==2420==   total heap usage: 82 allocs, 1 frees, 2,592 bytes allocated
==2420==
==2420== LEAK SUMMARY:
==2420==    definitely lost: 0 bytes in 0 blocks
==2420==    indirectly lost: 0 bytes in 0 blocks
==2420==      possibly lost: 0 bytes in 0 blocks
==2420==    still reachable: 2,240 bytes in 81 blocks
==2420==         suppressed: 0 bytes in 0 blocks
==2420== Reachable blocks (those to which a pointer was found) are not shown.
==2420== To see them, rerun with: --leak-check=full --show-reachable=yes
==2420==
==2420== For counts of detected and suppressed errors, rerun with: -v
==2420== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 13 from 8)

这里是否一切好? 我的唯一事情是仍然可以接触到的。 是否是这样?

问题回答

我建议你停止并读到Valgrind ,Quickstart,特别注意第4节,“-start.html#quick-start.interpret” rel=“nofollow noretinger”>;Interpreting Memcheck s输出,”和查询


之后,我认为你可以阅读 (aka Smart Questions) to better You problem Settlementlls, and better request for assistance in community sites such as Stack Overflow, where better questions are Awarded with better response.

这不是侮辱或人身攻击,而是建议你如何更好地提出问题,以便你得到更好的答案。 你们还将学会如何回答你自己提出的基本问题,更经常地处理,加快你的总体努力。 Good luck.

您的产物显示:

==2420=总肥皂使用量:82英亩,1台自由,2 592英特分配

......

==2420=仍可达:81个区块中的2 240英特

82项拨款和仅有一项免费拨款,因此最终仍有81个区块可以到达。 Valgrind FAQ指出,这可能表明该守则使用一些记忆库分配器,因此一旦未使用,不会免费记忆,而是将其保存到以后使用,或者实际上可能是一种记忆泄露(同样,尽管如此)。 跟踪链接中的步骤,以检查这是否是由于STLs使用记忆仪。





相关问题
Fastest method for running a binary search on a file in C?

For example, let s say I want to find a particular word or number in a file. The contents are in sorted order (obviously). Since I want to run a binary search on the file, it seems like a real waste ...

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

Tips for debugging a made-for-linux application on windows?

I m trying to find the source of a bug I have found in an open-source application. I have managed to get a build up and running on my Windows machine, but I m having trouble finding the spot in the ...

Trying to split by two delimiters and it doesn t work - C

I wrote below code to readin line by line from stdin ex. city=Boston;city=New York;city=Chicago and then split each line by ; delimiter and print each record. Then in yet another loop I try to ...

Good, free, easy-to-use C graphics libraries? [closed]

I was wondering if there were any good free graphics libraries for C that are easy to use? It s for plotting 2d and 3d graphs and then saving to a file. It s on a Linux system and there s no gnuplot ...

Encoding, decoding an integer to a char array

Please note that this is not homework and i did search before starting this new thread. I got Store an int in a char array? I was looking for an answer but didn t get any satisfactory answer in the ...

热门标签