Skip to content

Instantly share code, notes, and snippets.

@samcv

samcv/valgrind Secret

Created July 16, 2018 13:54
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 samcv/242c143b914e8fec9fbd0f75411c900d to your computer and use it in GitHub Desktop.
Save samcv/242c143b914e8fec9fbd0f75411c900d to your computer and use it in GitHub Desktop.
ok 81 - Priming :(X::AdHoc $, X::AdHoc $b) with \(X::AdHoc.new(payload => "foo")) gave :(X::AdHoc $b)
==13025== Invalid read of size 8
==13025== at 0x501AD05: deserialize_sc_deps (bytecode.c:286)
==13025== by 0x501A644: MVM_bytecode_unpack (bytecode.c:873)
==13025== by 0x5019486: MVM_cu_from_bytes (compunit.c:21)
==13025== by 0x507BB00: MVM_mast_to_cu (driver.c:37)
==13025== by 0x500FA3C: MVM_interp_run (interp.c:3193)
==13025== by 0x50BE53B: MVM_vm_run_file (moar.c:412)
==13025== by 0x400FD1: main (main.c:299)
==13025== Address 0xf04e6e8 is 136 bytes inside a block of size 168 free'd
==13025== at 0x4C2F2FA: free (vg_replace_malloc.c:530)
==13025== by 0x505C748: MVM_free (alloc.h:40)
==13025== by 0x505C266: gc_free (SCRef.c:137)
==13025== by 0x503D2A8: MVM_gc_collect_free_gen2_unmarked (collect.c:733)
==13025== by 0x5039DDF: finish_gc (orchestrate.c:230)
==13025== by 0x50398E1: run_gc (orchestrate.c:412)
==13025== by 0x5039552: MVM_gc_enter_from_allocator (orchestrate.c:525)
==13025== by 0x5039FF7: MVM_gc_allocate_nursery (allocation.c:32)
==13025== by 0x503A059: MVM_gc_allocate (allocation.h:18)
==13025== by 0x503A038: MVM_gc_allocate_zeroed (allocation.c:49)
==13025== by 0x503A218: MVM_gc_allocate_object (allocation.c:86)
==13025== by 0x504A983: MVM_repr_alloc_init (reprconv.c:17)
==13025== Block was alloc'd at
==13025== at 0x4C30234: calloc (vg_replace_malloc.c:711)
==13025== by 0x5070D12: MVM_calloc (alloc.h:11)
==13025== by 0x5070AB5: MVM_sc_create (sc.c:11)
==13025== by 0x500F2A7: MVM_interp_run (interp.c:2988)
==13025== by 0x50BE53B: MVM_vm_run_file (moar.c:412)
==13025== by 0x400FD1: main (main.c:299)
==13025==
==13025== Invalid read of size 8
==13025== at 0x501AD26: deserialize_sc_deps (bytecode.c:286)
==13025== by 0x501A644: MVM_bytecode_unpack (bytecode.c:873)
==13025== by 0x5019486: MVM_cu_from_bytes (compunit.c:21)
==13025== by 0x507BB00: MVM_mast_to_cu (driver.c:37)
==13025== by 0x500FA3C: MVM_interp_run (interp.c:3193)
==13025== by 0x50BE53B: MVM_vm_run_file (moar.c:412)
==13025== by 0x400FD1: main (main.c:299)
==13025== Address 0xf04e6d0 is 112 bytes inside a block of size 168 free'd
==13025== at 0x4C2F2FA: free (vg_replace_malloc.c:530)
==13025== by 0x505C748: MVM_free (alloc.h:40)
==13025== by 0x505C266: gc_free (SCRef.c:137)
==13025== by 0x503D2A8: MVM_gc_collect_free_gen2_unmarked (collect.c:733)
==13025== by 0x5039DDF: finish_gc (orchestrate.c:230)
==13025== by 0x50398E1: run_gc (orchestrate.c:412)
==13025== by 0x5039552: MVM_gc_enter_from_allocator (orchestrate.c:525)
==13025== by 0x5039FF7: MVM_gc_allocate_nursery (allocation.c:32)
==13025== by 0x503A059: MVM_gc_allocate (allocation.h:18)
==13025== by 0x503A038: MVM_gc_allocate_zeroed (allocation.c:49)
==13025== by 0x503A218: MVM_gc_allocate_object (allocation.c:86)
==13025== by 0x504A983: MVM_repr_alloc_init (reprconv.c:17)
==13025== Block was alloc'd at
==13025== at 0x4C30234: calloc (vg_replace_malloc.c:711)
==13025== by 0x5070D12: MVM_calloc (alloc.h:11)
==13025== by 0x5070AB5: MVM_sc_create (sc.c:11)
==13025== by 0x500F2A7: MVM_interp_run (interp.c:2988)
==13025== by 0x50BE53B: MVM_vm_run_file (moar.c:412)
==13025== by 0x400FD1: main (main.c:299)
==13025==
ok 82 - Priming :(X::AdHoc $, X::AdHoc $) with \(X::AdHoc.new(payload => "foo")) gave :(X::AdHoc $)
ok 83 - Priming :(X::AdHoc $a, X::AdHoc $) with \(X::AdHoc.new(payload => "foo")) gave :(X::AdHoc $)
==13025== Invalid read of size 8
==13025== at 0x503AAE6: MVM_gc_root_add_instance_roots_to_worklist (roots.c:98)
==13025== by 0x503C36E: MVM_gc_collect (collect.c:115)
==13025== by 0x50398BF: run_gc (orchestrate.c:408)
==13025== by 0x5039552: MVM_gc_enter_from_allocator (orchestrate.c:525)
==13025== by 0x5039FF7: MVM_gc_allocate_nursery (allocation.c:32)
==13025== by 0x503A059: MVM_gc_allocate (allocation.h:18)
==13025== by 0x503A038: MVM_gc_allocate_zeroed (allocation.c:49)
==13025== by 0x503A218: MVM_gc_allocate_object (allocation.c:86)
==13025== by 0x5026C6D: MVM_box_str (coerce.c:519)
==13025== by 0x1095F3F0: ???
==13025== by 0x50CC9FC: MVM_jit_code_enter (interface.c:24)
==13025== by 0x50180BB: MVM_interp_run (interp.c:5883)
==13025== Address 0x13f25a18 is 120 bytes inside a block of size 168 free'd
==13025== at 0x4C2F2FA: free (vg_replace_malloc.c:530)
==13025== by 0x505C748: MVM_free (alloc.h:40)
==13025== by 0x505C266: gc_free (SCRef.c:137)
==13025== by 0x503D2A8: MVM_gc_collect_free_gen2_unmarked (collect.c:733)
==13025== by 0x5039DDF: finish_gc (orchestrate.c:230)
==13025== by 0x50398E1: run_gc (orchestrate.c:412)
==13025== by 0x5039552: MVM_gc_enter_from_allocator (orchestrate.c:525)
==13025== by 0x5039FF7: MVM_gc_allocate_nursery (allocation.c:32)
==13025== by 0x503A059: MVM_gc_allocate (allocation.h:18)
==13025== by 0x503A038: MVM_gc_allocate_zeroed (allocation.c:49)
==13025== by 0x503A218: MVM_gc_allocate_object (allocation.c:86)
==13025== by 0x504A983: MVM_repr_alloc_init (reprconv.c:17)
==13025== Block was alloc'd at
==13025== at 0x4C30234: calloc (vg_replace_malloc.c:711)
==13025== by 0x5070D12: MVM_calloc (alloc.h:11)
==13025== by 0x5070AB5: MVM_sc_create (sc.c:11)
==13025== by 0x500F2A7: MVM_interp_run (interp.c:2988)
==13025== by 0x50BE53B: MVM_vm_run_file (moar.c:412)
==13025== by 0x400FD1: main (main.c:299)
==13025==
==13025== Invalid read of size 8
==13025== at 0x503AAEB: MVM_gc_root_add_instance_roots_to_worklist (roots.c:98)
==13025== by 0x503C36E: MVM_gc_collect (collect.c:115)
==13025== by 0x50398BF: run_gc (orchestrate.c:408)
==13025== by 0x5039552: MVM_gc_enter_from_allocator (orchestrate.c:525)
==13025== by 0x5039FF7: MVM_gc_allocate_nursery (allocation.c:32)
==13025== by 0x503A059: MVM_gc_allocate (allocation.h:18)
==13025== by 0x503A038: MVM_gc_allocate_zeroed (allocation.c:49)
==13025== by 0x503A218: MVM_gc_allocate_object (allocation.c:86)
==13025== by 0x5026C6D: MVM_box_str (coerce.c:519)
==13025== by 0x1095F3F0: ???
==13025== by 0x50CC9FC: MVM_jit_code_enter (interface.c:24)
==13025== by 0x50180BB: MVM_interp_run (interp.c:5883)
==13025== Address 0x13f25a10 is 112 bytes inside a block of size 168 free'd
==13025== at 0x4C2F2FA: free (vg_replace_malloc.c:530)
==13025== by 0x505C748: MVM_free (alloc.h:40)
==13025== by 0x505C266: gc_free (SCRef.c:137)
==13025== by 0x503D2A8: MVM_gc_collect_free_gen2_unmarked (collect.c:733)
==13025== by 0x5039DDF: finish_gc (orchestrate.c:230)
==13025== by 0x50398E1: run_gc (orchestrate.c:412)
==13025== by 0x5039552: MVM_gc_enter_from_allocator (orchestrate.c:525)
==13025== by 0x5039FF7: MVM_gc_allocate_nursery (allocation.c:32)
==13025== by 0x503A059: MVM_gc_allocate (allocation.h:18)
==13025== by 0x503A038: MVM_gc_allocate_zeroed (allocation.c:49)
==13025== by 0x503A218: MVM_gc_allocate_object (allocation.c:86)
==13025== by 0x504A983: MVM_repr_alloc_init (reprconv.c:17)
==13025== Block was alloc'd at
==13025== at 0x4C30234: calloc (vg_replace_malloc.c:711)
==13025== by 0x5070D12: MVM_calloc (alloc.h:11)
==13025== by 0x5070AB5: MVM_sc_create (sc.c:11)
==13025== by 0x500F2A7: MVM_interp_run (interp.c:2988)
==13025== by 0x50BE53B: MVM_vm_run_file (moar.c:412)
==13025== by 0x400FD1: main (main.c:299)
==13025==
==13025== Invalid read of size 8
==13025== at 0x503AB60: MVM_gc_root_add_instance_roots_to_worklist (roots.c:98)
==13025== by 0x503C36E: MVM_gc_collect (collect.c:115)
==13025== by 0x50398BF: run_gc (orchestrate.c:408)
==13025== by 0x5039552: MVM_gc_enter_from_allocator (orchestrate.c:525)
==13025== by 0x5039FF7: MVM_gc_allocate_nursery (allocation.c:32)
==13025== by 0x503A059: MVM_gc_allocate (allocation.h:18)
==13025== by 0x503A038: MVM_gc_allocate_zeroed (allocation.c:49)
==13025== by 0x503A218: MVM_gc_allocate_object (allocation.c:86)
==13025== by 0x5026C6D: MVM_box_str (coerce.c:519)
==13025== by 0x1095F3F0: ???
==13025== by 0x50CC9FC: MVM_jit_code_enter (interface.c:24)
==13025== by 0x50180BB: MVM_interp_run (interp.c:5883)
==13025== Address 0x13f25a00 is 96 bytes inside a block of size 168 free'd
==13025== at 0x4C2F2FA: free (vg_replace_malloc.c:530)
==13025== by 0x505C748: MVM_free (alloc.h:40)
==13025== by 0x505C266: gc_free (SCRef.c:137)
==13025== by 0x503D2A8: MVM_gc_collect_free_gen2_unmarked (collect.c:733)
==13025== by 0x5039DDF: finish_gc (orchestrate.c:230)
==13025== by 0x50398E1: run_gc (orchestrate.c:412)
==13025== by 0x5039552: MVM_gc_enter_from_allocator (orchestrate.c:525)
==13025== by 0x5039FF7: MVM_gc_allocate_nursery (allocation.c:32)
==13025== by 0x503A059: MVM_gc_allocate (allocation.h:18)
==13025== by 0x503A038: MVM_gc_allocate_zeroed (allocation.c:49)
==13025== by 0x503A218: MVM_gc_allocate_object (allocation.c:86)
==13025== by 0x504A983: MVM_repr_alloc_init (reprconv.c:17)
==13025== Block was alloc'd at
==13025== at 0x4C30234: calloc (vg_replace_malloc.c:711)
==13025== by 0x5070D12: MVM_calloc (alloc.h:11)
==13025== by 0x5070AB5: MVM_sc_create (sc.c:11)
==13025== by 0x500F2A7: MVM_interp_run (interp.c:2988)
==13025== by 0x50BE53B: MVM_vm_run_file (moar.c:412)
==13025== by 0x400FD1: main (main.c:299)
==13025==
==13025== Invalid read of size 4
==13025== at 0x503AB6A: MVM_gc_root_add_instance_roots_to_worklist (roots.c:98)
==13025== by 0x503C36E: MVM_gc_collect (collect.c:115)
==13025== by 0x50398BF: run_gc (orchestrate.c:408)
==13025== by 0x5039552: MVM_gc_enter_from_allocator (orchestrate.c:525)
==13025== by 0x5039FF7: MVM_gc_allocate_nursery (allocation.c:32)
==13025== by 0x503A059: MVM_gc_allocate (allocation.h:18)
==13025== by 0x503A038: MVM_gc_allocate_zeroed (allocation.c:49)
==13025== by 0x503A218: MVM_gc_allocate_object (allocation.c:86)
==13025== by 0x5026C6D: MVM_box_str (coerce.c:519)
==13025== by 0x1095F3F0: ???
==13025== by 0x50CC9FC: MVM_jit_code_enter (interface.c:24)
==13025== by 0x50180BB: MVM_interp_run (interp.c:5883)
==13025== Address 0x13f25a34 is 148 bytes inside a block of size 168 free'd
==13025== at 0x4C2F2FA: free (vg_replace_malloc.c:530)
==13025== by 0x505C748: MVM_free (alloc.h:40)
==13025== by 0x505C266: gc_free (SCRef.c:137)
==13025== by 0x503D2A8: MVM_gc_collect_free_gen2_unmarked (collect.c:733)
==13025== by 0x5039DDF: finish_gc (orchestrate.c:230)
==13025== by 0x50398E1: run_gc (orchestrate.c:412)
==13025== by 0x5039552: MVM_gc_enter_from_allocator (orchestrate.c:525)
==13025== by 0x5039FF7: MVM_gc_allocate_nursery (allocation.c:32)
==13025== by 0x503A059: MVM_gc_allocate (allocation.h:18)
==13025== by 0x503A038: MVM_gc_allocate_zeroed (allocation.c:49)
==13025== by 0x503A218: MVM_gc_allocate_object (allocation.c:86)
==13025== by 0x504A983: MVM_repr_alloc_init (reprconv.c:17)
==13025== Block was alloc'd at
==13025== at 0x4C30234: calloc (vg_replace_malloc.c:711)
==13025== by 0x5070D12: MVM_calloc (alloc.h:11)
==13025== by 0x5070AB5: MVM_sc_create (sc.c:11)
==13025== by 0x500F2A7: MVM_interp_run (interp.c:2988)
==13025== by 0x50BE53B: MVM_vm_run_file (moar.c:412)
==13025== by 0x400FD1: main (main.c:299)
==13025==
==13025==
==13025== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==13025== Access not within mapped region at address 0x100000027
==13025== at 0x501AD05: deserialize_sc_deps (bytecode.c:286)
==13025== by 0x501A644: MVM_bytecode_unpack (bytecode.c:873)
==13025== by 0x5019486: MVM_cu_from_bytes (compunit.c:21)
==13025== by 0x507BB00: MVM_mast_to_cu (driver.c:37)
==13025== by 0x500FA3C: MVM_interp_run (interp.c:3193)
==13025== by 0x50BE53B: MVM_vm_run_file (moar.c:412)
==13025== by 0x400FD1: main (main.c:299)
==13025== If you believe this happened as a result of a stack
==13025== overflow in your program's main thread (unlikely but
==13025== possible), you can try to increase the size of the
==13025== main thread stack using the --main-stacksize= flag.
==13025== The main thread stack size used in this run was 8388608.
==13025==
==13025== HEAP SUMMARY:
==13025== in use at exit: 223,489,702 bytes in 376,363 blocks
==13025== total heap usage: 3,561,469 allocs, 3,185,106 frees, 3,565,600,687 bytes allocated
==13025==
==13025== LEAK SUMMARY:
==13025== definitely lost: 145,580 bytes in 2,036 blocks
==13025== indirectly lost: 4,886,344 bytes in 461 blocks
==13025== possibly lost: 568,180 bytes in 7,773 blocks
==13025== still reachable: 217,889,598 bytes in 366,093 blocks
==13025== suppressed: 0 bytes in 0 blocks
==13025== Rerun with --leak-check=full to see details of leaked memory
==13025==
==13025== For counts of detected and suppressed errors, rerun with: -v
==13025== ERROR SUMMARY: 61 errors from 6 contexts (suppressed: 0 from 0)
/home/samantha/perl6/bin/perl6-valgrind-m: line 15: 13025 Segmentation fault (core dumped) valgrind ${MVM_VALGRIND_OPTS} /home/samantha/perl6/bin/moar --execname="$0" --libpath="/home/samantha/perl6/share/nqp/lib" --libpath="/home/samantha/perl6/share/perl6/lib" --libpath="/home/samantha/perl6/share/perl6/runtime" /home/samantha/perl6/share/perl6/runtime/perl6.moarvm "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment