Skip to content

Instantly share code, notes, and snippets.

@dogbert17
Created April 12, 2020 16:22
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/3ed5d8daef11c3443de8562724d1b674 to your computer and use it in GitHub Desktop.
Save dogbert17/3ed5d8daef11c3443de8562724d1b674 to your computer and use it in GitHub Desktop.
dogbert@dogbert-VirtualBox ~ $ perl6-valgrind-m --profile mduke.pl6
================================================================================================
This is Rakudo 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 2020.02.1.308.g.1.a.10.b.63 built on MoarVM version 2020.02.1.71.g.1.bd.5.f.19,
running on linuxmint (18.3.Sylvia) / linux
------------------------------------------------------------------------------------------------
==31704== Memcheck, a memory error detector
==31704== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==31704== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==31704== Command: /home/dogbert/.rakudobrew/versions/moar-master/install/bin/rakudo-m --profile mduke.pl6
==31704==
--31704-- WARNING: unhandled amd64-linux syscall: 332
--31704-- You may be able to write your own handler.
--31704-- Read the file README_MISSING_SYSCALL_OR_IOCTL.
--31704-- Nevertheless we consider this a bug. Please report
--31704-- it at http://valgrind.org/support/bug_reports.html.
{:data("253.916 kB"), :dirty("0 kB"), :lib("0 kB"), :resident("245.060 kB"), :share("32.700 kB"), :size("312.392 kB"), :text("2.172 kB")}
{:data("254.764 kB"), :dirty("0 kB"), :lib("0 kB"), :resident("247.700 kB"), :share("32.700 kB"), :size("313.240 kB"), :text("2.172 kB")}
{:data("436.592 kB"), :dirty("0 kB"), :lib("0 kB"), :resident("397.608 kB"), :share("33.300 kB"), :size("496.232 kB"), :text("2.172 kB")}
{:data("489.488 kB"), :dirty("0 kB"), :lib("0 kB"), :resident("428.108 kB"), :share("33.300 kB"), :size("549.544 kB"), :text("2.172 kB")}
{:data("523.000 kB"), :dirty("0 kB"), :lib("0 kB"), :resident("465.488 kB"), :share("33.300 kB"), :size("583.264 kB"), :text("2.172 kB")}
{:data("542.480 kB"), :dirty("0 kB"), :lib("0 kB"), :resident("485.512 kB"), :share("33.300 kB"), :size("603.400 kB"), :text("2.172 kB")}
{:data("570.400 kB"), :dirty("0 kB"), :lib("0 kB"), :resident("513.756 kB"), :share("33.300 kB"), :size("631.356 kB"), :text("2.172 kB")}
Writing profiler output to profile-1586702806.3802607.html
==31704== Invalid read of size 8
==31704== at 0x5089378: at_pos (VMArray.c:161)
==31704== by 0x509B087: shift (MVMIter.c:57)
==31704== by 0x5032B71: MVM_interp_run (interp.c:2391)
==31704== by 0x5145DDF: MVM_vm_run_file (moar.c:463)
==31704== by 0x4011A5: main (main.c:392)
==31704== Address 0x17b25410 is 0 bytes inside an unallocated block of size 2,064 in arena "client"
==31704==
==31704== Invalid read of size 8
==31704== at 0x5089378: at_pos (VMArray.c:161)
==31704== by 0x503D09C: MVM_interp_run (interp.c:2248)
==31704== by 0x5145DDF: MVM_vm_run_file (moar.c:463)
==31704== by 0x4011A5: main (main.c:392)
==31704== Address 0xd2b3be0 is 0 bytes inside an unallocated block of size 64 in arena "client"
==31704==
==31704==
==31704== HEAP SUMMARY:
==31704== in use at exit: 214,767,887 bytes in 344,215 blocks
==31704== total heap usage: 2,663,609 allocs, 2,319,394 frees, 1,575,299,795 bytes allocated
==31704==
==31704== LEAK SUMMARY:
==31704== definitely lost: 178,584 bytes in 1,159 blocks
==31704== indirectly lost: 22,704 bytes in 86 blocks
==31704== possibly lost: 448,272 bytes in 7,985 blocks
==31704== still reachable: 214,118,327 bytes in 334,985 blocks
==31704== suppressed: 0 bytes in 0 blocks
==31704== Rerun with --leak-check=full to see details of leaked memory
==31704==
==31704== For counts of detected and suppressed errors, rerun with: -v
==31704== ERROR SUMMARY: 336 errors from 2 contexts (suppressed: 0 from 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment