Skip to content

Instantly share code, notes, and snippets.

@dogbert17
Created July 19, 2018 13:19
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/26f45c42ab1ecf1d2406ecd8ed902c9c to your computer and use it in GitHub Desktop.
Save dogbert17/26f45c42ab1ecf1d2406ecd8ed902c9c to your computer and use it in GitHub Desktop.
Test failure with MVM_GC_DEBUG=1
Starting program: /home/dogbert/repos/rakudo/install/bin/moar --execname=./perl6-gdb-m --libpath=. --libpath=blib --libpath=/home/dogbert/repos/rakudo/install/share/nqp/lib --libpath=/home/dogbert/repos/rakudo/install/share/nqp/lib --libpath=/home/dogbert/repos/rakudo/install/share/nqp/lib /home/dogbert/repos/rakudo/perl6.moarvm --nqp-lib=blib t/spec/S02-names/pseudo.rakudo.moar
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[New Thread 0xb730db40 (LWP 10731)]
1..155
ok 1 - # SKIP the binding in here is NYI RT \#124914
ok 2 - # SKIP the binding in here is NYI RT \#124914
ok 3 - # SKIP the binding in here is NYI RT \#124914
ok 4 - # SKIP the binding in here is NYI RT \#124914
...
ok 142 - $UNIT:: finds eval heads
ok 143 - ::("UNIT") finds eval heads
ok 144 - CALLER::UNIT works
ok 145 - CALLER::UNIT works (indirect)
ok 146 - SETTING:: works
ok 147 - ::("SETTING") works
ok 148 - SETTING finds eval context
ok 149 - ::("SETTING") finds eval context
Breakpoint 1, MVM_panic (exitCode=1, messageFormat=0xb7c1da2c "Collectable %p in fromspace accessed") at src/core/exceptions.c:823
823 fprintf(stderr, "MoarVM panic: ");
(gdb) bt
#0 MVM_panic (exitCode=1, messageFormat=0xb7c1da2c "Collectable %p in fromspace accessed") at src/core/exceptions.c:823
#1 0xb7af9652 in bind_key (tc=0x804c628, st=0x80a9350, root=0xb7422d08, data=0xb7422d18, key_obj=0x8dc55a8, value=..., kind=8) at src/6model/reprs/MVMHash.c:104
#2 0xb7af9a10 in MVMHash_bind_key (tc=0x804c628, st=0x80a9350, root=0xb7422d08, data=0xb7422d18, key_obj=0x8dc55a8, value=..., kind=8) at src/6model/reprs/MVMHash.c:113
#3 0xb7aecbbc in MVM_repr_bind_key_o (tc=0x804c628, obj=0xb7422d08, key=0x8dc55a8, val=0xb387f164) at src/6model/reprconv.c:553
#4 0xb7b8311f in MVM_spesh_frame_walker_get_lexicals_hash (tc=0x804c628, fw=0xbfffdc04) at src/spesh/frame_walker.c:327
#5 0xb7b11c0e in MVM_context_lexicals_as_hash (tc=0x804c628, ctx=0xb7422cec) at src/6model/reprs/MVMContext.c:354
#6 0xb7b1057f in MVM_iter (tc=0x804c628, target=0xb7422cec) at src/6model/reprs/MVMIter.c:204
#7 0xb7a72eb7 in MVM_interp_run (tc=0x804c628, initial_invoke=0xb7be0470 <toplevel_initial_invoke>, invoke_data=0x80c7168) at src/core/interp.c:2743
#8 0xb7be05cf in MVM_vm_run_file (instance=0x804c008, filename=0xbffff2d6 "/home/dogbert/repos/rakudo/perl6.moarvm") at src/moar.c:412
#9 0x08049240 in main (argc=10, argv=0xbfffefe4) at src/main.c:299
(gdb) info threads
Id Target Id Frame
2 Thread 0xb730db40 (LWP 10731) "moar" 0xb7b5a18c in MVM_spesh_alloc (tc=0x80c5ee8, g=0xb4e45028, bytes=8) at src/spesh/graph.c:19
* 1 Thread 0xb7772940 (LWP 10730) "moar" MVM_panic (exitCode=1, messageFormat=0xb7c1da2c "Collectable %p in fromspace accessed") at src/core/exceptions.c:823
(gdb) f 1
#1 0xb7af9652 in bind_key (tc=0x804c628, st=0x80a9350, root=0xb7422d08, data=0xb7422d18, key_obj=0x8dc55a8, value=..., kind=8) at src/6model/reprs/MVMHash.c:104
104 MVM_ASSIGN_REF(tc, &(root->header), entry->value, value.o);
(gdb) p MVM_dump_backtrace(tc)
at gen/moar/stage2/NQPHLL.nqp:1166 (/home/dogbert/repos/rakudo/install/share/nqp/lib/NQPHLL.moarvm:SET_BLOCK_OUTER_CTX)
from gen/moar/Perl6-Actions.nqp:1663 (blib/Perl6/Actions.moarvm:unitstart)
from <unknown>:1 (/home/dogbert/repos/rakudo/install/share/nqp/lib/QRegex.moarvm:!cursor_pass)
from <unknown>:1 (blib/Perl6/Grammar.moarvm:unitstart)
from src/Perl6/World.nqp:531 (blib/Perl6/World.moarvm:loading_and_symbol_setup)
from gen/moar/Perl6-Grammar.nqp:1283 (blib/Perl6/Grammar.moarvm:comp_unit)
from gen/moar/Perl6-Grammar.nqp:553 (blib/Perl6/Grammar.moarvm:TOP)
from gen/moar/stage2/QRegex.nqp:2303 (/home/dogbert/repos/rakudo/install/share/nqp/lib/QRegex.moarvm:parse)
from gen/moar/stage2/NQPHLL.nqp:1912 (/home/dogbert/repos/rakudo/install/share/nqp/lib/NQPHLL.moarvm:parse)
from gen/moar/stage2/NQPHLL.nqp:1828 (/home/dogbert/repos/rakudo/install/share/nqp/lib/NQPHLL.moarvm:execute_stage)
from gen/moar/stage2/NQPHLL.nqp:1861 (/home/dogbert/repos/rakudo/install/share/nqp/lib/NQPHLL.moarvm:run)
from gen/moar/stage2/NQPHLL.nqp:1864 (/home/dogbert/repos/rakudo/install/share/nqp/lib/NQPHLL.moarvm:)
from gen/moar/stage2/NQPHLL.nqp:1850 (/home/dogbert/repos/rakudo/install/share/nqp/lib/NQPHLL.moarvm:compile)
from SETTING::src/core/ForeignCode.pm6:55 (./CORE.setting.moarvm:EVAL)
from t/spec/S02-names/pseudo.rakudo.moar:430 (<ephemeral file>:)
from t/spec/S02-names/pseudo.rakudo.moar:422 (<ephemeral file>:<unit>)
from t/spec/S02-names/pseudo.rakudo.moar:1 (<ephemeral file>:<unit-outer>)
from gen/moar/stage2/NQPHLL.nqp:1566 (/home/dogbert/repos/rakudo/install/share/nqp/lib/NQPHLL.moarvm:eval)
from gen/moar/stage2/NQPHLL.nqp:1805 (/home/dogbert/repos/rakudo/install/share/nqp/lib/NQPHLL.moarvm:evalfiles)
from gen/moar/stage2/NQPHLL.nqp:1695 (/home/dogbert/repos/rakudo/install/share/nqp/lib/NQPHLL.moarvm:command_eval)
from src/Perl6/Compiler.nqp:42 (blib/Perl6/Compiler.moarvm:command_eval)
from gen/moar/stage2/NQPHLL.nqp:1654 (/home/dogbert/repos/rakudo/install/share/nqp/lib/NQPHLL.moarvm:command_line)
from gen/moar/main.nqp:47 (/home/dogbert/repos/rakudo/perl6.moarvm:MAIN)
from gen/moar/main.nqp:38 (/home/dogbert/repos/rakudo/perl6.moarvm:<mainline>)
from <unknown>:1 (/home/dogbert/repos/rakudo/perl6.moarvm:<main>)
from <unknown>:1 (/home/dogbert/repos/rakudo/perl6.moarvm:<entry>)
$1 = void
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment