Skip to content

Instantly share code, notes, and snippets.

@MasterDuke17
Created February 24, 2017 15:23
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 MasterDuke17/42a433803fd1c160116aef4e236d23d4 to your computer and use it in GitHub Desktop.
Save MasterDuke17/42a433803fd1c160116aef4e236d23d4 to your computer and use it in GitHub Desktop.
./perl6-valgrind-m -e 'use nqp; nqp::p6recont_ro(Scalar)'
================================================================================================
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.
This Rakudo version is 2017.02.54.g.9.e.8.ecb.7.ba built on MoarVM version 2017.02.11.gb.0.dc.2.bf.6,
running on arch (4.9.3.1.arch) / linux (4.9.11.1.ARCH)
------------------------------------------------------------------------------------------------
==10801== Memcheck, a memory error detector
==10801== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==10801== Using Valgrind-3.12.0 and LibVEX; rerun with -h for copyright info
==10801== Command: /home/dan/Source/perl6/install/bin/moar --full-cleanup --execname=./perl6-valgrind-m --libpath=/home/dan/Source/perl6/install/share/nqp/lib --libpath=/home/dan/Source/perl6/install/share/nqp/lib --libpath=. /home/dan/Source/perl6/rakudo/perl6.moarvm --nqp-lib=blib -e use\ nqp;\ nqp::p6recont_ro(Scalar)
==10801==
==10801== Invalid read of size 1
==10801== at 0x77A9631: p6recont_ro (perl6_ops.c:268)
==10801== by 0x4FB0934: MVM_interp_run (interp.c:5633)
==10801== by 0x5072AC8: MVM_vm_run_file (moar.c:310)
==10801== by 0x400EA3: main (main.c:201)
==10801== Address 0x1800110000000d is not stack'd, malloc'd or (recently) free'd
==10801==
==10801==
==10801== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==10801== General Protection Fault
==10801== at 0x77A9631: p6recont_ro (perl6_ops.c:268)
==10801== by 0x4FB0934: MVM_interp_run (interp.c:5633)
==10801== by 0x5072AC8: MVM_vm_run_file (moar.c:310)
==10801== by 0x400EA3: main (main.c:201)
==10801==
==10801== HEAP SUMMARY:
==10801== in use at exit: 45,170,246 bytes in 189,070 blocks
==10801== total heap usage: 202,445 allocs, 13,375 frees, 53,460,199 bytes allocated
==10801==
==10801== LEAK SUMMARY:
==10801== definitely lost: 0 bytes in 0 blocks
==10801== indirectly lost: 0 bytes in 0 blocks
==10801== possibly lost: 192,024 bytes in 3,432 blocks
==10801== still reachable: 44,978,222 bytes in 185,638 blocks
==10801== suppressed: 0 bytes in 0 blocks
==10801== Rerun with --leak-check=full to see details of leaked memory
==10801==
==10801== For counts of detected and suppressed errors, rerun with: -v
==10801== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
./perl6-valgrind-m: line 11: 10801 Segmentation fault (core dumped) valgrind /home/dan/Source/perl6/install/bin/moar --full-cleanup --execname="$0" --libpath="/home/dan/Source/perl6/install/share/nqp/lib" --libpath="/home/dan/Source/perl6/install/share/nqp/lib" --libpath="." /home/dan/Source/perl6/rakudo/perl6.moarvm --nqp-lib=blib "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment