Skip to content

Instantly share code, notes, and snippets.

@MasterDuke17
Last active July 13, 2021 15:38
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/851f5be93437c0bab531389ae07824bc to your computer and use it in GitHub Desktop.
Save MasterDuke17/851f5be93437c0bab531389ae07824bc to your computer and use it in GitHub Desktop.
(rr) continue
Continuing.
Thread 1 hit Hardware watchpoint 1: -location tc->cur_frame
Old value = (MVMFrame *) 0x0
New value = (MVMFrame *) 0x20000
read_op (val=0x7ffc7876cab0) at src/core/validation.c:171
171 val->cur_info = info;
(rr) bt
#0 read_op (val=0x7ffc7876cab0) at src/core/validation.c:171
#1 MVM_validate_static_frame (tc=tc@entry=0x56443649e100, static_frame=0x564436a5bf30) at src/core/validation.c:703
#2 0x00007f6f21da1390 in prepare_and_verify_static_frame (static_frame=<optimized out>, tc=0x56443649e100) at src/core/frame.c:56
#3 instrumentation_level_barrier (tc=tc@entry=0x56443649e100, static_frame=<optimized out>) at src/core/frame.c:102
#4 0x00007f6f21da2602 in MVM_frame_invoke (tc=0x56443649e100, static_frame=<optimized out>, callsite=0x7f6f22453660 <null_args_callsite>, args=0x564436c42370, outer=<optimized out>, code_ref=<optimized out>,
spesh_cand=-1) at src/core/frame.c:408
#5 0x00007f6f21df1c64 in invoke_handler (tc=<optimized out>, invokee=<optimized out>, callsite=<optimized out>, args=<optimized out>) at src/6model/reprs/MVMCode.c:10
#6 0x00007f6f21d8c855 in MVM_interp_run (tc=0x255, tc@entry=0x56443649e100, initial_invoke=0x20, initial_invoke@entry=0x7f6f21e92590 <toplevel_initial_invoke>, invoke_data=0x20,
invoke_data@entry=0x7f6f21e92590 <toplevel_initial_invoke>, outer_runloop=0x564436c3df90, outer_runloop@entry=0x0) at src/core/interp.c:1105
#7 0x00007f6f21e9370e in run_deserialization_frame (cu=0x564436539f40, cu=0x564436539f40, tc=0x56443649e100) at src/moar.c:483
#8 MVM_vm_run_file (instance=instance@entry=0x56443649d5c0, filename=filename@entry=0x56443649d550 "/home/dan/Source/perl6/install/share/perl6/runtime/perl6.moarvm") at src/moar.c:501
#9 0x0000564434fe49e9 in main (argc=<optimized out>, argv=0x7ffc7876d318) at src/vm/moar/runner/main.c:472
(rr) list
166 MVM_string_print(val->tc, val->cu->body.filename);
167 printf(" %u %s %.2s\n", val->cur_instr, info->name, info->mark);
168 #endif
169
170 val->labels[pos] |= MVM_BC_op_boundary;
171 val->cur_info = info;
172 val->cur_mark = MVM_op_get_mark(opcode);
173 val->cur_op += 2;
174 val->cur_instr += 1;
175 }
(rr) p *val
$8 = {tc = 0x56443649e100, cu = 0x56443653ac40, frame = 0x564436a5bf30, loc_count = 51, loc_types = 0x564436c3df90, bc_size = 2002, bc_start = 0x7f6f1fd9bc8c "\237", bc_end = 0x7f6f1fd9c45e "\214",
src_cur_op = 0x7f6f1fd9c000 "\020", src_bc_end = 0x7f6f1fd9c45e "\214", labels = 0x564436c4d0d0 "\002", cur_op = 0x7f6f1fd9bffe "U\002\020", cur_info = 0x7f6f222b8b20 <MVM_op_infos+2016>,
cur_mark = 0x7f6f21eff711 " ", cur_instr = 135, cur_call = 0x7f6f22383800 <inv_arg_callsite>, cur_arg = 1, acceptable_max_arity = 65535, checkarity_seen = 1, expected_named_arg = 0 '\000',
remaining_args = 0, remaining_positionals = 0, remaining_jumplabels = 0, reg_type_var = 0}
(rr) p info
$9 = (const MVMOpInfo *) 0x7f6f222bcde0 <MVM_op_infos+19104>
(rr) p *info
$10 = {opcode = 597, name = 0x7f6f21eecb10 "const_i64_16", num_operands = 2, pure = 1 '\001', deopt_point = 0 '\000', may_cause_deopt = 0 '\000', logged = 0 '\000', no_inline = 0 '\000', jittivity = 0 '\000',
uses_hll = 0 '\000', specializable = 0 '\000', operands = "\"\020\000\000\000\000\000"}
(rr) p *tc
Attempt to take contents of a non-pointer value.
(rr) f 1
#1 MVM_validate_static_frame (tc=tc@entry=0x56443649e100, static_frame=0x564436a5bf30) at src/core/validation.c:703
703 read_op(val);
(rr) p *tc
$11 = {thread_id = 1, thread_obj = 0x56443652eb00, instance = 0x56443649d5c0, num_locks = 1, nursery_fromspace = 0x0, nursery_tospace = 0x7f6f212fc010, nursery_alloc = 0x7f6f213abf00,
nursery_alloc_limit = 0x7f6f216fc010, gc_status = 0, gen2 = 0x56443649e700, nursery_fromspace_size = 0, nursery_tospace_size = 4194304, allocate_in_gen2 = 0, gc_promoted_bytes = 0, num_temproots = 5,
mark_temproots = 0, alloc_temproots = 16, temproots = 0x56443649e460, num_gen2roots = 1700, alloc_gen2roots = 2048, gen2roots = 0x56443693fca0, num_finalize = 0, alloc_finalize = 0, finalize = 0x0,
num_finalizing = 0, alloc_finalizing = 0, finalizing = 0x0, gc_in_tray = 0x0, gc_work = 0x0, gc_work_size = 0, gc_work_count = 0, thread_fsa = 0x56443649ee80, interp_cur_op = 0x7ffc7876ce70,
interp_bytecode_start = 0x7ffc7876ce78, interp_reg_base = 0x7ffc7876ce80, interp_cu = 0x7ffc7876ce88, interp_jump = {{__jmpbuf = {94850968576256, 4158193708298740949, 1, 94850968573376, 0, 94850968573264,
7693348125083772117, 7774039899967792341}, __mask_was_saved = 0, __saved_mask = {__val = {0 <repeats 16 times>}}}}, cur_frame = 0x7f6f212db030, thread_entry_frame = 0x0, stack_first = 0x7f6f212db010,
stack_current = 0x7f6f212db010, active_handlers = 0x0, last_handler_result = 0x0, last_payload = 0x5644365088b0, current_frame_nr = 4029, next_frame_nr = 4030, jit_return_address = 0x0,
spesh_log = 0x56443652eba0, spesh_log_quota = 3, spesh_sim_stack = 0x0, spesh_active_graph = 0x0, num_compunit_extra_logs = 0, spesh_cid = 0, osr_hunt_frame_nr = 3791, osr_hunt_num_spesh_candidates = 0,
plugin_guards = 0x0, plugin_guard_args = 0x564436502570, num_plugin_guards = 0, temp_plugin_guards = 0x0, temp_plugin_guard_args = 0x0, temp_num_plugin_guards = 0, ex_release_mutex = 0x0,
sc_wb_disable_depth = 0, compiling_scs = 0x0, cur_dispatcher = 0x0, cur_dispatcher_for = 0x0, next_dispatcher = 0x0, next_dispatcher_for = 0x0, native_callback_cache = {table = 0x0}, rand_state = {
231586323337435751, 13975546485959068292}, temp_bigints = {0x56443649f4b0, 0x56443649f5e0, 0x56443649f710}, nfa_done = 0x0, nfa_curst = 0x0, nfa_nextst = 0x0, nfa_alloc_states = 0, nfa_fates = 0x0,
nfa_fates_len = 0, nfa_longlit = 0x0, nfa_longlit_len = 0, multi_dim_indices = 0x0, num_multi_dim_indices = 0, prof_data = 0x0, step_mode = MVMDebugSteppingMode_NONE, step_mode_frame = 0x0,
step_mode_file_idx = 0, step_mode_line_no = 0, step_message_id = 0, debugserver_can_invoke_here = 0 '\000', cur_file_idx = 0, cur_line_no = 0, nested_interpreter = 0}
(rr) continue
Continuing.
warning: Corrupted shared library list: 0x564436d52ef0 != 0x7f6f224fea48
Thread 1 hit Hardware watchpoint 1: -location tc->cur_frame
Old value = (MVMFrame *) 0x20000
New value = (MVMFrame *) 0x0
__memset_avx2_unaligned_erms () at ../sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:207
207 ../sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: No such file or directory.
(rr) continue
Continuing.
Thread 1 received signal SIGSEGV, Segmentation fault.
MVM_interp_run (tc=0x564436c4d290, initial_invoke=0x0, initial_invoke@entry=0x7f6f21e92590 <toplevel_initial_invoke>, invoke_data=0x0, invoke_data@entry=0x7f6f21e92590 <toplevel_initial_invoke>,
outer_runloop=outer_runloop@entry=0x0) at src/core/interp.c:6394
6394 found = GET_LEX(cur_op, 2, f);
(rr) p *tc
$14 = {thread_id = 495949928, thread_obj = 0x564438776920, instance = 0x7f6f1d6474c0, num_locks = 0, nursery_fromspace = 0x0, nursery_tospace = 0x7f6f1d647500, nursery_alloc = 0x0, nursery_alloc_limit = 0x0,
gc_status = 0, gen2 = 0x0, nursery_fromspace_size = 0, nursery_tospace_size = 0, allocate_in_gen2 = 495949856, gc_promoted_bytes = 32623, num_temproots = 0, mark_temproots = 0, alloc_temproots = 0,
temproots = 0x564436502570, num_gen2roots = 0, alloc_gen2roots = 0, gen2roots = 0x0, num_finalize = 0, alloc_finalize = 0, finalize = 0x7f6f1d647538, num_finalizing = 0, alloc_finalizing = 0,
finalizing = 0x0, gc_in_tray = 0x0, gc_work = 0x0, gc_work_size = 0, gc_work_count = 0, thread_fsa = 0x0, interp_cur_op = 0x0, interp_bytecode_start = 0x0, interp_reg_base = 0x0, interp_cu = 0x0,
interp_jump = {{__jmpbuf = {0, 0, 0, 0, 0, 0, 0, 0}, __mask_was_saved = 0, __saved_mask = {__val = {0 <repeats 16 times>}}}}, cur_frame = 0x0, thread_entry_frame = 0x0, stack_first = 0x0,
stack_current = 0x0, active_handlers = 0x0, last_handler_result = 0x0, last_payload = 0x0, current_frame_nr = 0, next_frame_nr = 0, jit_return_address = 0x0, spesh_log = 0x0, spesh_log_quota = 0,
spesh_sim_stack = 0x0, spesh_active_graph = 0x0, num_compunit_extra_logs = 0, spesh_cid = 0, osr_hunt_frame_nr = 0, osr_hunt_num_spesh_candidates = 0, plugin_guards = 0x0, plugin_guard_args = 0x0,
num_plugin_guards = 0, temp_plugin_guards = 0x0, temp_plugin_guard_args = 0x0, temp_num_plugin_guards = 0, ex_release_mutex = 0x0, sc_wb_disable_depth = 0, compiling_scs = 0x0, cur_dispatcher = 0x0,
cur_dispatcher_for = 0x0, next_dispatcher = 0x0, next_dispatcher_for = 0x0, native_callback_cache = {table = 0x0}, rand_state = {0, 0}, temp_bigints = {0x0, 0x0, 0x0}, nfa_done = 0x0, nfa_curst = 0x0,
nfa_nextst = 0x0, nfa_alloc_states = 2, nfa_fates = 0x200000002, nfa_fates_len = 131072, nfa_longlit = 0x200000002, nfa_longlit_len = 8589934592, multi_dim_indices = 0x20000, num_multi_dim_indices = 2,
prof_data = 0x200000002, step_mode = 131072, step_mode_frame = 0x200000002, step_mode_file_idx = 0, step_mode_line_no = 2, step_message_id = 131072, debugserver_can_invoke_here = 2 '\002', cur_file_idx = 0,
cur_line_no = 2, nested_interpreter = 2}
(rr) watch tc
Watchpoint 2: tc
(rr) reverse-cont
Continuing.
Thread 1 received signal SIGSEGV, Segmentation fault.
MVM_interp_run (tc=0x564436c4d290, initial_invoke=0x0, initial_invoke@entry=0x7f6f21e92590 <toplevel_initial_invoke>, invoke_data=0x0, invoke_data@entry=0x7f6f21e92590 <toplevel_initial_invoke>,
outer_runloop=outer_runloop@entry=0x0) at src/core/interp.c:6394
6394 found = GET_LEX(cur_op, 2, f);
(rr) reverse-cont
Continuing.
Thread 1 hit Watchpoint 2: tc
Old value = (MVMThreadContext *) 0x564436c4d290
New value = (MVMThreadContext *) 0x7f6f22378500 <MVMCode_this_repr>
0x00007f6f21d83e70 in MVM_interp_run (tc=0x7f6f22378500 <MVMCode_this_repr>, initial_invoke=0x5644385ad2d8, initial_invoke@entry=0x7f6f21e92590 <toplevel_initial_invoke>, invoke_data=0x5644385ad2d8,
invoke_data@entry=0x7f6f21e92590 <toplevel_initial_invoke>, outer_runloop=0x7f6f1d647538, outer_runloop@entry=0x0) at src/core/interp.c:6384
6384 MVMFrame *f = ((MVMCode *)GET_REG(cur_op, 6).o)->body.outer;
(rr)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment