Allocator
October 19th, 2009 by ddn223Expect hour: 13
Actual hour: 15
Expect hour: 13
Actual hour: 15
==21314== Memcheck, a memory error detector.
==21314== Copyright (C) 2002-2008, and GNU GPL’d, by Julian Seward et al.
==21314== Using LibVEX rev 1878, a library for dynamic binary translation.
==21314== Copyright (C) 2004-2008, and GNU GPL’d, by OpenWorks LLP.
==21314== Using valgrind-3.4.0, a dynamic binary instrumentation framework.
==21314== Copyright (C) 2000-2008, and GNU GPL’d, by Julian Seward et al.
==21314== For more details, rerun with: -v
==21314==
2 2 7 13
2 2 13 19
2 2 19 23
2 2 983 1013
2 2 1453 1543
2 2 4993 5003
2 2 249989 250007
2 3 621419 621701
2 2 261713 261739
2 2 6163 6197
2 3 129901 129967
2 3 261593 261637
2 2 75619 75641
2 3 613 617
2 3 617269 617293
2 3 172297 172297
2 2 2 2
Impossible.
2 3 2 2
2 2 3 3
==21314==
==21314== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 17 from 1)
==21314== malloc/free: in use at exit: 122,880 bytes in 6 blocks.
==21314== malloc/free: 7 allocs, 1 frees, 122,882 bytes allocated.
==21314== For counts of detected errors, rerun with: -v
==21314== searching for pointers to 6 not-freed blocks.
==21314== checked 104,096 bytes.
==21314==
==21314== LEAK SUMMARY:
==21314== definitely lost: 0 bytes in 0 blocks.
==21314== possibly lost: 0 bytes in 0 blocks.
==21314== still reachable: 122,880 bytes in 6 blocks.
==21314== suppressed: 0 bytes in 0 blocks.
==21314== Rerun with –leak-check=full to see details of leaked memory.
==21327== Memcheck, a memory error detector.
==21327== Copyright (C) 2002-2008, and GNU GPL’d, by Julian Seward et al.
==21327== Using LibVEX rev 1878, a library for dynamic binary translation.
==21327== Copyright (C) 2004-2008, and GNU GPL’d, by OpenWorks LLP.
==21327== Using valgrind-3.4.0, a dynamic binary instrumentation framework.
==21327== Copyright (C) 2000-2008, and GNU GPL’d, by Julian Seward et al.
==21327== For more details, rerun with: -v
==21327==
…..
OK (5 tests)
==21327==
==21327== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 21 from 1)
==21327== malloc/free: in use at exit: 122,880 bytes in 6 blocks.
==21327== malloc/free: 4,413 allocs, 4,407 frees, 619,087 bytes allocated.
==21327== For counts of detected errors, rerun with: -v
==21327== searching for pointers to 6 not-freed blocks.
==21327== checked 124,476 bytes.
==21327==
==21327== LEAK SUMMARY:
==21327== definitely lost: 0 bytes in 0 blocks.
==21327== possibly lost: 0 bytes in 0 blocks.
==21327== still reachable: 122,880 bytes in 6 blocks.
==21327== suppressed: 0 bytes in 0 blocks.
==21327== Rerun with –leak-check=full to see details of leaked memory.
The first project:
OK (21 tests)
==26513==
==26513== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 21 from 1)
==26513== malloc/free: in use at exit: 122,880 bytes in 6 blocks.
==26513== malloc/free: 585 allocs, 579 frees, 189,914 bytes allocated.
==26513== For counts of detected errors, rerun with: -v
==26513== searching for pointers to 6 not-freed blocks.
==26513== checked 129,024 bytes.
==26513==
==26513== LEAK SUMMARY:
==26513== definitely lost: 0 bytes in 0 blocks.
==26513== possibly lost: 0 bytes in 0 blocks.
==26513== still reachable: 122,880 bytes in 6 blocks.
==26513== suppressed: 0 bytes in 0 blocks.
==26513== Rerun with –leak-check=full to see details of leaked memory.
This is my first blog; it’ll be short and plain.
BUT the next one shall be more glorious.