Skip to content

Instantly share code, notes, and snippets.

@dogbert17
Last active July 31, 2021 15:21
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 dogbert17/2b4f98f60ca0e77be64a4aeb0266522d to your computer and use it in GitHub Desktop.
Save dogbert17/2b4f98f60ca0e77be64a4aeb0266522d to your computer and use it in GitHub Desktop.
Valgrind
dogbert@dogbert-VirtualBox:~/repos/rakudo$ MVM_SPESH_NODELAY=1 MVM_SPESH_BLOCKING=1 ./rakudo-valgrind-m -Ilib t/02-rakudo/07-implementation-detail-6.e.t
================================================================================================
This is Rakudo 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 2021.06.108.g.123046.c.75 built on MoarVM version 2021.06.384.g.40.f.08.dcf.0,
running on linuxmint (20.Ulyana) / linux
------------------------------------------------------------------------------------------------
==1679510== Memcheck, a memory error detector
==1679510== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==1679510== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
==1679510== Command: /home/dogbert/repos/rakudo/nqp/MoarVM/../../install/bin/moar --execname=/home/dogbert/repos/rakudo/rakudo-valgrind-m --libpath=/home/dogbert/repos/rakudo --libpath=/home/dogbert/repos/rakudo/blib --libpath=/home/dogbert/repos/rakudo/install/share/nqp/lib /home/dogbert/repos/rakudo/perl6.moarvm -Ilib t/02-rakudo/07-implementation-detail-6.e.t
==1679510==
==1679510== Invalid read of size 8
==1679510== at 0xE06E36F: ???
==1679510== by 0x4C17003: MVM_jit_code_enter (interface.c:24)
==1679510== by 0x4A83B84: MVM_interp_run (interp.c:6242)
==1679510== by 0x4BF488B: MVM_vm_run_file (moar.c:506)
==1679510== by 0x109C86: main (main.c:305)
==1679510== Address 0xd647d48 is 88 bytes inside an unallocated block of size 400 in arena "client"
==1679510==
==1679510== Invalid read of size 8
==1679510== at 0xE094773: ???
==1679510== by 0x4C17003: MVM_jit_code_enter (interface.c:24)
==1679510== by 0x4A83B84: MVM_interp_run (interp.c:6242)
==1679510== by 0x4BF488B: MVM_vm_run_file (moar.c:506)
==1679510== by 0x109C86: main (main.c:305)
==1679510== Address 0x7e3b0b8 is 4 bytes after a block of size 4 alloc'd
==1679510== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==1679510== by 0x4BBF98B: MVM_malloc (alloc.h:2)
==1679510== by 0x4BC0170: MVM_string_latin1_decode (latin1.c:15)
==1679510== by 0x4A8F5AE: MVM_cu_obtain_string (compunit.c:238)
==1679510== by 0x4A8F8F8: MVM_cu_string (compunit.h:10)
==1679510== by 0x4A8FDF8: get_heap_string (bytecode.c:134)
==1679510== by 0x4A91724: MVM_bytecode_finish_frame (bytecode.c:678)
==1679510== by 0x4A93964: prepare_and_verify_static_frame (frame.c:30)
==1679510== by 0x4A93BA6: instrumentation_level_barrier (frame.c:89)
==1679510== by 0x4A950C9: MVM_frame_dispatch (frame.c:569)
==1679510== by 0x4B5C827: MVM_disp_program_record_end (program.c:2498)
==1679510== by 0x4A9A49C: handle_end_of_dispatch_record (callstack.c:340)
==1679510==
==1679510== Invalid read of size 8
==1679510== at 0xE0E8E9B: ???
==1679510== by 0x4C17003: MVM_jit_code_enter (interface.c:24)
==1679510== by 0x4A83B84: MVM_interp_run (interp.c:6242)
==1679510== by 0x4BF488B: MVM_vm_run_file (moar.c:506)
==1679510== by 0x109C86: main (main.c:305)
==1679510== Address 0x6f23db8 is 8 bytes after a block of size 32 alloc'd
==1679510== at 0x483DD99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==1679510== by 0x4A45070: MVM_calloc (alloc.h:11)
==1679510== by 0x4A45FC1: MVM_callsite_drop_positional (callsite.c:355)
==1679510== by 0x4B38BE1: MVM_capture_drop_arg (MVMCapture.c:318)
==1679510== by 0x4B55AEF: MVM_disp_program_record_capture_drop_arg (program.c:1010)
==1679510== by 0x4B607CB: dispatcher_drop_arg_impl (syscall.c:90)
==1679510== by 0x4A85992: MVM_interp_run (interp.c:6543)
==1679510== by 0x4BF488B: MVM_vm_run_file (moar.c:506)
==1679510== by 0x109C86: main (main.c:305)
==1679510==
==1679510== Invalid read of size 8
==1679510== at 0xE0E93CF: ???
==1679510== by 0x4C17003: MVM_jit_code_enter (interface.c:24)
==1679510== by 0x4A83B84: MVM_interp_run (interp.c:6242)
==1679510== by 0x4BF488B: MVM_vm_run_file (moar.c:506)
==1679510== by 0x109C86: main (main.c:305)
==1679510== Address 0x6f23e00 is 16 bytes after an unallocated block of size 0 in arena "client"
==1679510==
==1679510== Invalid read of size 8
==1679510== at 0xE0E9C42: ???
==1679510== by 0x4C17003: MVM_jit_code_enter (interface.c:24)
==1679510== by 0x4A83B84: MVM_interp_run (interp.c:6242)
==1679510== by 0x4BF488B: MVM_vm_run_file (moar.c:506)
==1679510== by 0x109C86: main (main.c:305)
==1679510== Address 0x6f23e28 is 8 bytes before a block of size 32 alloc'd
==1679510== at 0x483DD99: calloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==1679510== by 0x4A45070: MVM_calloc (alloc.h:11)
==1679510== by 0x4A45FC1: MVM_callsite_drop_positional (callsite.c:355)
==1679510== by 0x4B38BE1: MVM_capture_drop_arg (MVMCapture.c:318)
==1679510== by 0x4B55AEF: MVM_disp_program_record_capture_drop_arg (program.c:1010)
==1679510== by 0x4B607CB: dispatcher_drop_arg_impl (syscall.c:90)
==1679510== by 0x4B5DC2D: MVM_disp_program_run (program.c:2829)
==1679510== by 0x4B5151C: dispatch_monomorphic (inline_cache.c:107)
==1679510== by 0x4A7E80A: MVM_interp_run (interp.c:5501)
==1679510== by 0x4BF47BD: run_deserialization_frame (moar.c:485)
==1679510== by 0x4BF486B: MVM_vm_run_file (moar.c:503)
==1679510== by 0x109C86: main (main.c:305)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment