Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dogbert17/bedd7295290dd9490a521970aad85e64 to your computer and use it in GitHub Desktop.
Save dogbert17/bedd7295290dd9490a521970aad85e64 to your computer and use it in GitHub Desktop.
SEGV under perl6-valgrind-m
dogbert@dogbert-VirtualBox ~ $ time perl6-valgrind-m euler-12.pl6
================================================================================================
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 2016.05.79.g.2095.ed.6 built on MoarVM version 2016.05.17.g.6075599,
running on ubuntu (14.04.3.LTS.Trusty.Tahr) / linux (3.19.0.32.generic)
------------------------------------------------------------------------------------------------
==7688== Memcheck, a memory error detector
==7688== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==7688== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
==7688== Command: /home/dogbert/.rakudobrew/moar-nom/install/bin/moar --execname=/home/dogbert/.rakudobrew/bin/../moar-nom/install/bin/perl6-valgrind-m --libpath=/home/dogbert/.rakudobrew/moar-nom/install/share/nqp/lib --libpath=/home/dogbert/.rakudobrew/moar-nom/install/share/perl6/lib --libpath=/home/dogbert/.rakudobrew/moar-nom/install/share/perl6/runtime /home/dogbert/.rakudobrew/moar-nom/install/share/perl6/runtime/perl6.moarvm euler-12.pl6
==7688==
==7688== Invalid read of size 1
==7688== at 0x4160BFB: MVM_spesh_osr (in /home/dogbert/.rakudobrew/moar-nom/install/lib/libmoar.so)
==7688== by 0x40D215C: MVM_interp_run (in /home/dogbert/.rakudobrew/moar-nom/install/lib/libmoar.so)
==7688== by 0x419A8C5: MVM_vm_run_file (in /home/dogbert/.rakudobrew/moar-nom/install/lib/libmoar.so)
==7688== by 0x8048D78: main (in /home/dogbert/.rakudobrew/moar-nom/install/bin/moar)
==7688== Address 0xb is not stack'd, malloc'd or (recently) free'd
==7688==
==7688==
==7688== Process terminating with default action of signal 11 (SIGSEGV)
==7688== Access not within mapped region at address 0xB
==7688== at 0x4160BFB: MVM_spesh_osr (in /home/dogbert/.rakudobrew/moar-nom/install/lib/libmoar.so)
==7688== by 0x40D215C: MVM_interp_run (in /home/dogbert/.rakudobrew/moar-nom/install/lib/libmoar.so)
==7688== by 0x419A8C5: MVM_vm_run_file (in /home/dogbert/.rakudobrew/moar-nom/install/lib/libmoar.so)
==7688== by 0x8048D78: main (in /home/dogbert/.rakudobrew/moar-nom/install/bin/moar)
==7688== If you believe this happened as a result of a stack
==7688== overflow in your program's main thread (unlikely but
==7688== possible), you can try to increase the size of the
==7688== main thread stack using the --main-stacksize= flag.
==7688== The main thread stack size used in this run was 8388608.
==7688==
==7688== HEAP SUMMARY:
==7688== in use at exit: 46,426,882 bytes in 241,021 blocks
==7688== total heap usage: 165,391,410 allocs, 165,150,389 frees, 18,670,033,692 bytes allocated
==7688==
==7688== LEAK SUMMARY:
==7688== definitely lost: 5,454 bytes in 181 blocks
==7688== indirectly lost: 13,528 bytes in 668 blocks
==7688== possibly lost: 215,500 bytes in 6,737 blocks
==7688== still reachable: 46,192,400 bytes in 233,435 blocks
==7688== suppressed: 0 bytes in 0 blocks
==7688== Rerun with --leak-check=full to see details of leaked memory
==7688==
==7688== For counts of detected and suppressed errors, rerun with: -v
==7688== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Segmentation fault
real 41m25.145s
user 40m54.252s
sys 0m3.392s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment