Skip to content

Instantly share code, notes, and snippets.

@MasterDuke17
Last active March 13, 2018 02:55
Show Gist options
  • Save MasterDuke17/27feb037abdddb9528b4cf15f1af9b17 to your computer and use it in GitHub Desktop.
Save MasterDuke17/27feb037abdddb9528b4cf15f1af9b17 to your computer and use it in GitHub Desktop.
$ gdb --args /home/dan/Source/perl6/install/bin/moar --libpath=src/vm/moar/stage0 src/vm/moar/stage0/nqp.moarvm --bootstrap --setting=NULL --no-regex-lib --target=mbc --output=gen/moar/stage1/nqpmo.moarvm gen/moar/stage1/nqpmo.nqp
GNU gdb (GDB) 8.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/dan/Source/perl6/install/bin/moar...done.
MoarVM string pretty printer registered
moar-heap registered
diff-moar-heap registered
(gdb) b MVM_exception_throw_adhoc_free
Function "MVM_exception_throw_adhoc_free" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (MVM_exception_throw_adhoc_free) pending.
(gdb) r
Starting program: /home/dan/Source/perl6/install/bin/moar --libpath=src/vm/moar/stage0 src/vm/moar/stage0/nqp.moarvm --bootstrap --setting=NULL --no-regex-lib --target=mbc --output=gen/moar/stage1/nqpmo.moarvm gen/moar/stage1/nqpmo.nqp
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7ffff62d9700 (LWP 11300)]
Thread 1 "moar" hit Breakpoint 1, MVM_exception_throw_adhoc_free (tc=0x555555758c40, waste=0x7fffffffcf60, messageFormat=0x7ffff775c8b0 "P6opaque: no such attribute '%s' on type %s in a %s when trying to %s") at src/core/exceptions.c:877
877 void MVM_exception_throw_adhoc_free(MVMThreadContext *tc, char **waste, const char *messageFormat, ...) {
(gdb) bt
#0 MVM_exception_throw_adhoc_free (tc=0x555555758c40, waste=0x7fffffffcf60, messageFormat=0x7ffff775c8b0 "P6opaque: no such attribute '%s' on type %s in a %s when trying to %s") at src/core/exceptions.c:877
#1 0x00007ffff7659e61 in no_such_attribute (tc=0x555555758c40, action=0x7ffff775ca9f "bind a value", class_handle=0x5555557b5188, name=pointer to '$!clone_callback', target_type=0x5555557aad30) at src/6model/reprs/P6opaque.c:210
#2 0x00007ffff765a8c3 in bind_attribute (tc=0x555555758c40, st=0x5555557aad30, root=0x7ffff65c24e0, data=0x7ffff65c24f8, class_handle=0x5555557b5188, name=pointer to '$!clone_callback', hint=-1, value_reg=..., kind=8)
at src/6model/reprs/P6opaque.c:396
#3 0x00007ffff75de886 in MVM_interp_run (tc=0x555555758c40, initial_invoke=0x7ffff77009ca <toplevel_initial_invoke>, invoke_data=0x5555557f7968) at src/core/interp.c:1983
#4 0x00007ffff7700b2f in MVM_vm_run_file (instance=0x555555758260, filename=0x7fffffffebad "src/vm/moar/stage0/nqp.moarvm") at src/moar.c:407
#5 0x00005555555557e7 in main (argc=9, argv=0x7fffffffe898) at src/main.c:256
(gdb)
P6opaque: no such attribute '$!clone_callback' on type NQPMu in a NQPMu when trying to bind a value
at gen/moar/stage2/NQP.nqp:434 (src/vm/moar/stage0/nqp.moarvm:create_code)
from gen/moar/stage2/NQP.nqp:3203 (src/vm/moar/stage0/nqp.moarvm:method_def)
from <unknown>:1 (src/vm/moar/stage0/QRegex.moarvm:!cursor_pass)
from gen/moar/stage2/NQP.nqp:1333 (src/vm/moar/stage0/nqp.moarvm:method_def)
from <unknown>:1 (src/vm/moar/stage0/nqp.moarvm:routine_declarator:sym<method>)
from gen/moar/stage2/QRegex.nqp:1721 (src/vm/moar/stage0/QRegex.moarvm:!protoregex)
from <unknown>:1 (src/vm/moar/stage0/nqp.moarvm:routine_declarator)
from <unknown>:1 (src/vm/moar/stage0/nqp.moarvm:term:sym<routine_declarator>)
from gen/moar/stage2/QRegex.nqp:1721 (src/vm/moar/stage0/QRegex.moarvm:!protoregex)
from <unknown>:1 (src/vm/moar/stage0/NQPHLL.moarvm:term)
from <unknown>:1 (src/vm/moar/stage0/NQPHLL.moarvm:termish)
from gen/moar/stage2/NQPHLL.nqp:883 (src/vm/moar/stage0/NQPHLL.moarvm:EXPR)
from gen/moar/stage2/NQP.nqp:953 (src/vm/moar/stage0/nqp.moarvm:statement)
from <unknown>:1 (src/vm/moar/stage0/nqp.moarvm:statementlist)
from gen/moar/stage2/NQP.nqp:995 (src/vm/moar/stage0/nqp.moarvm:blockoid)
from gen/moar/stage2/NQP.nqp:1237 (src/vm/moar/stage0/nqp.moarvm:package_def)
from <unknown>:1 (src/vm/moar/stage0/nqp.moarvm:package_declarator:sym<knowhow>)
from gen/moar/stage2/QRegex.nqp:1721 (src/vm/moar/stage0/QRegex.moarvm:!protoregex)
from <unknown>:1 (src/vm/moar/stage0/nqp.moarvm:package_declarator)
from <unknown>:1 (src/vm/moar/stage0/nqp.moarvm:term:sym<package_declarator>)
from gen/moar/stage2/QRegex.nqp:1721 (src/vm/moar/stage0/QRegex.moarvm:!protoregex)
from <unknown>:1 (src/vm/moar/stage0/NQPHLL.moarvm:term)
from <unknown>:1 (src/vm/moar/stage0/NQPHLL.moarvm:termish)
from gen/moar/stage2/NQPHLL.nqp:883 (src/vm/moar/stage0/NQPHLL.moarvm:EXPR)
from gen/moar/stage2/NQP.nqp:953 (src/vm/moar/stage0/nqp.moarvm:statement)
from <unknown>:1 (src/vm/moar/stage0/nqp.moarvm:statementlist)
from gen/moar/stage2/NQP.nqp:920 (src/vm/moar/stage0/nqp.moarvm:comp_unit)
from gen/moar/stage2/NQP.nqp:818 (src/vm/moar/stage0/nqp.moarvm:TOP)
from gen/moar/stage2/QRegex.nqp:2330 (src/vm/moar/stage0/QRegex.moarvm:parse)
from gen/moar/stage2/NQPHLL.nqp:1881 (src/vm/moar/stage0/NQPHLL.moarvm:parse)
from gen/moar/stage2/NQPHLL.nqp:1797 (src/vm/moar/stage0/NQPHLL.moarvm:execute_stage)
from gen/moar/stage2/NQPHLL.nqp:1830 (src/vm/moar/stage0/NQPHLL.moarvm:run)
from gen/moar/stage2/NQPHLL.nqp:1833 (src/vm/moar/stage0/NQPHLL.moarvm:)
from gen/moar/stage2/NQPHLL.nqp:1819 (src/vm/moar/stage0/NQPHLL.moarvm:compile)
from gen/moar/stage2/NQPHLL.nqp:1519 (src/vm/moar/stage0/NQPHLL.moarvm:eval)
from gen/moar/stage2/NQPHLL.nqp:1774 (src/vm/moar/stage0/NQPHLL.moarvm:evalfiles)
from gen/moar/stage2/NQPHLL.nqp:1699 (src/vm/moar/stage0/NQPHLL.moarvm:command_eval)
from gen/moar/stage2/NQPHLL.nqp:1625 (src/vm/moar/stage0/NQPHLL.moarvm:command_line)
from gen/moar/stage2/NQP.nqp:4124 (src/vm/moar/stage0/nqp.moarvm:MAIN)
from gen/moar/stage2/NQP.nqp:4119 (src/vm/moar/stage0/nqp.moarvm:<mainline>)
from <unknown>:1 (src/vm/moar/stage0/nqp.moarvm:<main>)
from <unknown>:1 (src/vm/moar/stage0/nqp.moarvm:<entry>)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment