Skip to content

Instantly share code, notes, and snippets.

@MasterDuke17
Last active January 26, 2021 23:31
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/57b58b44c3c161a35633930701b2b2eb to your computer and use it in GitHub Desktop.
Save MasterDuke17/57b58b44c3c161a35633930701b2b2eb to your computer and use it in GitHub Desktop.
[dan@alexandria nqp]$ MVM_JIT_DISABLE=1 MVM_SPESH_BLOCKING=1 rr record '/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/MASTOps.moarvm /home/dan/Source/perl6/install/share/nqp/lib/MAST/Ops.nqp
rr: Saving execution to trace directory `/home/dan/.local/share/rr/moar-13'.
removing the only existing candidate
Segmentation fault
[dan@alexandria nqp]$ rr replay
GNU gdb (GDB) 10.1
Copyright (C) 2020 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:
<https://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/.local/share/rr/moar-13/mmap_hardlink_3_moar...
Really redefine built-in command "restart"? (y or n) [answered Y; input not from terminal]
Remote debugging using 127.0.0.1:14052
Reading symbols from /lib64/ld-linux-x86-64.so.2...
(No debugging symbols found in /lib64/ld-linux-x86-64.so.2)
0x00007f1cedd85090 in _start () from /lib64/ld-linux-x86-64.so.2
(rr) continue
Continuing.
removing the only existing candidate
[New Thread 3812958.3812959]
Thread 1 received signal SIGSEGV, Segmentation fault.
deopt_frame (tc=0x55d14199edf0, f=0x7f1ceb93b048, deopt_idx=77, deopt_offset=616, deopt_target=584) at src/spesh/deopt.c:272
272 *(tc->interp_cur_op) = f->static_info->body.bytecode + deopt_target;
(rr) bt
#0 deopt_frame (tc=0x55d14199edf0, f=0x7f1ceb93b048, deopt_idx=77, deopt_offset=616, deopt_target=584) at src/spesh/deopt.c:272
#1 0x00007f1ced696180 in MVM_spesh_deopt_one (tc=0x55d14199edf0, deopt_idx=77) at src/spesh/deopt.c:304
#2 0x00007f1ced579186 in MVM_interp_run (tc=0x55d14199edf0, initial_invoke=0x7f1ced70b59a <toplevel_initial_invoke>, invoke_data=0x55d141a2adb8, outer_runloop=0x0) at src/core/interp.c:5754
#3 0x00007f1ced70b714 in MVM_vm_run_file (instance=0x55d14199e2d0, filename=0x7ffd5bf6e553 "src/vm/moar/stage0/nqp.moarvm") at src/moar.c:504
#4 0x000055d141463c55 in main (argc=12, argv=0x7ffd5bf6c698) at src/main.c:305
(rr) p f
$1 = (MVMFrame *) 0x7f1ceb93b048
(rr) p f->static_info
$2 = (MVMStaticFrame *) 0x0
(rr) p *f
$6 = {header = {sc_forward_u = {forwarder = 0x0, sc = {sc_idx = 0, idx = 0}, st = 0x0}, owner = 0, flags1 = 0 '\000', flags2 = 0 '\000', size = 0}, env = 0x0, work = 0x0, args = 0x0, cur_args_callsite = 0x0, outer = 0x0, caller = 0x0,
static_info = 0x0, code_ref = 0x0, params = {callsite = 0x0, arg_flags = 0x0, args = 0x0, named_used = {byte_array = 0x0, bit_field = 0}, named_used_size = 0, arg_count = 0, num_pos = 0, flag_count = 0}, effective_spesh_slots = 0x0,
spesh_cand = 0x0, return_address = 0x0, return_value = 0x0, return_type = 0 '\000', flags = 0 '\000', allocd_work = 0, allocd_env = 0, spesh_correlation_id = 0, sequence_nr = 0, jit_entry_label = 0x0, extra = 0x0}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment