Skip to content

Instantly share code, notes, and snippets.

@dogbert17
Created July 26, 2021 14:24
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 dogbert17/0825eaf6b8b4feb58b27650f8604eb65 to your computer and use it in GitHub Desktop.
Save dogbert17/0825eaf6b8b4feb58b27650f8604eb65 to your computer and use it in GitHub Desktop.
Sudden SEGV on new-disp
dogbert@dogbert-VirtualBox:~/repos/rakudo$ gdb install/bin/moar core.moar.1000.f4e1afea0509471c9f4e9e8a321dd81a.1018600.1627308985000000000000
GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 9.2
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-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 install/bin/moar...
[New LWP 1018600]
[New LWP 1018601]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/home/dogbert/repos/rakudo/nqp/MoarVM/../../install/bin/moar --execname=/home/d'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f0c536eb941 in MVM_gc_root_add_frame_registers_to_worklist (tc=tc@entry=0x559f1353ae40, worklist=worklist@entry=0x559f173ea160, frame=frame@entry=0x7f0c530e6808) at src/gc/roots.c:472
472 count = spesh_cand->body.num_locals;
[Current thread is 1 (Thread 0x7f0c530fe440 (LWP 1018600))]
(gdb) bt
#0 0x00007f0c536eb941 in MVM_gc_root_add_frame_registers_to_worklist (tc=tc@entry=0x559f1353ae40, worklist=worklist@entry=0x559f173ea160, frame=frame@entry=0x7f0c530e6808) at src/gc/roots.c:472
#1 0x00007f0c536ebef3 in MVM_gc_root_add_frame_roots_to_worklist (tc=tc@entry=0x559f1353ae40, worklist=worklist@entry=0x559f173ea160, cur_frame=cur_frame@entry=0x7f0c530e6808) at src/gc/roots.c:452
#2 0x00007f0c536c3ae8 in mark (tc=tc@entry=0x559f1353ae40, from_record=<optimized out>, worklist=worklist@entry=0x559f173ea160, snapshot=snapshot@entry=0x0) at src/core/callstack.c:524
#3 0x00007f0c536c4e09 in MVM_callstack_mark_current_thread (tc=tc@entry=0x559f1353ae40, worklist=worklist@entry=0x559f173ea160, snapshot=snapshot@entry=0x0) at src/core/callstack.c:609
#4 0x00007f0c536e9d30 in MVM_gc_root_add_tc_roots_to_worklist (tc=tc@entry=0x559f1353ae40, worklist=worklist@entry=0x559f173ea160, snapshot=snapshot@entry=0x0) at src/gc/roots.c:173
#5 0x00007f0c536edae2 in MVM_gc_collect (tc=tc@entry=0x559f1353ae40, what_to_do=what_to_do@entry=0 '\000', gen=<optimized out>) at src/gc/collect.c:121
#6 0x00007f0c536e676a in run_gc (tc=tc@entry=0x559f1353ae40, what_to_do=what_to_do@entry=0 '\000') at src/gc/orchestrate.c:443
#7 0x00007f0c536e77cf in MVM_gc_enter_from_allocator (tc=tc@entry=0x559f1353ae40) at src/gc/orchestrate.c:598
#8 0x00007f0c536e7af1 in MVM_gc_allocate_nursery (tc=0x559f1353ae40, size=80) at src/gc/allocation.c:37
#9 0x00007f0c536e7e46 in MVM_gc_allocate_object (tc=0x559f1353ae40, st=<optimized out>) at src/gc/allocation.c:93
#10 0x00007f0c53702de7 in MVM_repr_alloc_init (tc=tc@entry=0x559f1353ae40, type=<optimized out>) at src/6model/reprconv.c:17
#11 0x00007f0c53770087 in MVM_spesh_log_create (tc=tc@entry=0x559f1353ae40, target_thread=<optimized out>) at src/spesh/log.c:17
#12 0x00007f0c53770301 in send_log (tc=0x559f1353ae40, sl=<optimized out>) at src/spesh/log.c:48
#13 0x00007f0c5377038d in commit_entry (tc=tc@entry=0x559f1353ae40, sl=sl@entry=0x559f16894fb0) at src/spesh/log.c:58
#14 0x00007f0c53770793 in MVM_spesh_log_entry (tc=tc@entry=0x559f1353ae40, cid=cid@entry=72437, sf=<optimized out>, args=...) at src/spesh/log.c:121
#15 0x00007f0c536bfb98 in MVM_frame_dispatch (tc=tc@entry=0x559f1353ae40, code=<optimized out>, args=..., spesh_cand=<optimized out>, spesh_cand@entry=-1) at src/core/frame.c:670
#16 0x00007f0c53755f96 in MVM_disp_program_run (tc=tc@entry=0x559f1353ae40, dp=0x559f174433e0, record=record@entry=0x7f0c530e66a0) at src/disp/program.c:2675
#17 0x00007f0c5374f26f in dispatch_polymorphic_flattening (tc=0x559f1353ae40, entry_ptr=0x559f17352978, seen=0x559f13df2040, id=<optimized out>, callsite=<optimized out>, arg_indices=<optimized out>,
source=0x559f1361ae00, sf=<optimized out>, bytecode_offset=84) at src/disp/inline_cache.c:219
#18 0x00007f0c5369de1b in MVM_interp_run (tc=0x559f1353ae40, initial_invoke=0x559f173ea160, invoke_data=0x559f173ea160, outer_runloop=0x1500001) at src/core/interp.c:5538
#19 0x0000559f12b267f0 in main (argc=7, argv=0x7ffda8777928) at src/main.c:305
(gdb) info threads
Id Target Id Frame
* 1 Thread 0x7f0c530fe440 (LWP 1018600) 0x00007f0c536eb941 in MVM_gc_root_add_frame_registers_to_worklist (tc=tc@entry=0x559f1353ae40, worklist=worklist@entry=0x559f173ea160, frame=frame@entry=0x7f0c530e6808)
at src/gc/roots.c:472
2 Thread 0x7f0c530ba700 (LWP 1018601) futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x559f1353a420) at ../sysdeps/nptl/futex-internal.h:183
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment