Skip to content

Instantly share code, notes, and snippets.

@FROGGS
Created October 13, 2013 18:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FROGGS/ce17ba8f5f06ed009c7f to your computer and use it in GitHub Desktop.
Save FROGGS/ce17ba8f5f06ed009c7f to your computer and use it in GitHub Desktop.
valgrind /home/froggs/dev/nqp/install/bin/moar --libpath=/home/froggs/dev/nqp/install/languages/nqp/lib /home/froggs/dev/nqp/install/languages/nqp/lib/nqp.moarvm --target=mbc --output=blib/Perl6/Actions.moarvm --encoding=utf8 src/Perl6/Actions.nqp
==22059== Memcheck, a memory error detector
==22059== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==22059== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==22059== Command: /home/froggs/dev/nqp/install/bin/moar --libpath=/home/froggs/dev/nqp/install/languages/nqp/lib /home/froggs/dev/nqp/install/languages/nqp/lib/nqp.moarvm --target=mbc --output=blib/Perl6/Actions.moarvm --encoding=utf8 src/Perl6/Actions.nqp
==22059==
==22059== Invalid write of size 2
==22059== at 0x4C2E8E3: memcpy@@GLIBC_2.14 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==22059== by 0x47CC30: memcpy_endian (compiler.c:185)
==22059== by 0x47CC9B: write_int32 (compiler.c:196)
==22059== by 0x4811F7: compile_frame (compiler.c:981)
==22059== by 0x481CB9: MVM_mast_compile (compiler.c:1216)
==22059== by 0x47ADFA: MVM_mast_to_file (driver.c:75)
==22059== by 0x44DF37: MVM_interp_run (interp.c:1201)
==22059== by 0x44318F: MVM_vm_run_file (moar.c:132)
==22059== by 0x40458C: main (main.c:130)
==22059== Address 0x179ad4b0 is 0 bytes after a block of size 8,192 alloc'd
==22059== at 0x4C2CF8E: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==22059== by 0x47CD86: ensure_space (compiler.c:218)
==22059== by 0x480918: compile_frame (compiler.c:872)
==22059== by 0x481CB9: MVM_mast_compile (compiler.c:1216)
==22059== by 0x47ADFA: MVM_mast_to_file (driver.c:75)
==22059== by 0x44DF37: MVM_interp_run (interp.c:1201)
==22059== by 0x44318F: MVM_vm_run_file (moar.c:132)
==22059== by 0x40458C: main (main.c:130)
==22059==
==22059== Invalid write of size 2
==22059== at 0x4C2E8E3: memcpy@@GLIBC_2.14 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==22059== by 0x47CC30: memcpy_endian (compiler.c:185)
==22059== by 0x47CC9B: write_int32 (compiler.c:196)
==22059== by 0x480FF0: compile_frame (compiler.c:968)
==22059== by 0x481CB9: MVM_mast_compile (compiler.c:1216)
==22059== by 0x47ADFA: MVM_mast_to_file (driver.c:75)
==22059== by 0x44DF37: MVM_interp_run (interp.c:1201)
==22059== by 0x44318F: MVM_vm_run_file (moar.c:132)
==22059== by 0x40458C: main (main.c:130)
==22059== Address 0x179ad4b2 is 2 bytes after a block of size 8,192 alloc'd
==22059== at 0x4C2CF8E: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==22059== by 0x47CD86: ensure_space (compiler.c:218)
==22059== by 0x480918: compile_frame (compiler.c:872)
==22059== by 0x481CB9: MVM_mast_compile (compiler.c:1216)
==22059== by 0x47ADFA: MVM_mast_to_file (driver.c:75)
==22059== by 0x44DF37: MVM_interp_run (interp.c:1201)
==22059== by 0x44318F: MVM_vm_run_file (moar.c:132)
==22059== by 0x40458C: main (main.c:130)
==22059==
==22059== Invalid write of size 2
==22059== at 0x4C2E8E3: memcpy@@GLIBC_2.14 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==22059== by 0x47CC30: memcpy_endian (compiler.c:185)
==22059== by 0x47CC9B: write_int32 (compiler.c:196)
==22059== by 0x48103B: compile_frame (compiler.c:970)
==22059== by 0x481CB9: MVM_mast_compile (compiler.c:1216)
==22059== by 0x47ADFA: MVM_mast_to_file (driver.c:75)
==22059== by 0x44DF37: MVM_interp_run (interp.c:1201)
==22059== by 0x44318F: MVM_vm_run_file (moar.c:132)
==22059== by 0x40458C: main (main.c:130)
==22059== Address 0x179ad4b6 is 6 bytes after a block of size 8,192 alloc'd
==22059== at 0x4C2CF8E: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==22059== by 0x47CD86: ensure_space (compiler.c:218)
==22059== by 0x480918: compile_frame (compiler.c:872)
==22059== by 0x481CB9: MVM_mast_compile (compiler.c:1216)
==22059== by 0x47ADFA: MVM_mast_to_file (driver.c:75)
==22059== by 0x44DF37: MVM_interp_run (interp.c:1201)
==22059== by 0x44318F: MVM_vm_run_file (moar.c:132)
==22059== by 0x40458C: main (main.c:130)
==22059==
==22059== Invalid write of size 2
==22059== at 0x4C2E8E3: memcpy@@GLIBC_2.14 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==22059== by 0x47CC30: memcpy_endian (compiler.c:185)
==22059== by 0x47CC9B: write_int32 (compiler.c:196)
==22059== by 0x481086: compile_frame (compiler.c:972)
==22059== by 0x481CB9: MVM_mast_compile (compiler.c:1216)
==22059== by 0x47ADFA: MVM_mast_to_file (driver.c:75)
==22059== by 0x44DF37: MVM_interp_run (interp.c:1201)
==22059== by 0x44318F: MVM_vm_run_file (moar.c:132)
==22059== by 0x40458C: main (main.c:130)
==22059== Address 0x179ad4ba is 10 bytes after a block of size 8,192 alloc'd
==22059== at 0x4C2CF8E: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==22059== by 0x47CD86: ensure_space (compiler.c:218)
==22059== by 0x480918: compile_frame (compiler.c:872)
==22059== by 0x481CB9: MVM_mast_compile (compiler.c:1216)
==22059== by 0x47ADFA: MVM_mast_to_file (driver.c:75)
==22059== by 0x44DF37: MVM_interp_run (interp.c:1201)
==22059== by 0x44318F: MVM_vm_run_file (moar.c:132)
==22059== by 0x40458C: main (main.c:130)
==22059==
==22059== Invalid write of size 2
==22059== at 0x4C2E8E3: memcpy@@GLIBC_2.14 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==22059== by 0x47CC30: memcpy_endian (compiler.c:185)
==22059== by 0x47CCD3: write_int16 (compiler.c:201)
==22059== by 0x4810D5: compile_frame (compiler.c:974)
==22059== by 0x481CB9: MVM_mast_compile (compiler.c:1216)
==22059== by 0x47ADFA: MVM_mast_to_file (driver.c:75)
==22059== by 0x44DF37: MVM_interp_run (interp.c:1201)
==22059== by 0x44318F: MVM_vm_run_file (moar.c:132)
==22059== by 0x40458C: main (main.c:130)
==22059== Address 0x179ad4be is 14 bytes after a block of size 8,192 alloc'd
==22059== at 0x4C2CF8E: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==22059== by 0x47CD86: ensure_space (compiler.c:218)
==22059== by 0x480918: compile_frame (compiler.c:872)
==22059== by 0x481CB9: MVM_mast_compile (compiler.c:1216)
==22059== by 0x47ADFA: MVM_mast_to_file (driver.c:75)
==22059== by 0x44DF37: MVM_interp_run (interp.c:1201)
==22059== by 0x44318F: MVM_vm_run_file (moar.c:132)
==22059== by 0x40458C: main (main.c:130)
==22059==
==22059== Invalid write of size 2
==22059== at 0x4C2E8E3: memcpy@@GLIBC_2.14 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==22059== by 0x47CC30: memcpy_endian (compiler.c:185)
==22059== by 0x47CCD3: write_int16 (compiler.c:201)
==22059== by 0x481124: compile_frame (compiler.c:976)
==22059== by 0x481CB9: MVM_mast_compile (compiler.c:1216)
==22059== by 0x47ADFA: MVM_mast_to_file (driver.c:75)
==22059== by 0x44DF37: MVM_interp_run (interp.c:1201)
==22059== by 0x44318F: MVM_vm_run_file (moar.c:132)
==22059== by 0x40458C: main (main.c:130)
==22059== Address 0x179ad4c0 is 16 bytes after a block of size 8,192 alloc'd
==22059== at 0x4C2CF8E: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==22059== by 0x47CD86: ensure_space (compiler.c:218)
==22059== by 0x480918: compile_frame (compiler.c:872)
==22059== by 0x481CB9: MVM_mast_compile (compiler.c:1216)
==22059== by 0x47ADFA: MVM_mast_to_file (driver.c:75)
==22059== by 0x44DF37: MVM_interp_run (interp.c:1201)
==22059== by 0x44318F: MVM_vm_run_file (moar.c:132)
==22059== by 0x40458C: main (main.c:130)
==22059==
==22059== Syscall param write(buf) points to uninitialised byte(s)
==22059== at 0x5649B50: __write_nocancel (syscall-template.S:81)
==22059== by 0x55D82F2: _IO_file_write@@GLIBC_2.2.5 (fileops.c:1270)
==22059== by 0x55D81D1: new_do_write (fileops.c:546)
==22059== by 0x55D8C4D: _IO_file_xsputn@@GLIBC_2.2.5 (fileops.c:1354)
==22059== by 0x55CDEC4: fwrite (iofwrite.c:43)
==22059== by 0x47AE63: MVM_mast_to_file (driver.c:75)
==22059== by 0x44DF37: MVM_interp_run (interp.c:1201)
==22059== by 0x44318F: MVM_vm_run_file (moar.c:132)
==22059== by 0x40458C: main (main.c:130)
==22059== Address 0x18b6b0b0 is 8,304 bytes inside a block of size 722,906 alloc'd
==22059== at 0x4C2CD7B: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==22059== by 0x481573: form_bytecode_output (compiler.c:1097)
==22059== by 0x481CDF: MVM_mast_compile (compiler.c:1219)
==22059== by 0x47ADFA: MVM_mast_to_file (driver.c:75)
==22059== by 0x44DF37: MVM_interp_run (interp.c:1201)
==22059== by 0x44318F: MVM_vm_run_file (moar.c:132)
==22059== by 0x40458C: main (main.c:130)
==22059==
==22059==
==22059== HEAP SUMMARY:
==22059== in use at exit: 108,878,366 bytes in 335,421 blocks
==22059== total heap usage: 10,343,650 allocs, 10,008,229 frees, 2,488,136,212 bytes allocated
==22059==
==22059== LEAK SUMMARY:
==22059== definitely lost: 16,535,259 bytes in 257,246 blocks
==22059== indirectly lost: 5,488,745 bytes in 67,247 blocks
==22059== possibly lost: 86,684,530 bytes in 8,792 blocks
==22059== still reachable: 169,832 bytes in 2,136 blocks
==22059== suppressed: 0 bytes in 0 blocks
==22059== Rerun with --leak-check=full to see details of leaked memory
==22059==
==22059== For counts of detected and suppressed errors, rerun with: -v
==22059== Use --track-origins=yes to see where uninitialised values come from
==22059== ERROR SUMMARY: 12 errors from 7 contexts (suppressed: 2 from 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment