-
-
Save zoffixznet/c9951c32dbb4dfa07cd2d32bef733f73 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zoffix@zoffix-VirtualBox:~/.rakudobrew/moar-nom$ cat perl6-valgrind-m | |
#!/bin/sh | |
/home/zoffix/.rakudobrew/moar-nom/install/bin/moar --full-cleanup --execname="$0" --libpath="/home/zoffix/.rakudobrew/moar-nom/install/share/nqp/lib" --libpath="." /home/zoffix/.rakudobrew/moar-nom/perl6.moarvm -e ' | |
say "=" x 96; | |
say "This is Rakudo Perl 6 running in valgrind, a tool for debugging and profiling programs.\nRunning a program in valgrind usually takes *a lot* more time than running it directly,\nso please be patient."; | |
say "This Rakudo version is $*PERL.compiler.version() built on MoarVM version $*VM.version(),"; | |
say "running on $*DISTRO.gist() / $*KERNEL.gist()"; | |
say "-" x 96;' | |
valgrind /home/zoffix/.rakudobrew/moar-nom/install/bin/moar --full-cleanup --execname="$0" --libpath="/home/zoffix/.rakudobrew/moar-nom/install/share/nqp/lib" --libpath="." /home/zoffix/.rakudobrew/moar-nom/perl6.moarvm "$@" | |
zoffix@zoffix-VirtualBox:~/.rakudobrew/moar-nom$ cat test.p6 | |
say "Hello, world!"; | |
zoffix@zoffix-VirtualBox:~/.rakudobrew/moar-nom$ ./perl6-valgrind-m test.p6 | |
================================================================================================ | |
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.04.118.gac.36.d.2.f built on MoarVM version 2016.04, | |
running on ubuntu (14.04.3.LTS.Trusty.Tahr) / linux (3.16.0.45.generic) | |
------------------------------------------------------------------------------------------------ | |
./perl6-valgrind-m: line 10: 20529 Segmentation fault /home/zoffix/.rakudobrew/moar-nom/install/bin/moar --full-cleanup --execname="$0" --libpath="/home/zoffix/.rakudobrew/moar-nom/install/share/nqp/lib" --libpath="." /home/zoffix/.rakudobrew/moar-nom/perl6.moarvm -e ' | |
say "=" x 96; | |
say "This is Rakudo Perl 6 running in valgrind, a tool for debugging and profiling programs.\nRunning a program in valgrind usually takes *a lot* more time than running it directly,\nso please be patient."; | |
say "This Rakudo version is $*PERL.compiler.version() built on MoarVM version $*VM.version(),"; | |
say "running on $*DISTRO.gist() / $*KERNEL.gist()"; | |
say "-" x 96;' | |
==20532== Memcheck, a memory error detector | |
==20532== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al. | |
==20532== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info | |
==20532== Command: /home/zoffix/.rakudobrew/moar-nom/install/bin/moar --full-cleanup --execname=./perl6-valgrind-m --libpath=/home/zoffix/.rakudobrew/moar-nom/install/share/nqp/lib --libpath=. /home/zoffix/.rakudobrew/moar-nom/perl6.moarvm test.p6 | |
==20532== | |
Hello, world! | |
==20532== Invalid read of size 8 | |
==20532== at 0x4FB8311: MVM_fixed_size_free (in /home/zoffix/.rakudobrew/moar-nom/install/lib/libmoar.so) | |
==20532== by 0x502D556: MVM_nfg_destroy (in /home/zoffix/.rakudobrew/moar-nom/install/lib/libmoar.so) | |
==20532== by 0x50527E3: MVM_vm_destroy_instance (in /home/zoffix/.rakudobrew/moar-nom/install/lib/libmoar.so) | |
==20532== by 0x400EAD: main (in /home/zoffix/.rakudobrew/moar-nom/install/bin/moar) | |
==20532== Address 0x6195710 is 0 bytes inside a block of size 64 free'd | |
==20532== at 0x4C2BDEC: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) | |
==20532== by 0x5052793: MVM_vm_destroy_instance (in /home/zoffix/.rakudobrew/moar-nom/install/lib/libmoar.so) | |
==20532== by 0x400EAD: main (in /home/zoffix/.rakudobrew/moar-nom/install/bin/moar) | |
==20532== | |
==20532== Invalid read of size 8 | |
==20532== at 0x4FB8330: MVM_fixed_size_free (in /home/zoffix/.rakudobrew/moar-nom/install/lib/libmoar.so) | |
==20532== by 0x502D556: MVM_nfg_destroy (in /home/zoffix/.rakudobrew/moar-nom/install/lib/libmoar.so) | |
==20532== by 0x50527E3: MVM_vm_destroy_instance (in /home/zoffix/.rakudobrew/moar-nom/install/lib/libmoar.so) | |
==20532== by 0x400EAD: main (in /home/zoffix/.rakudobrew/moar-nom/install/bin/moar) | |
==20532== Address 0x6195798 is 8 bytes inside a block of size 4,608 free'd | |
==20532== at 0x4C2BDEC: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) | |
==20532== by 0x4FB8018: MVM_fixed_size_destroy (in /home/zoffix/.rakudobrew/moar-nom/install/lib/libmoar.so) | |
==20532== by 0x5052793: MVM_vm_destroy_instance (in /home/zoffix/.rakudobrew/moar-nom/install/lib/libmoar.so) | |
==20532== by 0x400EAD: main (in /home/zoffix/.rakudobrew/moar-nom/install/bin/moar) | |
==20532== | |
==20532== Invalid write of size 8 | |
==20532== at 0x4FB8334: MVM_fixed_size_free (in /home/zoffix/.rakudobrew/moar-nom/install/lib/libmoar.so) | |
==20532== by 0x502D556: MVM_nfg_destroy (in /home/zoffix/.rakudobrew/moar-nom/install/lib/libmoar.so) | |
==20532== by 0x50527E3: MVM_vm_destroy_instance (in /home/zoffix/.rakudobrew/moar-nom/install/lib/libmoar.so) | |
==20532== by 0x400EAD: main (in /home/zoffix/.rakudobrew/moar-nom/install/bin/moar) | |
==20532== Address 0x622d590 is 0 bytes inside a block of size 1,024 free'd | |
==20532== at 0x4C2BDEC: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) | |
==20532== by 0x4FB7FE4: MVM_fixed_size_destroy (in /home/zoffix/.rakudobrew/moar-nom/install/lib/libmoar.so) | |
==20532== by 0x5052793: MVM_vm_destroy_instance (in /home/zoffix/.rakudobrew/moar-nom/install/lib/libmoar.so) | |
==20532== by 0x400EAD: main (in /home/zoffix/.rakudobrew/moar-nom/install/bin/moar) | |
==20532== | |
==20532== Invalid write of size 8 | |
==20532== at 0x4FB8337: MVM_fixed_size_free (in /home/zoffix/.rakudobrew/moar-nom/install/lib/libmoar.so) | |
==20532== by 0x502D556: MVM_nfg_destroy (in /home/zoffix/.rakudobrew/moar-nom/install/lib/libmoar.so) | |
==20532== by 0x50527E3: MVM_vm_destroy_instance (in /home/zoffix/.rakudobrew/moar-nom/install/lib/libmoar.so) | |
==20532== by 0x400EAD: main (in /home/zoffix/.rakudobrew/moar-nom/install/bin/moar) | |
==20532== Address 0x6195798 is 8 bytes inside a block of size 4,608 free'd | |
==20532== at 0x4C2BDEC: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) | |
==20532== by 0x4FB8018: MVM_fixed_size_destroy (in /home/zoffix/.rakudobrew/moar-nom/install/lib/libmoar.so) | |
==20532== by 0x5052793: MVM_vm_destroy_instance (in /home/zoffix/.rakudobrew/moar-nom/install/lib/libmoar.so) | |
==20532== by 0x400EAD: main (in /home/zoffix/.rakudobrew/moar-nom/install/bin/moar) | |
==20532== | |
==20532== | |
==20532== HEAP SUMMARY: | |
==20532== in use at exit: 346,359 bytes in 6,641 blocks | |
==20532== total heap usage: 210,844 allocs, 204,203 frees, 58,733,559 bytes allocated | |
==20532== | |
==20532== LEAK SUMMARY: | |
==20532== definitely lost: 104,565 bytes in 2,359 blocks | |
==20532== indirectly lost: 21,784 bytes in 668 blocks | |
==20532== possibly lost: 201,880 bytes in 3,605 blocks | |
==20532== still reachable: 18,130 bytes in 9 blocks | |
==20532== suppressed: 0 bytes in 0 blocks | |
==20532== Rerun with --leak-check=full to see details of leaked memory | |
==20532== | |
==20532== For counts of detected and suppressed errors, rerun with: -v | |
==20532== ERROR SUMMARY: 4 errors from 4 contexts (suppressed: 0 from 0) | |
zoffix@zoffix-VirtualBox:~/.rakudobrew/moar-nom$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment