Skip to content

Instantly share code, notes, and snippets.

@dogbert17
Created November 5, 2018 17:41
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 dogbert17/a5a294ab895ab55b3adfff60b17ae10e to your computer and use it in GitHub Desktop.
Save dogbert17/a5a294ab895ab55b3adfff60b17ae10e to your computer and use it in GitHub Desktop.
valgrind on a rampage
dogbert@dogbert-VirtualBox ~/repos/rakudo $ MVM_SPESH_DISABLE=1 ./perl6-valgrind-m -e ''
================================================================================================
This is Rakudo Perl 6 running in valgrind, a tool for debugging and profiling programs.
Running a program in valgrind usually takes *a lot* more time than running it directly,
so please be patient.
Valgrind options can be added with MVM_VALGRIND_OPTS environment variable.
This Rakudo version is 2018.10.77.g.7.a.85985 built on MoarVM version 2018.10.74.g.2.fdde.4.a,
running on linuxmint (18.3.Sylvia) / linux (4.10.0.38.generic)
------------------------------------------------------------------------------------------------
==21033== Memcheck, a memory error detector
==21033== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==21033== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==21033== Command: /home/dogbert/repos/rakudo/nqp/MoarVM/../../install/bin/moar --execname=./perl6-valgrind-m --libpath=. --libpath=blib --libpath=/home/dogbert/repos/rakudo/install/share/nqp/lib --libpath=/home/dogbert/repos/rakudo/install/share/nqp/lib /home/dogbert/repos/rakudo/perl6.moarvm --nqp-lib=blib -e
==21033==
==21033== Conditional jump or move depends on uninitialised value(s)
==21033== at 0x501767E: MVM_interp_run (interp.c:232)
==21033== by 0x51236E3: MVM_vm_run_file (moar.c:440)
==21033== by 0x40120E: main (main.c:301)
==21033==
==21033== Conditional jump or move depends on uninitialised value(s)
==21033== at 0x50342D8: validate_literal_operand (validation.c:260)
==21033== by 0x5034507: validate_operand (validation.c:359)
==21033== by 0x5034507: validate_operands (validation.c:442)
==21033== by 0x5034C1F: MVM_validate_static_frame (validation.c:702)
==21033== by 0x502E503: prepare_and_verify_static_frame (frame.c:55)
==21033== by 0x502E503: instrumentation_level_barrier (frame.c:97)
==21033== by 0x502F389: MVM_frame_invoke (frame.c:392)
==21033== by 0x507C8F2: invoke_handler (MVMCode.c:10)
==21033== by 0x5014286: MVM_interp_run (interp.c:1014)
==21033== by 0x51236E3: MVM_vm_run_file (moar.c:440)
==21033== by 0x40120E: main (main.c:301)
==21033==
==21033== Use of uninitialised value of size 8
==21033== at 0x50342DE: validate_literal_operand (validation.c:263)
==21033== by 0x5034507: validate_operand (validation.c:359)
==21033== by 0x5034507: validate_operands (validation.c:442)
==21033== by 0x5034C1F: MVM_validate_static_frame (validation.c:702)
==21033== by 0x502E503: prepare_and_verify_static_frame (frame.c:55)
==21033== by 0x502E503: instrumentation_level_barrier (frame.c:97)
==21033== by 0x502F389: MVM_frame_invoke (frame.c:392)
==21033== by 0x507C8F2: invoke_handler (MVMCode.c:10)
==21033== by 0x5014286: MVM_interp_run (interp.c:1014)
==21033== by 0x51236E3: MVM_vm_run_file (moar.c:440)
==21033== by 0x40120E: main (main.c:301)
==21033==
==21033== Use of uninitialised value of size 8
==21033== at 0x501764A: MVM_interp_run (interp.c:230)
==21033== by 0x51236E3: MVM_vm_run_file (moar.c:440)
==21033== by 0x40120E: main (main.c:301)
==21033==
==21033==
==21033== HEAP SUMMARY:
==21033== in use at exit: 47,137,733 bytes in 181,741 blocks
==21033== total heap usage: 190,604 allocs, 8,863 frees, 54,286,702 bytes allocated
==21033==
==21033== LEAK SUMMARY:
==21033== definitely lost: 32 bytes in 1 blocks
==21033== indirectly lost: 0 bytes in 0 blocks
==21033== possibly lost: 236,816 bytes in 4,232 blocks
==21033== still reachable: 46,900,885 bytes in 177,508 blocks
==21033== suppressed: 0 bytes in 0 blocks
==21033== Rerun with --leak-check=full to see details of leaked memory
==21033==
==21033== For counts of detected and suppressed errors, rerun with: -v
==21033== Use --track-origins=yes to see where uninitialised values come from
==21033== ERROR SUMMARY: 12 errors from 4 contexts (suppressed: 0 from 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment