1 2All heap blocks were freed -- no leaks are possible 3 4expecting no leaks 5LEAK SUMMARY: 6 definitely lost: 0 bytes in 0 blocks 7 indirectly lost: 0 bytes in 0 blocks 8 possibly lost: 0 bytes in 0 blocks 9 still reachable: 41,000 bytes in 2 blocks 10 suppressed: 0 bytes in 0 blocks 11Reachable blocks (those to which a pointer was found) are not shown. 12To see them, rerun with: --leak-check=full --show-leak-kinds=all 13 14expecting a leak 151,000 bytes in 1 blocks are definitely lost in loss record ... of ... 16 at 0x........: malloc (vg_replace_malloc.c:...) 17 by 0x........: f (leak-segv-jmp.c:295) 18 by 0x........: main (leak-segv-jmp.c:370) 19 20LEAK SUMMARY: 21 definitely lost: 1,000 bytes in 1 blocks 22 indirectly lost: 0 bytes in 0 blocks 23 possibly lost: 0 bytes in 0 blocks 24 still reachable: 40,000 bytes in 1 blocks 25 suppressed: 0 bytes in 0 blocks 26Reachable blocks (those to which a pointer was found) are not shown. 27To see them, rerun with: --leak-check=full --show-leak-kinds=all 28 29mprotect result 0 30expecting a leak again 311,000 bytes in 1 blocks are definitely lost in loss record ... of ... 32 at 0x........: malloc (vg_replace_malloc.c:...) 33 by 0x........: f (leak-segv-jmp.c:295) 34 by 0x........: main (leak-segv-jmp.c:370) 35 36LEAK SUMMARY: 37 definitely lost: 1,000 bytes in 1 blocks 38 indirectly lost: 0 bytes in 0 blocks 39 possibly lost: 0 bytes in 0 blocks 40 still reachable: 40,000 bytes in 1 blocks 41 suppressed: 0 bytes in 0 blocks 42Reachable blocks (those to which a pointer was found) are not shown. 43To see them, rerun with: --leak-check=full --show-leak-kinds=all 44 45full mprotect result 0 46expecting a leak again after full mprotect 471,000 bytes in 1 blocks are definitely lost in loss record ... of ... 48 at 0x........: malloc (vg_replace_malloc.c:...) 49 by 0x........: f (leak-segv-jmp.c:295) 50 by 0x........: main (leak-segv-jmp.c:370) 51 52LEAK SUMMARY: 53 definitely lost: 1,000 bytes in 1 blocks 54 indirectly lost: 0 bytes in 0 blocks 55 possibly lost: 0 bytes in 0 blocks 56 still reachable: 40,000 bytes in 1 blocks 57 suppressed: 0 bytes in 0 blocks 58Reachable blocks (those to which a pointer was found) are not shown. 59To see them, rerun with: --leak-check=full --show-leak-kinds=all 60 61mprotect result 0 62expecting heuristic not to crash after full mprotect 631,000 bytes in 1 blocks are definitely lost in loss record ... of ... 64 at 0x........: malloc (vg_replace_malloc.c:...) 65 by 0x........: f (leak-segv-jmp.c:295) 66 by 0x........: main (leak-segv-jmp.c:370) 67 6840,000 bytes in 1 blocks are possibly lost in loss record ... of ... 69 at 0x........: calloc (vg_replace_malloc.c:...) 70 by 0x........: f (leak-segv-jmp.c:342) 71 by 0x........: main (leak-segv-jmp.c:370) 72 73LEAK SUMMARY: 74 definitely lost: 1,000 bytes in 1 blocks 75 indirectly lost: 0 bytes in 0 blocks 76 possibly lost: 40,000 bytes in 1 blocks 77 still reachable: 40,000 bytes in 1 blocks 78 suppressed: 0 bytes in 0 blocks 79Reachable blocks (those to which a pointer was found) are not shown. 80To see them, rerun with: --leak-check=full --show-leak-kinds=all 81 82finished 83LEAK SUMMARY: 84 definitely lost: 1,000 bytes in 1 blocks 85 indirectly lost: 0 bytes in 0 blocks 86 possibly lost: 40,000 bytes in 1 blocks 87 still reachable: 40,000 bytes in 1 blocks 88 suppressed: 0 bytes in 0 blocks 89Rerun with --leak-check=full to see details of leaked memory 90 91leaked: 1000 bytes in 1 blocks 92dubious: 40000 bytes in 1 blocks 93reachable: 40000 bytes in 1 blocks 94suppressed: 0 bytes in 0 blocks 95 96HEAP SUMMARY: 97 in use at exit: 81,000 bytes in 3 blocks 98 total heap usage: 3 allocs, 0 frees, 81,000 bytes allocated 99 100For a detailed leak analysis, rerun with: --leak-check=full 101 102For counts of detected and suppressed errors, rerun with: -v 103ERROR SUMMARY: 5 errors from 5 contexts (suppressed: 0 from 0) 104