Skip to content

Instantly share code, notes, and snippets.

@denysvitali
Created January 10, 2018 15:09
Show Gist options
  • Save denysvitali/d2500ed13b4f6958526aca290a3579a3 to your computer and use it in GitHub Desktop.
Save denysvitali/d2500ed13b4f6958526aca290a3579a3 to your computer and use it in GitHub Desktop.
==18535==
==18535== HEAP SUMMARY:
==18535== in use at exit: 28,996 bytes in 546 blocks
==18535== total heap usage: 227,016 allocs, 226,470 frees, 55,966,346 bytes allocated
==18535==
==18535== Searching for pointers to 546 not-freed blocks
==18535== Checked 100,104 bytes
==18535==
==18535== LEAK SUMMARY:
==18535== definitely lost: 0 bytes in 0 blocks
==18535== indirectly lost: 0 bytes in 0 blocks
==18535== possibly lost: 0 bytes in 0 blocks
==18535== still reachable: 28,996 bytes in 546 blocks
==18535== suppressed: 0 bytes in 0 blocks
==18535== Reachable blocks (those to which a pointer was found) are not shown.
==18535== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==18535==
==18535== ERROR SUMMARY: 223 errors from 6 contexts (suppressed: 0 from 0)
==18535==
==18535== 4 errors in context 1 of 6:
==18535== Invalid write of size 8
==18535== at 0x10C7B2: swap_nodes (huffmantree.c:833)
==18535== by 0x10A896: node_positioner (huffmantree.c:67)
==18535== by 0x10B7D7: add_new_element (huffmantree.c:437)
==18535== by 0x109B17: main (main.c:1142)
==18535== Address 0x553cc80 is 16 bytes before a block of size 4,160 alloc'd
==18535== at 0x4C2CEDF: malloc (vg_replace_malloc.c:299)
==18535== by 0x10C1B3: createHuffmanTree (huffmantree.c:635)
==18535== by 0x109A38: main (main.c:1121)
==18535==
==18535==
==18535== 4 errors in context 2 of 6:
==18535== Invalid write of size 8
==18535== at 0x10B6FF: add_new_element (huffmantree.c:421)
==18535== by 0x109B17: main (main.c:1142)
==18535== Address 0x553cc80 is 16 bytes before a block of size 4,160 alloc'd
==18535== at 0x4C2CEDF: malloc (vg_replace_malloc.c:299)
==18535== by 0x10C1B3: createHuffmanTree (huffmantree.c:635)
==18535== by 0x109A38: main (main.c:1121)
==18535==
==18535==
==18535== 5 errors in context 3 of 6:
==18535== Invalid write of size 8
==18535== at 0x10B71E: add_new_element (huffmantree.c:422)
==18535== by 0x109B17: main (main.c:1142)
==18535== Address 0x553cc88 is 8 bytes before a block of size 4,160 alloc'd
==18535== at 0x4C2CEDF: malloc (vg_replace_malloc.c:299)
==18535== by 0x10C1B3: createHuffmanTree (huffmantree.c:635)
==18535== by 0x109A38: main (main.c:1121)
==18535==
==18535==
==18535== 70 errors in context 4 of 6:
==18535== Invalid read of size 8
==18535== at 0x10A6DD: highest_numbered_node (huffmantree.c:24)
==18535== by 0x10A753: node_positioner (huffmantree.c:41)
==18535== by 0x10B7D7: add_new_element (huffmantree.c:437)
==18535== by 0x109B17: main (main.c:1142)
==18535== Address 0x553cc88 is 8 bytes before a block of size 4,160 alloc'd
==18535== at 0x4C2CEDF: malloc (vg_replace_malloc.c:299)
==18535== by 0x10C1B3: createHuffmanTree (huffmantree.c:635)
==18535== by 0x109A38: main (main.c:1121)
==18535==
==18535==
==18535== 70 errors in context 5 of 6:
==18535== Invalid read of size 8
==18535== at 0x10A6C0: highest_numbered_node (huffmantree.c:23)
==18535== by 0x10A753: node_positioner (huffmantree.c:41)
==18535== by 0x10B7D7: add_new_element (huffmantree.c:437)
==18535== by 0x109B17: main (main.c:1142)
==18535== Address 0x553cc88 is 8 bytes before a block of size 4,160 alloc'd
==18535== at 0x4C2CEDF: malloc (vg_replace_malloc.c:299)
==18535== by 0x10C1B3: createHuffmanTree (huffmantree.c:635)
==18535== by 0x109A38: main (main.c:1121)
==18535==
==18535==
==18535== 70 errors in context 6 of 6:
==18535== Invalid read of size 8
==18535== at 0x10A6AC: highest_numbered_node (huffmantree.c:22)
==18535== by 0x10A753: node_positioner (huffmantree.c:41)
==18535== by 0x10B7D7: add_new_element (huffmantree.c:437)
==18535== by 0x109B17: main (main.c:1142)
==18535== Address 0x553cc88 is 8 bytes before a block of size 4,160 alloc'd
==18535== at 0x4C2CEDF: malloc (vg_replace_malloc.c:299)
==18535== by 0x10C1B3: createHuffmanTree (huffmantree.c:635)
==18535== by 0x109A38: main (main.c:1121)
==18535==
==18535== ERROR SUMMARY: 223 errors from 6 contexts (suppressed: 0 from 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment