Skip to content

Instantly share code, notes, and snippets.

@MasterDuke17
Created October 11, 2021 09:27
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/1c009d5623f809e392c46840b922c9d2 to your computer and use it in GitHub Desktop.
Save MasterDuke17/1c009d5623f809e392c46840b922c9d2 to your computer and use it in GitHub Desktop.
(rr) continue
Continuing.
[New Thread 69902.69903]
Thread 1 received signal SIGSEGV, Segmentation fault.
MVM_frame_dispatch (tc=0x558bdb6b2e50, code=0x558bdbeba148, args=..., spesh_cand=0x558bdb7937f0) at src/core/frame.c:578
578 frame->jit_entry_label = spesh_cand->body.jitcode->labels[0];
(rr) bt
#0 MVM_frame_dispatch (tc=0x558bdb6b2e50, code=0x558bdbeba148, args=..., spesh_cand=0x558bdb7937f0) at src/core/frame.c:578
#1 0x00007fb41750a470 in MVM_interp_run (tc=0x558bdb6b2e50, initial_invoke=0x7fb41767e83c <toplevel_initial_invoke>, invoke_data=0x558bdb79aef0, outer_runloop=0x0) at src/core/interp.c:6465
#2 0x00007fb41767e996 in MVM_vm_run_file (instance=0x558bdb6b22d0, filename=0x7ffcabdd6595 "src/vm/moar/stage0/nqp.moarvm") at src/moar.c:505
#3 0x0000558bdb1e8c97 in main (argc=10, argv=0x7ffcabdd5d78) at src/main.c:307
(rr) p *spesh_cand
$1 = {common = {header = {sc_forward_u = {forwarder = 0x0, sc = {sc_idx = 0, idx = 0}, st = 0x0}, owner = 1, flags1 = 0 '\000', flags2 = 2 '\002', size = 256}, st = 0x558bdb71b520}, body = {cs = 0x7fb415d7dd8a, type_tuple = 0x558bdb76e950,
discarded = 0 '\000', bytecode_size = 21899, bytecode = 0x300000016 <error: Cannot access memory at address 0x300000016>, handlers = 0x558bdc0e4840, spesh_slots = 0x0, num_spesh_slots = 0, num_deopts = 0, deopts = 0x0,
deopt_count = 3691923552, deopt_named_used_bit_field = 94059180725120, deopt_pea = {materialize_info = 0x101000000, materialize_info_num = 1, materialize_info_alloc = 94059181466672, deopt_point = 0xe800000000,
deopt_point_num = 4294967296, deopt_point_alloc = 94059180720080}, num_inlines = 170, inlines = 0x0, resume_inits = 0x100000000, num_resume_inits = 3682126496, local_types = 0x558bdb75de30, lexical_types = 0x558bdb7903f0,
num_locals = 28968, num_lexicals = 56186, work_size = 21899, env_size = 366562696, num_handlers = 32692, jitcode = 0x7fb415d7dd8a, deopt_usage_info = 0x7fb415cdd004, deopt_synths = 0x0, num_deopt_synths = 1}}
(rr) f 1
#1 0x00007fb41750a470 in MVM_interp_run (tc=0x558bdb6b2e50, initial_invoke=0x7fb41767e83c <toplevel_initial_invoke>, invoke_data=0x558bdb79aef0, outer_runloop=0x0) at src/core/interp.c:6465
6465 MVM_frame_dispatch(tc, code, args, spesh_cand);
(rr) p *spesh_cand
$2 = {common = {header = {sc_forward_u = {forwarder = 0x0, sc = {sc_idx = 0, idx = 0}, st = 0x0}, owner = 1, flags1 = 0 '\000', flags2 = 2 '\002', size = 256}, st = 0x558bdb71b520}, body = {cs = 0x7fb415d7dd8a, type_tuple = 0x558bdb76e950,
discarded = 0 '\000', bytecode_size = 21899, bytecode = 0x300000016 <error: Cannot access memory at address 0x300000016>, handlers = 0x558bdc0e4840, spesh_slots = 0x0, num_spesh_slots = 0, num_deopts = 0, deopts = 0x0,
deopt_count = 3691923552, deopt_named_used_bit_field = 94059180725120, deopt_pea = {materialize_info = 0x101000000, materialize_info_num = 1, materialize_info_alloc = 94059181466672, deopt_point = 0xe800000000,
deopt_point_num = 4294967296, deopt_point_alloc = 94059180720080}, num_inlines = 170, inlines = 0x0, resume_inits = 0x100000000, num_resume_inits = 3682126496, local_types = 0x558bdb75de30, lexical_types = 0x558bdb7903f0,
num_locals = 28968, num_lexicals = 56186, work_size = 21899, env_size = 366562696, num_handlers = 32692, jitcode = 0x7fb415d7dd8a, deopt_usage_info = 0x7fb415cdd004, deopt_synths = 0x0, num_deopt_synths = 1}}
(rr) p idx
$3 = 33
(rr) watch -l (MVMSpeshCandidate *)tc->cur_frame->effective_spesh_slots[33]
Hardware watchpoint 2: -location (MVMSpeshCandidate *)tc->cur_frame->effective_spesh_slots[33]
(rr) reverse-continue
Continuing.
Thread 1 received signal SIGSEGV, Segmentation fault.
MVM_frame_dispatch (tc=0x558bdb6b2e50, code=0x558bdbeba148, args=..., spesh_cand=0x558bdb7937f0) at src/core/frame.c:578
578 frame->jit_entry_label = spesh_cand->body.jitcode->labels[0];
(rr) reverse-continue
Continuing.
[Switching to Thread 69902.69903]
Thread 2 hit Hardware watchpoint 2: -location (MVMSpeshCandidate *)tc->cur_frame->effective_spesh_slots[33]
Old value = (MVMSpeshCandidate *) 0x558bdb7937f0
New value = (MVMSpeshCandidate *) 0xc
0x00007fb4175ff999 in MVM_spesh_add_spesh_slot (tc=0x558bdb76d1f0, g=0x7fb410083490, c=0x558bdb7937f0) at src/spesh/optimize.c:126
126 g->spesh_slots[g->num_spesh_slots] = c;
(rr) bt
#0 0x00007fb4175ff999 in MVM_spesh_add_spesh_slot (tc=0x558bdb76d1f0, g=0x7fb410083490, c=0x558bdb7937f0) at src/spesh/optimize.c:126
#1 0x00007fb4175ff8e1 in MVM_spesh_add_spesh_slot_try_reuse (tc=0x558bdb76d1f0, g=0x7fb410083490, c=0x558bdb7937f0) at src/spesh/optimize.c:113
#2 0x00007fb417602c65 in insert_static_frame_guard (tc=0x558bdb76d1f0, g=0x7fb410083490, bb=0x7fb4101deac0, ins=0x7fb4101e5a62, coderef_reg=..., target_sf=0x558bdb7937f0, predeopt_index=34) at src/spesh/optimize.c:1316
#3 0x00007fb417603ded in optimize_runbytecode (tc=0x558bdb76d1f0, g=0x7fb410083490, bb=0x7fb4101deac0, ins=0x7fb4101e5a62, p=0x7fb4100c8fe0) at src/spesh/optimize.c:1595
#4 0x00007fb417605a70 in optimize_bb_switch (tc=0x558bdb76d1f0, g=0x7fb410083490, bb=0x7fb4101deac0, p=0x7fb4100c8fe0) at src/spesh/optimize.c:2279
#5 0x00007fb417605c81 in optimize_bb (tc=0x558bdb76d1f0, g=0x7fb410083490, bb=0x7fb4101deac0, p=0x7fb4100c8fe0) at src/spesh/optimize.c:2339
#6 0x00007fb417605cbb in optimize_bb (tc=0x558bdb76d1f0, g=0x7fb410083490, bb=0x7fb4101de940, p=0x7fb4100c8fe0) at src/spesh/optimize.c:2343
#7 0x00007fb417605cbb in optimize_bb (tc=0x558bdb76d1f0, g=0x7fb410083490, bb=0x7fb4101de220, p=0x7fb4100c8fe0) at src/spesh/optimize.c:2343
#8 0x00007fb4176071d4 in MVM_spesh_optimize (tc=0x558bdb76d1f0, g=0x7fb410083490, p=0x7fb4100c8fe0) at src/spesh/optimize.c:2729
#9 0x00007fb41761f057 in MVM_spesh_candidate_add (tc=0x558bdb76d1f0, p=0x7fb4100c8fe0) at src/6model/reprs/MVMSpeshCandidate.c:258
#10 0x00007fb417611e10 in worker (tc=0x558bdb76d1f0, arg_info=...) at src/spesh/worker.c:29
#11 0x00007fb417525f21 in thread_initial_invoke (tc=0x558bdb76d1f0, data=0x558bdb76e7e0) at src/core/threads.c:68
#12 0x00007fb4174da893 in MVM_interp_run (tc=0x558bdb76d1f0, initial_invoke=0x7fb417525e60 <thread_initial_invoke>, invoke_data=0x558bdb76e7e0, outer_runloop=0x0) at src/core/interp.c:180
#13 0x00007fb417525fee in start_thread (data=0x558bdb76e7e0) at src/core/threads.c:101
#14 0x00007fb4170a8259 in start_thread () from /usr/lib/libpthread.so.0
#15 0x00007fb4171c55e3 in clone () from /usr/lib/libc.so.6
(rr) p *(MVMSpeshCandidate *)c
$4 = {common = {header = {sc_forward_u = {forwarder = 0x0, sc = {sc_idx = 0, idx = 0}, st = 0x0}, owner = 1, flags1 = 0 '\000', flags2 = 2 '\002', size = 256}, st = 0x558bdb71b520}, body = {cs = 0x7fb415d7dd8a, type_tuple = 0x558bdb76e950,
discarded = 0 '\000', bytecode_size = 21899, bytecode = 0x300000016 <error: Cannot access memory at address 0x300000016>, handlers = 0x558bdc0e4840, spesh_slots = 0x0, num_spesh_slots = 0, num_deopts = 0, deopts = 0x0,
deopt_count = 3691923552, deopt_named_used_bit_field = 94059180725120, deopt_pea = {materialize_info = 0x101000000, materialize_info_num = 1, materialize_info_alloc = 94059181466672, deopt_point = 0xe800000000,
deopt_point_num = 4294967296, deopt_point_alloc = 94059180720080}, num_inlines = 170, inlines = 0x0, resume_inits = 0x100000000, num_resume_inits = 3682126496, local_types = 0x558bdb75de30, lexical_types = 0x558bdb7903f0,
num_locals = 28968, num_lexicals = 56186, work_size = 21899, env_size = 366562696, num_handlers = 32692, jitcode = 0x7fb415d7dd8a, deopt_usage_info = 0x7fb415cdd004, deopt_synths = 0x0, num_deopt_synths = 1}}
(rr) p g->num_spesh_slots
$5 = 33
(rr) p *(MVMStaticFrame *)c
$6 = {common = {header = {sc_forward_u = {forwarder = 0x0, sc = {sc_idx = 0, idx = 0}, st = 0x0}, owner = 1, flags1 = 0 '\000', flags2 = 2 '\002', size = 256}, st = 0x558bdb71b520}, body = {bytecode = 0x7fb415d7dd8a "\214",
cu = 0x558bdb76e950, inline_cache = {entries = 0x558bdc0e1400, num_entries = 22, bit_shift = 3}, local_types = 0x558bdc0e4840, lexical_types = 0x0, lexical_names = {table = 0x0}, lexical_names_list = 0x0, static_env = 0x558bdc0e4860,
static_env_flags = 0x558bdc0e1380 "", has_state_vars = 0 '\000', allocate_on_heap = 0 '\000', no_inline = 0 '\000', specializable = 1 '\001', instrumentation_level = 1, validated = 1 '\001', spesh = 0x558bdc196430, env_size = 0,
work_size = 232, num_lexicals = 0, num_annotations = 1, work_initial = 0x558bdc0dffd0, bytecode_size = 170, num_locals = 8, handlers = 0x0, num_handlers = 0, fully_deserialized = 1 '\001', is_thunk = 0 '\000',
has_exit_handler = 0 '\000', cuuid = 0x558bdb78caa0, name = 0x558bdb75de30, outer = 0x558bdb7903f0, static_code = 0x558bdb7a7128, annotations_data = 0x7fb415d94d88 "\024", orig_bytecode = 0x7fb415d7dd8a "\214",
frame_data_pos = 0x7fb415cdd004 "\252=\a", frame_static_lex_pos = 0x0, code_obj_sc_dep_idx = 1, code_obj_sc_idx = 306, instrumentation = 0x0}}
(rr)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment