Skip to content

Instantly share code, notes, and snippets.

@MasterDuke17
Created January 26, 2021 20:26
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/b33ca703477692b95a13af9bd5154a57 to your computer and use it in GitHub Desktop.
Save MasterDuke17/b33ca703477692b95a13af9bd5154a57 to your computer and use it in GitHub Desktop.
[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-12/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:52174
Reading symbols from /lib64/ld-linux-x86-64.so.2...
(No debugging symbols found in /lib64/ld-linux-x86-64.so.2)
0x00007f4e53311090 in _start () from /lib64/ld-linux-x86-64.so.2
(rr) continue
Continuing.
removing the only existing candidate
[New Thread 3764142.3764143]
Thread 1 received signal SIGSEGV, Segmentation fault.
deopt_frame (tc=0x563893324df0, f=0x7f4e51008048, deopt_idx=77, deopt_offset=616, deopt_target=584) at src/spesh/deopt.c:251
251 if (f->spesh_cand->body.inlines) {
(rr) bt
#0 deopt_frame (tc=0x563893324df0, f=0x7f4e51008048, deopt_idx=77, deopt_offset=616, deopt_target=584) at src/spesh/deopt.c:251
#1 0x00007f4e52c2216b in MVM_spesh_deopt_one (tc=0x563893324df0, deopt_idx=77) at src/spesh/deopt.c:304
#2 0x00007f4e52b05186 in MVM_interp_run (tc=0x563893324df0, initial_invoke=0x7f4e52c9757e <toplevel_initial_invoke>, invoke_data=0x5638933b0db8, outer_runloop=0x0) at src/core/interp.c:5754
#3 0x00007f4e52c976f8 in MVM_vm_run_file (instance=0x5638933242d0, filename=0x7ffc2083f553 "src/vm/moar/stage0/nqp.moarvm") at src/moar.c:504
#4 0x0000563893045c55 in main (argc=12, argv=0x7ffc2083eb18) at src/main.c:305
(rr) p f
$1 = (MVMFrame *) 0x7f4e51008048
(rr) p f->spesh_cand
$2 = (MVMSpeshCandidate *) 0x0
(rr) watch -l f->spesh_cand
Hardware watchpoint 1: -location f->spesh_cand
(rr) reverse-cont
Continuing.
Thread 1 received signal SIGSEGV, Segmentation fault.
deopt_frame (tc=0x563893324df0, f=0x7f4e51008048, deopt_idx=77, deopt_offset=616, deopt_target=584) at src/spesh/deopt.c:251
251 if (f->spesh_cand->body.inlines) {
(rr) reverse-cont
Continuing.
Thread 1 hit Hardware watchpoint 1: -location f->spesh_cand
Old value = (MVMSpeshCandidate *) 0x0
New value = (MVMSpeshCandidate *) 0xefefefefefefefef
0x00007f4e52811fa4 in __memset_avx2_unaligned_erms () from /usr/lib/libc.so.6
(rr) bt
#0 0x00007f4e52811fa4 in __memset_avx2_unaligned_erms () from /usr/lib/libc.so.6
#1 0x00007f4e52b641b4 in MVM_gc_collect (tc=0x563893324df0, what_to_do=0 '\000', gen=0 '\000') at src/gc/collect.c:168
#2 0x00007f4e52b57f1d in run_gc (tc=0x563893324df0, what_to_do=0 '\000') at src/gc/orchestrate.c:443
#3 0x00007f4e52b585f2 in MVM_gc_enter_from_allocator (tc=0x563893324df0) at src/gc/orchestrate.c:598
#4 0x00007f4e52b59066 in MVM_gc_allocate_nursery (tc=0x563893324df0, size=80) at src/gc/allocation.c:37
#5 0x00007f4e52b58e63 in MVM_gc_allocate (tc=0x563893324df0, size=80) at src/gc/allocation.h:18
#6 0x00007f4e52b590ca in MVM_gc_allocate_zeroed (tc=0x563893324df0, size=80) at src/gc/allocation.c:56
#7 0x00007f4e52b5944c in MVM_gc_allocate_object (tc=0x563893324df0, st=0x563893359a18) at src/gc/allocation.c:93
#8 0x00007f4e52b85afa in MVM_repr_alloc_init (tc=0x563893324df0, type=0x5638933458f8) at src/6model/reprconv.c:17
#9 0x00007f4e52c22bbd in MVM_spesh_log_create (tc=0x563893324df0, target_thread=0x563893370530) at src/spesh/log.c:17
#10 0x00007f4e52c22e6b in send_log (tc=0x563893324df0, sl=0x563895d329e0) at src/spesh/log.c:48
#11 0x00007f4e52c22ee7 in commit_entry (tc=0x563893324df0, sl=0x563895d329e0) at src/spesh/log.c:58
#12 0x00007f4e52c236e5 in MVM_spesh_log_deopt (tc=0x563893324df0, sf=0x5638933adbe0, spesh_cand=0x7f4e4c07d2f0) at src/spesh/log.c:160
#13 0x00007f4e52c21f55 in deopt_frame (tc=0x563893324df0, f=0x7f4e51008048, deopt_idx=77, deopt_offset=616, deopt_target=584) at src/spesh/deopt.c:248
#14 0x00007f4e52c2216b in MVM_spesh_deopt_one (tc=0x563893324df0, deopt_idx=77) at src/spesh/deopt.c:304
#15 0x00007f4e52b05186 in MVM_interp_run (tc=0x563893324df0, initial_invoke=0x7f4e52c9757e <toplevel_initial_invoke>, invoke_data=0x5638933b0db8, outer_runloop=0x0) at src/core/interp.c:5754
#16 0x00007f4e52c976f8 in MVM_vm_run_file (instance=0x5638933242d0, filename=0x7ffc2083f553 "src/vm/moar/stage0/nqp.moarvm") at src/moar.c:504
#17 0x0000563893045c55 in main (argc=12, argv=0x7ffc2083eb18) at src/main.c:305
(rr)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment