Skip to content

Instantly share code, notes, and snippets.

@MasterDuke17
Created Feb 25, 2021
Embed
What would you like to do?
[dan@alexandria perl6]$ MVM_SPESH_BLOCKING=1 valgrind --leak-check=full --show-leak-kinds=all --show-reachable=yes ./install/bin/raku --full-cleanup -e 'my $r := "a" .. "za"; my @a = $r[^$r.elems]; say now - INIT now'
==1483334== Memcheck, a memory error detector
==1483334== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==1483334== Using Valgrind-3.16.1 and LibVEX; rerun with -h for copyright info
==1483334== Command: ./install/bin/raku --full-cleanup -e my\ $r\ :=\ "a"\ ..\ "za";\ my\ @a\ =\ $r[^$r.elems];\ say\ now\ -\ INIT\ now
==1483334==
133.70213
==1483334==
==1483334== HEAP SUMMARY:
==1483334== in use at exit: 37,301 bytes in 800 blocks
==1483334== total heap usage: 23,338,129 allocs, 23,337,329 frees, 5,550,259,621 bytes allocated
==1483334==
==1483334== 79 bytes in 1 blocks are still reachable in loss record 1 of 11
==1483334== at 0x483E77F: malloc (vg_replace_malloc.c:307)
==1483334== by 0x402014F: strdup (in /usr/lib/ld-2.33.so)
==1483334== by 0x40097B3: _dl_map_object (in /usr/lib/ld-2.33.so)
==1483334== by 0x4013F6B: dl_open_worker (in /usr/lib/ld-2.33.so)
==1483334== by 0x52FDB37: _dl_catch_exception (in /usr/lib/libc-2.33.so)
==1483334== by 0x4013ADD: _dl_open (in /usr/lib/ld-2.33.so)
==1483334== by 0x550634B: ??? (in /usr/lib/libdl-2.33.so)
==1483334== by 0x52FDB37: _dl_catch_exception (in /usr/lib/libc-2.33.so)
==1483334== by 0x52FDC02: _dl_catch_error (in /usr/lib/libc-2.33.so)
==1483334== by 0x5506B88: ??? (in /usr/lib/libdl-2.33.so)
==1483334== by 0x55063D7: dlopen (in /usr/lib/libdl-2.33.so)
==1483334== by 0x4B927B1: dlLoadLibrary (in /home/dan/Source/perl6/install/lib/libmoar.so)
==1483334==
==1483334== 79 bytes in 1 blocks are still reachable in loss record 2 of 11
==1483334== at 0x483E77F: malloc (vg_replace_malloc.c:307)
==1483334== by 0x400C518: _dl_new_object (in /usr/lib/ld-2.33.so)
==1483334== by 0x4008169: _dl_map_object_from_fd (in /usr/lib/ld-2.33.so)
==1483334== by 0x400982C: _dl_map_object (in /usr/lib/ld-2.33.so)
==1483334== by 0x4013F6B: dl_open_worker (in /usr/lib/ld-2.33.so)
==1483334== by 0x52FDB37: _dl_catch_exception (in /usr/lib/libc-2.33.so)
==1483334== by 0x4013ADD: _dl_open (in /usr/lib/ld-2.33.so)
==1483334== by 0x550634B: ??? (in /usr/lib/libdl-2.33.so)
==1483334== by 0x52FDB37: _dl_catch_exception (in /usr/lib/libc-2.33.so)
==1483334== by 0x52FDC02: _dl_catch_error (in /usr/lib/libc-2.33.so)
==1483334== by 0x5506B88: ??? (in /usr/lib/libdl-2.33.so)
==1483334== by 0x55063D7: dlopen (in /usr/lib/libdl-2.33.so)
==1483334==
==1483334== 96 bytes in 1 blocks are still reachable in loss record 3 of 11
==1483334== at 0x4840B65: calloc (vg_replace_malloc.c:760)
==1483334== by 0x40117D5: _dl_check_map_versions (in /usr/lib/ld-2.33.so)
==1483334== by 0x401401D: dl_open_worker (in /usr/lib/ld-2.33.so)
==1483334== by 0x52FDB37: _dl_catch_exception (in /usr/lib/libc-2.33.so)
==1483334== by 0x4013ADD: _dl_open (in /usr/lib/ld-2.33.so)
==1483334== by 0x550634B: ??? (in /usr/lib/libdl-2.33.so)
==1483334== by 0x52FDB37: _dl_catch_exception (in /usr/lib/libc-2.33.so)
==1483334== by 0x52FDC02: _dl_catch_error (in /usr/lib/libc-2.33.so)
==1483334== by 0x5506B88: ??? (in /usr/lib/libdl-2.33.so)
==1483334== by 0x55063D7: dlopen (in /usr/lib/libdl-2.33.so)
==1483334== by 0x4B927B1: dlLoadLibrary (in /home/dan/Source/perl6/install/lib/libmoar.so)
==1483334== by 0x4A7F730: MVM_dll_load (dll.c:26)
==1483334==
==1483334== 160 bytes in 1 blocks are still reachable in loss record 4 of 11
==1483334== at 0x483E77F: malloc (vg_replace_malloc.c:307)
==1483334== by 0x40138DE: add_to_global_resize (in /usr/lib/ld-2.33.so)
==1483334== by 0x4014607: dl_open_worker (in /usr/lib/ld-2.33.so)
==1483334== by 0x52FDB37: _dl_catch_exception (in /usr/lib/libc-2.33.so)
==1483334== by 0x4013ADD: _dl_open (in /usr/lib/ld-2.33.so)
==1483334== by 0x550634B: ??? (in /usr/lib/libdl-2.33.so)
==1483334== by 0x52FDB37: _dl_catch_exception (in /usr/lib/libc-2.33.so)
==1483334== by 0x52FDC02: _dl_catch_error (in /usr/lib/libc-2.33.so)
==1483334== by 0x5506B88: ??? (in /usr/lib/libdl-2.33.so)
==1483334== by 0x55063D7: dlopen (in /usr/lib/libdl-2.33.so)
==1483334== by 0x4B927B1: dlLoadLibrary (in /home/dan/Source/perl6/install/lib/libmoar.so)
==1483334== by 0x4A7F730: MVM_dll_load (dll.c:26)
==1483334==
==1483334== 1,271 bytes in 1 blocks are still reachable in loss record 5 of 11
==1483334== at 0x4840B65: calloc (vg_replace_malloc.c:760)
==1483334== by 0x400C234: _dl_new_object (in /usr/lib/ld-2.33.so)
==1483334== by 0x4008169: _dl_map_object_from_fd (in /usr/lib/ld-2.33.so)
==1483334== by 0x400982C: _dl_map_object (in /usr/lib/ld-2.33.so)
==1483334== by 0x4013F6B: dl_open_worker (in /usr/lib/ld-2.33.so)
==1483334== by 0x52FDB37: _dl_catch_exception (in /usr/lib/libc-2.33.so)
==1483334== by 0x4013ADD: _dl_open (in /usr/lib/ld-2.33.so)
==1483334== by 0x550634B: ??? (in /usr/lib/libdl-2.33.so)
==1483334== by 0x52FDB37: _dl_catch_exception (in /usr/lib/libc-2.33.so)
==1483334== by 0x52FDC02: _dl_catch_error (in /usr/lib/libc-2.33.so)
==1483334== by 0x5506B88: ??? (in /usr/lib/libdl-2.33.so)
==1483334== by 0x55063D7: dlopen (in /usr/lib/libdl-2.33.so)
==1483334==
==1483334== 2,752 bytes in 159 blocks are indirectly lost in loss record 6 of 11
==1483334== at 0x483E77F: malloc (vg_replace_malloc.c:307)
==1483334== by 0x4A86979: MVM_malloc (alloc.h:2)
==1483334== by 0x4A86979: MVM_fixed_size_alloc (fixedsizealloc.c:187)
==1483334== by 0x4B1648C: MVM_spesh_candidate_add (MVMSpeshCandidate.c:350)
==1483334== by 0x4B0B459: worker (worker.c:24)
==1483334== by 0x4A798A0: thread_initial_invoke (threads.c:58)
==1483334== by 0x4A4E335: MVM_interp_run (interp.c:159)
==1483334== by 0x4A79938: start_thread (threads.c:91)
==1483334== by 0x54DF298: start_thread (in /usr/lib/libpthread-2.33.so)
==1483334== by 0x52C3052: clone (in /usr/lib/libc-2.33.so)
==1483334==
==1483334== 3,792 bytes in 158 blocks are indirectly lost in loss record 7 of 11
==1483334== at 0x483E77F: malloc (vg_replace_malloc.c:307)
==1483334== by 0x4A86979: MVM_malloc (alloc.h:2)
==1483334== by 0x4A86979: MVM_fixed_size_alloc (fixedsizealloc.c:187)
==1483334== by 0x4A86CCC: add_to_overflows_safepoint_free_list (fixedsizealloc.c:325)
==1483334== by 0x4A86CCC: MVM_fixed_size_free_at_safepoint (fixedsizealloc.c:355)
==1483334== by 0x4A9CE00: MVM_gc_collect_free_gen2_unmarked (collect.c:765)
==1483334== by 0x4A989F7: MVM_gc_global_destruction (orchestrate.c:789)
==1483334== by 0x4B66A57: MVM_vm_destroy_instance (moar.c:651)
==1483334== by 0x10983F: main (main.c:506)
==1483334==
==1483334== 3,816 bytes in 159 blocks are indirectly lost in loss record 8 of 11
==1483334== at 0x483E77F: malloc (vg_replace_malloc.c:307)
==1483334== by 0x4A86979: MVM_malloc (alloc.h:2)
==1483334== by 0x4A86979: MVM_fixed_size_alloc (fixedsizealloc.c:187)
==1483334== by 0x4A869B9: MVM_fixed_size_alloc_zeroed (fixedsizealloc.c:210)
==1483334== by 0x4B1646C: MVM_spesh_candidate_add (MVMSpeshCandidate.c:348)
==1483334== by 0x4B0B459: worker (worker.c:24)
==1483334== by 0x4A798A0: thread_initial_invoke (threads.c:58)
==1483334== by 0x4A4E335: MVM_interp_run (interp.c:159)
==1483334== by 0x4A79938: start_thread (threads.c:91)
==1483334== by 0x54DF298: start_thread (in /usr/lib/libpthread-2.33.so)
==1483334== by 0x52C3052: clone (in /usr/lib/libc-2.33.so)
==1483334==
==1483334== 3,816 bytes in 159 blocks are indirectly lost in loss record 9 of 11
==1483334== at 0x483E77F: malloc (vg_replace_malloc.c:307)
==1483334== by 0x4A86979: MVM_malloc (alloc.h:2)
==1483334== by 0x4A86979: MVM_fixed_size_alloc (fixedsizealloc.c:187)
==1483334== by 0x4A86CCC: add_to_overflows_safepoint_free_list (fixedsizealloc.c:325)
==1483334== by 0x4A86CCC: MVM_fixed_size_free_at_safepoint (fixedsizealloc.c:355)
==1483334== by 0x4AE0CCA: gc_free (MVMStaticFrameSpesh.c:49)
==1483334== by 0x4A9CE00: MVM_gc_collect_free_gen2_unmarked (collect.c:765)
==1483334== by 0x4A989F7: MVM_gc_global_destruction (orchestrate.c:789)
==1483334== by 0x4B66A57: MVM_vm_destroy_instance (moar.c:651)
==1483334== by 0x10983F: main (main.c:506)
==1483334==
==1483334== 21,416 bytes in 159 blocks are indirectly lost in loss record 10 of 11
==1483334== at 0x483E77F: malloc (vg_replace_malloc.c:307)
==1483334== by 0x4A86979: MVM_malloc (alloc.h:2)
==1483334== by 0x4A86979: MVM_fixed_size_alloc (fixedsizealloc.c:187)
==1483334== by 0x4B107A4: allocate_tree (arg_guard.c:53)
==1483334== by 0x4B107A4: MVM_spesh_arg_guard_regenerate (arg_guard.c:374)
==1483334== by 0x4B164C6: MVM_spesh_candidate_add (MVMSpeshCandidate.c:374)
==1483334== by 0x4B0B459: worker (worker.c:24)
==1483334== by 0x4A798A0: thread_initial_invoke (threads.c:58)
==1483334== by 0x4A4E335: MVM_interp_run (interp.c:159)
==1483334== by 0x4A79938: start_thread (threads.c:91)
==1483334== by 0x54DF298: start_thread (in /usr/lib/libpthread-2.33.so)
==1483334== by 0x52C3052: clone (in /usr/lib/libc-2.33.so)
==1483334==
==1483334== 35,616 (24 direct, 35,592 indirect) bytes in 1 blocks are definitely lost in loss record 11 of 11
==1483334== at 0x483E77F: malloc (vg_replace_malloc.c:307)
==1483334== by 0x4A86979: MVM_malloc (alloc.h:2)
==1483334== by 0x4A86979: MVM_fixed_size_alloc (fixedsizealloc.c:187)
==1483334== by 0x4A86CCC: add_to_overflows_safepoint_free_list (fixedsizealloc.c:325)
==1483334== by 0x4A86CCC: MVM_fixed_size_free_at_safepoint (fixedsizealloc.c:355)
==1483334== by 0x4A9CE00: MVM_gc_collect_free_gen2_unmarked (collect.c:765)
==1483334== by 0x4A989F7: MVM_gc_global_destruction (orchestrate.c:789)
==1483334== by 0x4B66A57: MVM_vm_destroy_instance (moar.c:651)
==1483334== by 0x10983F: main (main.c:506)
==1483334==
==1483334== LEAK SUMMARY:
==1483334== definitely lost: 24 bytes in 1 blocks
==1483334== indirectly lost: 35,592 bytes in 794 blocks
==1483334== possibly lost: 0 bytes in 0 blocks
==1483334== still reachable: 1,685 bytes in 5 blocks
==1483334== suppressed: 0 bytes in 0 blocks
==1483334==
==1483334== For lists of detected and suppressed errors, rerun with: -s
==1483334== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment