Skip to content

Instantly share code, notes, and snippets.

@bbjubjub2494
Last active March 20, 2017 21:41
Show Gist options
  • Save bbjubjub2494/e628f844c24ea5cec5851570186ebd53 to your computer and use it in GitHub Desktop.
Save bbjubjub2494/e628f844c24ea5cec5851570186ebd53 to your computer and use it in GitHub Desktop.
issue21
#!/bin/sed -f
/Parent PID/d
s/^==[0-9]*== //
Memcheck, a memory error detector
Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
Using Valgrind-3.12.0 and LibVEX; rerun with -h for copyright info
Command: lua5.1 leak_test.lua
HEAP SUMMARY:
in use at exit: 859,925 bytes in 10,690 blocks
total heap usage: 33,240 allocs, 22,550 frees, 4,217,602 bytes allocated
LEAK SUMMARY:
definitely lost: 0 bytes in 0 blocks
indirectly lost: 0 bytes in 0 blocks
possibly lost: 0 bytes in 0 blocks
still reachable: 859,925 bytes in 10,690 blocks
suppressed: 0 bytes in 0 blocks
Reachable blocks (those to which a pointer was found) are not shown.
To see them, rerun with: --leak-check=full --show-leak-kinds=all
For counts of detected and suppressed errors, rerun with: -v
ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Memcheck, a memory error detector
Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
Using Valgrind-3.12.0 and LibVEX; rerun with -h for copyright info
Command: lua5.2 leak_test.lua
HEAP SUMMARY:
in use at exit: 854,138 bytes in 10,554 blocks
total heap usage: 33,081 allocs, 22,527 frees, 3,940,204 bytes allocated
LEAK SUMMARY:
definitely lost: 0 bytes in 0 blocks
indirectly lost: 0 bytes in 0 blocks
possibly lost: 0 bytes in 0 blocks
still reachable: 854,138 bytes in 10,554 blocks
suppressed: 0 bytes in 0 blocks
Reachable blocks (those to which a pointer was found) are not shown.
To see them, rerun with: --leak-check=full --show-leak-kinds=all
For counts of detected and suppressed errors, rerun with: -v
ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Memcheck, a memory error detector
Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
Using Valgrind-3.12.0 and LibVEX; rerun with -h for copyright info
Command: lua5.3 leak_test.lua
HEAP SUMMARY:
in use at exit: 855,093 bytes in 10,579 blocks
total heap usage: 33,035 allocs, 22,456 frees, 3,957,499 bytes allocated
30 bytes in 1 blocks are possibly lost in loss record 20 of 189
at 0x4C2AACE: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
by 0x4C2CC81: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
by 0x40C1F0: ??? (in /usr/bin/lua)
by 0x40BD3D: ??? (in /usr/bin/lua)
by 0x410F69: ??? (in /usr/bin/lua)
by 0x40CB6B: ??? (in /usr/bin/lua)
by 0x413F20: ??? (in /usr/bin/lua)
by 0x414B54: ??? (in /usr/bin/lua)
by 0x40922E: ??? (in /usr/bin/lua)
by 0x409280: ??? (in /usr/bin/lua)
by 0x408671: ??? (in /usr/bin/lua)
by 0x40959C: ??? (in /usr/bin/lua)
55 bytes in 1 blocks are possibly lost in loss record 66 of 189
at 0x4C2AACE: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
by 0x4C2CC81: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
by 0x40C1F0: ??? (in /usr/bin/lua)
by 0x40BD3D: ??? (in /usr/bin/lua)
by 0x410F69: ??? (in /usr/bin/lua)
by 0x413F84: ??? (in /usr/bin/lua)
by 0x414B54: ??? (in /usr/bin/lua)
by 0x40922E: ??? (in /usr/bin/lua)
by 0x409280: ??? (in /usr/bin/lua)
by 0x408671: ??? (in /usr/bin/lua)
by 0x40959C: ??? (in /usr/bin/lua)
by 0x4068E0: lua_pcallk (in /usr/bin/lua)
118 bytes in 4 blocks are possibly lost in loss record 123 of 189
at 0x4C2AACE: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
by 0x4C2CC81: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
by 0x40C1F0: ??? (in /usr/bin/lua)
by 0x40BD3D: ??? (in /usr/bin/lua)
by 0x410F69: ??? (in /usr/bin/lua)
by 0x41120B: ??? (in /usr/bin/lua)
by 0x41A980: ??? (in /usr/bin/lua)
by 0x41066E: ??? (in /usr/bin/lua)
by 0x408671: ??? (in /usr/bin/lua)
by 0x410A88: lua_newstate (in /usr/bin/lua)
by 0x418A6E: luaL_newstate (in /usr/bin/lua)
by 0x4040BD: main (in /usr/bin/lua)
848 bytes in 1 blocks are possibly lost in loss record 175 of 189
at 0x4C2CC37: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
by 0x40C1F0: ??? (in /usr/bin/lua)
by 0x4086FF: ??? (in /usr/bin/lua)
by 0x40B0B3: ??? (in /usr/bin/lua)
by 0x40B88F: ??? (in /usr/bin/lua)
by 0x40C11F: ??? (in /usr/bin/lua)
by 0x406B36: lua_gc (in /usr/bin/lua)
by 0x41C915: ??? (in /usr/bin/lua)
by 0x408F4F: ??? (in /usr/bin/lua)
by 0x414694: ??? (in /usr/bin/lua)
by 0x40922E: ??? (in /usr/bin/lua)
by 0x409280: ??? (in /usr/bin/lua)
1,552 bytes in 1 blocks are possibly lost in loss record 179 of 189
at 0x4C2AACE: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
by 0x4C2CC81: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
by 0x410831: lua_newstate (in /usr/bin/lua)
by 0x418A6E: luaL_newstate (in /usr/bin/lua)
by 0x4040BD: main (in /usr/bin/lua)
131,072 bytes in 1 blocks are possibly lost in loss record 187 of 189
at 0x4C2CC37: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
by 0x40C1F0: ??? (in /usr/bin/lua)
by 0x410E4A: ??? (in /usr/bin/lua)
by 0x410FBF: ??? (in /usr/bin/lua)
by 0x405C54: lua_pushlstring (in /usr/bin/lua)
by 0x41791B: luaL_pushresult (in /usr/bin/lua)
by 0x4222D7: ??? (in /usr/bin/lua)
by 0x408F4F: ??? (in /usr/bin/lua)
by 0x414694: ??? (in /usr/bin/lua)
by 0x40922E: ??? (in /usr/bin/lua)
by 0x409280: ??? (in /usr/bin/lua)
by 0x408671: ??? (in /usr/bin/lua)
LEAK SUMMARY:
definitely lost: 0 bytes in 0 blocks
indirectly lost: 0 bytes in 0 blocks
possibly lost: 133,675 bytes in 9 blocks
still reachable: 721,418 bytes in 10,570 blocks
suppressed: 0 bytes in 0 blocks
Reachable blocks (those to which a pointer was found) are not shown.
To see them, rerun with: --leak-check=full --show-leak-kinds=all
For counts of detected and suppressed errors, rerun with: -v
ERROR SUMMARY: 6 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