Skip to content

Instantly share code, notes, and snippets.

@MasterDuke17
Created January 18, 2021 11:42
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 MasterDuke17/45562aab1a291d6266ca1ecb81717c9f to your computer and use it in GitHub Desktop.
Save MasterDuke17/45562aab1a291d6266ca1ecb81717c9f to your computer and use it in GitHub Desktop.
[dan@alexandria nqp]$ MVM_JIT_DISABLE=1 MVM_SPESH_BLOCKING=1 valgrind --track-origins=yes '/home/dan/Source/perl6/install/bin/moar' --libpath=src/vm/moar/stage0 src/vm/moar/stage0/nqp.moarvm --bootstrap --setting-path=gen/moar/stage1 --module-path=gen/moar/stage1 --no-regex-lib --target=mbc --setting=NQPCORE --stable-sc=stage1 --output=gen/moar/stage1/MASTNodes.moarvm gen/moar/stage1/MASTNodes.nqp
==1814110== Memcheck, a memory error detector
==1814110== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==1814110== Using Valgrind-3.16.1 and LibVEX; rerun with -h for copyright info
==1814110== Command: /home/dan/Source/perl6/install/bin/moar --libpath=src/vm/moar/stage0 src/vm/moar/stage0/nqp.moarvm --bootstrap --setting-path=gen/moar/stage1 --module-path=gen/moar/stage1 --no-regex-lib --target=mbc --setting=NQPCORE --stable-sc=stage1 --output=gen/moar/stage1/MASTNodes.moarvm gen/moar/stage1/MASTNodes.nqp
==1814110==
removing the only existing candidate
i = 0, new_num = 1
removing the only existing candidate
i = 1, new_num = 1
removing the only existing candidate
i = 0, new_num = 2
==1814110== Use of uninitialised value of size 8
==1814110== at 0x4B0AC58: MVM_str_hash_key_is_valid (str_hash_table_funcs.h:315)
==1814110== by 0x4B0AD0C: MVM_str_hash_fetch (str_hash_table_funcs.h:345)
==1814110== by 0x4B0BCA4: MVMHash_at_key (MVMHash.c:98)
==1814110== by 0x4A5F432: MVM_interp_run (interp.c:2482)
==1814110== by 0x4C0A846: MVM_vm_run_file (moar.c:504)
==1814110== by 0x109C54: main (main.c:305)
==1814110== Uninitialised value was created by a heap allocation
==1814110== at 0x483A77F: malloc (vg_replace_malloc.c:307)
==1814110== by 0x4BBE063: MVM_malloc (alloc.h:2)
==1814110== by 0x4BBFDB6: allocate_strands (ops.c:166)
==1814110== by 0x4BC1CCA: MVM_string_substring (ops.c:750)
==1814110== by 0x4A57DD8: MVM_interp_run (interp.c:1625)
==1814110== by 0x4C0A846: MVM_vm_run_file (moar.c:504)
==1814110== by 0x109C54: main (main.c:305)
==1814110==
==1814110== Invalid read of size 8
==1814110== at 0x4B0AC58: MVM_str_hash_key_is_valid (str_hash_table_funcs.h:315)
==1814110== by 0x4B0AD0C: MVM_str_hash_fetch (str_hash_table_funcs.h:345)
==1814110== by 0x4B0BCA4: MVMHash_at_key (MVMHash.c:98)
==1814110== by 0x4A5F432: MVM_interp_run (interp.c:2482)
==1814110== by 0x4C0A846: MVM_vm_run_file (moar.c:504)
==1814110== by 0x109C54: main (main.c:305)
==1814110== Address 0x10 is not stack'd, malloc'd or (recently) free'd
==1814110==
==1814110==
==1814110== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==1814110== Access not within mapped region at address 0x10
==1814110== at 0x4B0AC58: MVM_str_hash_key_is_valid (str_hash_table_funcs.h:315)
==1814110== by 0x4B0AD0C: MVM_str_hash_fetch (str_hash_table_funcs.h:345)
==1814110== by 0x4B0BCA4: MVMHash_at_key (MVMHash.c:98)
==1814110== by 0x4A5F432: MVM_interp_run (interp.c:2482)
==1814110== by 0x4C0A846: MVM_vm_run_file (moar.c:504)
==1814110== by 0x109C54: main (main.c:305)
==1814110== If you believe this happened as a result of a stack
==1814110== overflow in your program's main thread (unlikely but
==1814110== possible), you can try to increase the size of the
==1814110== main thread stack using the --main-stacksize= flag.
==1814110== The main thread stack size used in this run was 8388608.
==1814110==
==1814110== HEAP SUMMARY:
==1814110== in use at exit: 29,594,687 bytes in 76,953 blocks
==1814110== total heap usage: 824,151 allocs, 747,198 frees, 278,553,360 bytes allocated
==1814110==
==1814110== LEAK SUMMARY:
==1814110== definitely lost: 0 bytes in 0 blocks
==1814110== indirectly lost: 0 bytes in 0 blocks
==1814110== possibly lost: 4,148,568 bytes in 13,889 blocks
==1814110== still reachable: 25,446,119 bytes in 63,064 blocks
==1814110== of which reachable via heuristic:
==1814110== length64 : 358,024 bytes in 4,380 blocks
==1814110== suppressed: 0 bytes in 0 blocks
==1814110== Rerun with --leak-check=full to see details of leaked memory
==1814110==
==1814110== For lists of detected and suppressed errors, rerun with: -s
==1814110== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
Segmentation fault (core dumped)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment