Skip to content

Instantly share code, notes, and snippets.

@MasterDuke17
Created April 28, 2018 14:28
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/b484325d7bff8187b2c99d4f03e02aa5 to your computer and use it in GitHub Desktop.
Save MasterDuke17/b484325d7bff8187b2c99d4f03e02aa5 to your computer and use it in GitHub Desktop.
$ MVM_SPESH_DISABLE=1 pv6 --profile -e '(^∞).hyper.grep(*.is-prime)[500].say; say now - ENTER now'
================================================================================================
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.04.20.g.7847768.ca built on MoarVM version 2018.04.36.g.28.f.7.fe.711,
running on ubuntu (17.10.Artful.Aardvark) / linux (4.13.0.38.generic)
------------------------------------------------------------------------------------------------
==28437== Memcheck, a memory error detector
==28437== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==28437== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
==28437== Command: /home/dan/Source/perl6/install/bin/moar --execname=/home/dan/Source/perl6/install/bin/perl6-valgrind-m --libpath=/home/dan/Source/perl6/install/share/nqp/lib --libpath=/home/dan/Source/perl6/install/share/perl6/lib --libpath=/home/dan/Source/perl6/install/share/perl6/runtime /home/dan/Source/perl6/install/share/perl6/runtime/perl6.moarvm --profile -e (^∞).hyper.grep(*.is-prime)[500].say;\ say\ now\ -\ ENTER\ now
==28437==
3581
27.740481
Writing profiler output to profile-1524925635.098396.html
==28437== Thread 2:
==28437== Invalid read of size 8
==28437== at 0x502D402: MVM_hll_map (hll.c:178)
==28437== by 0x5015997: MVM_interp_run (interp.c:2759)
==28437== by 0x502B685: start_thread (threads.c:87)
==28437== by 0x5F437FB: start_thread (pthread_create.c:465)
==28437== by 0x591AB5E: clone (clone.S:95)
==28437== Address 0x11 is not stack'd, malloc'd or (recently) free'd
==28437==
==28437==
==28437== Process terminating with default action of signal 11 (SIGSEGV)
==28437== Access not within mapped region at address 0x11
==28437== at 0x502D402: MVM_hll_map (hll.c:178)
==28437== by 0x5015997: MVM_interp_run (interp.c:2759)
==28437== by 0x502B685: start_thread (threads.c:87)
==28437== by 0x5F437FB: start_thread (pthread_create.c:465)
==28437== by 0x591AB5E: clone (clone.S:95)
==28437== If you believe this happened as a result of a stack
==28437== overflow in your program's main thread (unlikely but
==28437== possible), you can try to increase the size of the
==28437== main thread stack using the --main-stacksize= flag.
==28437== The main thread stack size used in this run was 8388608.
==28437==
==28437== HEAP SUMMARY:
==28437== in use at exit: 76,403,558 bytes in 248,169 blocks
==28437== total heap usage: 3,199,466 allocs, 2,951,297 frees, 896,843,484 bytes allocated
==28437==
==28437== LEAK SUMMARY:
==28437== definitely lost: 59,472 bytes in 390 blocks
==28437== indirectly lost: 0 bytes in 0 blocks
==28437== possibly lost: 1,294,832 bytes in 4,263 blocks
==28437== still reachable: 75,049,254 bytes in 243,516 blocks
==28437== suppressed: 0 bytes in 0 blocks
==28437== Rerun with --leak-check=full to see details of leaked memory
==28437==
==28437== For counts of detected and suppressed errors, rerun with: -v
==28437== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Segmentation fault (core dumped)v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment