Note that there are some explanatory texts on larger screens.

plurals
  1. POError summary in Valgrind output?
    primarykey
    data
    text
    <p>I have seen some of the post regarding valgrind but not single post helped me in understanding interpretation of valgrind output. I ran two programs with valgrind (Both having memory leaks)</p> <p>Sample Output for Test 1</p> <pre><code>==20422== LEAK SUMMARY: ==20422== definitely lost: 448 bytes in 3 blocks ==20422== indirectly lost: 786,460 bytes in 1 blocks ==20422== possibly lost: 1,576,052 bytes in 46 blocks ==20422== still reachable: 1,077,107 bytes in 2,333 blocks ==20422== suppressed: 0 bytes in 0 blocks ==20422== Rerun with --leak-check=full to see details of leaked memory ==20422== ==20422== For counts of detected and suppressed errors, rerun with: -v ==20422== ERROR SUMMARY: 98307 errors from 5 contexts (suppressed: 2 from 2) Killed </code></pre> <p>Output for Test 2</p> <pre><code>==20875== HEAP SUMMARY: ==20875== in use at exit: 1,059,198 bytes in 2,047 blocks ==20875== total heap usage: 3,019 allocs, 972 frees, 4,496,090 bytes allocated ==20875== ==20875== LEAK SUMMARY: ==20875== definitely lost: 328 bytes in 2 blocks ==20875== indirectly lost: 0 bytes in 0 blocks ==20875== possibly lost: 1,600 bytes in 5 blocks ==20875== still reachable: 1,057,270 bytes in 2,040 blocks ==20875== suppressed: 0 bytes in 0 blocks ==20875== Rerun with --leak-check=full to see details of leaked memory ==20875== ==20875== For counts of detected and suppressed errors, rerun with: -v ==20875== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 2 from 2) </code></pre> <p>If you look at the error summary, One output says there are errors and other says there are no errors (eventually both have leaks)</p> <p>My question is - - what is counted as error in valgrind? (valgrind manual didn't helped me)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload