-
-
Save MasterDuke17/a8993ba31b5b492e329c3afb66ab9727 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 (Ubuntu 8.0.1-0ubuntu1) 8.0.1 | |
Copyright (C) 2017 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-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. | |
(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 "/lib/x86_64-linux-gnu/libthread_db.so.1". | |
[New Thread 0x7ffff62be700 (LWP 6689)] | |
Thread 1 "moar" received signal SIGSEGV, Segmentation fault. | |
0x00007ffff761f018 in MVM_frame_find_contextual_by_name (tc=0x555555758c40, name=0x555555c81f80, type=0x7fffffffc456, cur_frame=0x7ffff7fd4068, vivify=1, found_frame=0x7fffffffc458) at src/core/frame.c:1444 | |
1444 MVM_HASH_GET(tc, lexical_names, name, entry) | |
(gdb) bt | |
#0 0x00007ffff761f018 in MVM_frame_find_contextual_by_name (tc=0x555555758c40, name=0x555555c81f80, type=0x7fffffffc456, cur_frame=0x7ffff7fd4068, vivify=1, found_frame=0x7fffffffc458) at src/core/frame.c:1444 | |
#1 0x00007ffff761f44f in MVM_frame_getdynlex (tc=0x555555758c40, name=0x555555c81f80, cur_frame=0x7ffff7fd4068) at src/core/frame.c:1481 | |
#2 0x00007ffff54b10d5 in ?? () | |
#3 0x0000000000000008 in ?? () | |
#4 0x0000555555c95710 in ?? () | |
#5 0x00007ffff7fd4030 in ?? () | |
#6 0x00007ffff79fafec in ?? () from //home/dan/Source/perl6/install/lib/libmoar.so | |
#7 0x0000555555758c40 in ?? () | |
#8 0xf2057724f2057724 in ?? () | |
#9 0x0000555555c49240 in ?? () | |
#10 0x00007fffffffc500 in ?? () | |
#11 0x00007ffff7619de2 in MVM_p6opaque_read_object (tc=0x5555558b7010, o=0x7fff000086cd, offset=93824994348096) at src/6model/reprs/P6opaque.h:115 | |
#12 0x00007ffff7725fb2 in MVM_jit_enter_code (tc=0x555555758c40, cu=0x5555557cc3f0, code=0x7ffff007e160) at src/jit/compile.c:335 | |
#13 0x00007ffff7613caa in MVM_interp_run (tc=0x555555758c40, initial_invoke=0x7ffff771516f <toplevel_initial_invoke>, invoke_data=0x5555557f7958) at src/core/interp.c:5729 | |
#14 0x00007ffff77152d4 in MVM_vm_run_file (instance=0x555555758260, filename=0x7fffffffe1cf "src/vm/moar/stage0/nqp.moarvm") at src/moar.c:401 | |
#15 0x00005555555554c0 in main (argc=9, argv=0x7fffffffdde8) at src/main.c:256 | |
(gdb) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OP(getdynlex): { | |
GET_REG(cur_op, 0).o = MVM_frame_getdynlex(tc, GET_REG(cur_op, 2).s, | |
tc->cur_frame->caller); | |
cur_op += 4; | |
goto NEXT; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(template: getdynlex | |
(call (^func &MVM_frame_getdynlex) | |
(arglist | |
(carg (tc) ptr) | |
(carg $1 ptr) | |
(carg (^caller) ptr)) ptr_sz)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment