Skip to content

Instantly share code, notes, and snippets.

@dogbert17
Created March 1, 2022 13:12
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/802e396b7601472c935b1154bf9a6b58 to your computer and use it in GitHub Desktop.
Save dogbert17/802e396b7601472c935b1154bf9a6b58 to your computer and use it in GitHub Desktop.
[New LWP 189371]
[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 0x00007ff804065645 in VMArray_gc_mark (tc=0x20010101200, st=0x2000118b968, data=0x20020533118, worklist=0x200240aff00) at src/6model/reprs/VMArray.c:90
90 MVM_gc_worklist_add_no_include_gen2_nocheck(tc, worklist, &slots[i]);
[Current thread is 1 (Thread 0x7ff7f97fa700 (LWP 189372))]
(gdb) bt
#0 0x00007ff804065645 in VMArray_gc_mark (tc=0x20010101200, st=0x2000118b968, data=0x20020533118, worklist=0x200240aff00) at src/6model/reprs/VMArray.c:90
#1 0x00007ff80403a62b in MVM_gc_mark_collectable (tc=0x20010101200, worklist=0x200240aff00, new_addr=0x20020533100) at src/gc/collect.c:412
#2 0x00007ff8040365b4 in MVM_gc_root_add_gen2s_to_worklist (tc=0x20010101200, worklist=0x200240aff00) at src/gc/roots.c:350
#3 0x00007ff8040383b7 in MVM_gc_collect (tc=0x20010101200, what_to_do=1 '\001', gen=0 '\000') at src/gc/collect.c:136
#4 0x00007ff80402daea in run_gc (tc=0x20010101200, what_to_do=1 '\001') at src/gc/orchestrate.c:444
#5 0x00007ff80402e814 in MVM_gc_enter_from_interrupt (tc=0x20010101200) at src/gc/orchestrate.c:734
#6 0x00007ff80402ece3 in MVM_gc_allocate_nursery (tc=0x20010101200, size=144) at src/gc/allocation.c:21
#7 0x00007ff8006ae08a in ?? ()
#8 0x00007ff804648ca0 in ?? () from //home/dogbert/repos/rakudo/nqp/MoarVM/../../install/lib/libmoar.so
#9 0x000002000c681898 in ?? ()
#10 0x0000020000114000 in ?? ()
#11 0x00000000000000b8 in ?? ()
#12 0x0000020a00628b60 in ?? ()
#13 0x0000020010101200 in ?? ()
#14 0x000002000c680000 in ?? ()
#15 0x000002000c6817e8 in ?? ()
#16 0x00007ff7f97f8160 in ?? ()
#17 0x00007ff803ff0180 in allocate_record (tc=0x7ff804648ce0 <obj_obj_callsite>, kind=248 '\370', size=140703196598869) at src/core/callstack.c:93
#18 0x00007ff8041c5ecd in MVM_jit_code_enter (tc=0x20010101200, code=0x20004a66380, cu=0x20000e07f00) at src/jit/interface.c:12
#19 0x00007ff803fd694b in MVM_interp_run (tc=0x20010101200, initial_invoke=0x7ff803ff8e6d <thread_initial_invoke>, invoke_data=0x200100e38a0, outer_runloop=0x0) at src/core/interp.c:6281
#20 0x00007ff803ff9006 in start_thread (data=0x200100e38a0) at src/core/threads.c:101
#21 0x00007ff803a15609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#22 0x00007ff803ca0293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
(gdb) info threads
Id Target Id Frame
* 1 Thread 0x7ff7f97fa700 (LWP 189372) 0x00007ff804065645 in VMArray_gc_mark (tc=0x20010101200, st=0x2000118b968, data=0x20020533118, worklist=0x200240aff00) at src/6model/reprs/VMArray.c:90
2 Thread 0x7ff803a05440 (LWP 189364) futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x20000185420) at ../sysdeps/nptl/futex-internal.h:183
3 Thread 0x7ff803a03700 (LWP 189365) futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x20000185094) at ../sysdeps/nptl/futex-internal.h:183
4 Thread 0x7ff800ece700 (LWP 189366) MVM_gc_mark_collectable (tc=0x200085f3880, worklist=0x2000c8e7ca0, new_addr=0x2000c485e90) at src/gc/collect.c:412
5 Thread 0x7ff7faffd700 (LWP 189369) 0x00007ff803a19729 in __pthread_mutex_unlock_usercnt (mutex=mutex@entry=0x20000020088, decr=decr@entry=0) at pthread_mutex_unlock.c:58
6 Thread 0x7ff7fbfff700 (LWP 189367) 0x00007ff803c5e3bf in __GI___clock_nanosleep (clock_id=clock_id@entry=0, flags=flags@entry=0, req=0x7ff7fbffd1f0, rem=0x7ff7fbffd1f0)
at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:78
7 Thread 0x7ff7fa7fc700 (LWP 189370) __lll_lock_wait (futex=futex@entry=0x20000020088, private=0) at lowlevellock.c:52
8 Thread 0x7ff7f8ff9700 (LWP 189373) 0x00007ff803f88b69 in MVM_callsite_mark (tc=0x20010101580, cs=0x20000ccfe80, worklist=0x200280a9500, snapshot=0x0) at src/core/callsite.c:127
9 Thread 0x7ff7fb7fe700 (LWP 189368) futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x20000020118) at ../sysdeps/nptl/futex-internal.h:183
10 Thread 0x7ff7f9ffb700 (LWP 189371) __lll_lock_wait (futex=futex@entry=0x20000020088, private=0) at lowlevellock.c:52
(gdb) t 8
[Switching to thread 8 (Thread 0x7ff7f8ff9700 (LWP 189373))]
#0 0x00007ff803f88b69 in MVM_callsite_mark (tc=0x20010101580, cs=0x20000ccfe80, worklist=0x200280a9500, snapshot=0x0) at src/core/callsite.c:127
127 MVM_gc_worklist_add(tc, worklist, &(cs->arg_names[i]));
(gdb) bt
#0 0x00007ff803f88b69 in MVM_callsite_mark (tc=0x20010101580, cs=0x20000ccfe80, worklist=0x200280a9500, snapshot=0x0) at src/core/callsite.c:127
#1 0x00007ff803f89539 in MVM_callsite_mark_interns (tc=0x20010101580, worklist=0x200280a9500, snapshot=0x0) at src/core/callsite.c:319
#2 0x00007ff8040336d8 in MVM_gc_root_add_instance_roots_to_worklist (tc=0x20010101580, worklist=0x200280a9500, snapshot=0x0) at src/gc/roots.c:141
#3 0x00007ff804038326 in MVM_gc_collect (tc=0x20010101580, what_to_do=0 '\000', gen=0 '\000') at src/gc/collect.c:115
#4 0x00007ff80402daea in run_gc (tc=0x20010101580, what_to_do=0 '\000') at src/gc/orchestrate.c:444
#5 0x00007ff80402e1c4 in MVM_gc_enter_from_allocator (tc=0x20010101580) at src/gc/orchestrate.c:599
#6 0x00007ff80402ed21 in MVM_gc_allocate_nursery (tc=0x20010101580, size=168) at src/gc/allocation.c:37
#7 0x00007ff80402eaef in MVM_gc_allocate (tc=0x20010101580, size=168) at src/gc/allocation.h:15
#8 0x00007ff80402eb14 in MVM_gc_allocate_zeroed (tc=0x20010101580, size=168) at src/gc/allocation.h:21
#9 0x00007ff80402f292 in MVM_gc_allocate_frame (tc=0x20010101580) at src/gc/allocation.c:99
#10 0x00007ff803ff0556 in MVM_callstack_allocate_heap_frame (tc=0x20010101580, work_size=632) at src/core/callstack.c:209
#11 0x00007ff803fe9c6d in allocate_specialized_frame (tc=0x20010101580, static_frame=0x20002941900, spesh_cand=0x200042e7080, heap=1) at src/core/frame.c:303
#12 0x00007ff803fea78e in MVM_frame_dispatch (tc=0x20010101580, code=0x200282105a0, args=..., spesh_cand=0) at src/core/frame.c:527
#13 0x00007ff800688b91 in ?? ()
#14 0x00007ff804648ca0 in ?? () from //home/dogbert/repos/rakudo/nqp/MoarVM/../../install/lib/libmoar.so
#15 0x000002000c6b1438 in ?? ()
#16 0x00007ff800689019 in ?? ()
#17 0x00000200283581b0 in ?? ()
#18 0x000002000c0c7570 in ?? ()
#19 0x0000020010101580 in ?? ()
#20 0x00007ff7f8ff7160 in ?? ()
#21 0x00007ff80407129f in set_obj_at_offset (tc=0x7810101580, root=0x795, data=0x20010101580, offset=2199225398664, value=0x7ff803ff1cfd <MVM_callstack_unwind_frame+750>) at src/6model/reprs/P6opaque.c:21
#22 0x00007ff8041c5ecd in MVM_jit_code_enter (tc=0x20010101580, code=0x20004a65d00, cu=0x20000e07f00) at src/jit/interface.c:12
#23 0x00007ff803fd694b in MVM_interp_run (tc=0x20010101580, initial_invoke=0x7ff803ff8e6d <thread_initial_invoke>, invoke_data=0x200100e3a20, outer_runloop=0x0) at src/core/interp.c:6281
#24 0x00007ff803ff9006 in start_thread (data=0x200100e3a20) at src/core/threads.c:101
#25 0x00007ff803a15609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#26 0x00007ff803ca0293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment