Skip to content

Instantly share code, notes, and snippets.

@dogbert17
Created August 17, 2018 15:25
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/988ea189e4a75fec5c6ed3d2d94c102d to your computer and use it in GitHub Desktop.
Save dogbert17/988ea189e4a75fec5c6ed3d2d94c102d to your computer and use it in GitHub Desktop.
YAG - Yet Another Gist
Thread 1 "moar" hit Breakpoint 1, __GI_exit (status=0) at exit.c:104
104 exit.c: No such file or directory.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff626b700 (LWP 5871)]
Thread 1 "moar" received signal SIGSEGV, Segmentation fault.
0x00007ffff75b24b4 in MVM_gc_object_id_use_allocation (tc=0x604a30, item=0x7ffff63a6c10) at src/gc/objectid.c:48
48 addr = entry->gen2_addr;
(gdb) bt
#0 0x00007ffff75b24b4 in MVM_gc_object_id_use_allocation (tc=0x604a30, item=0x7ffff63a6c10) at src/gc/objectid.c:48
#1 0x00007ffff75ada1d in process_worklist (tc=0x604a30, worklist=0x35ebd30, wtp=0x7fffffffc3c0, gen=0 '\000') at src/gc/collect.c:276
#2 0x00007ffff75ad53c in MVM_gc_collect (tc=0x604a30, what_to_do=0 '\000', gen=0 '\000') at src/gc/collect.c:114
#3 0x00007ffff75a7b9e in run_gc (tc=0x604a30, what_to_do=0 '\000') at src/gc/orchestrate.c:408
#4 0x00007ffff75a800d in MVM_gc_enter_from_allocator (tc=0x604a30) at src/gc/orchestrate.c:525
#5 0x00007ffff75a887e in MVM_gc_allocate_nursery (tc=0x604a30, size=144) at src/gc/allocation.c:32
#6 0x00007ffff2ecb07e in ?? ()
#7 0x00007fffffffc4c0 in ?? ()
#8 0x00000008f75a8907 in ?? ()
#9 0x00007ffff7fb9030 in ?? ()
#10 0x00007ffff7a2a52a in ?? () from //home/dogbert/repos/rakudo/nqp/MoarVM/../../install/lib/libmoar.so
#11 0x0000000000604a30 in ?? ()
#12 0x0000000000cc52d0 in ?? ()
#13 0x0000000000c6b510 in ?? ()
#14 0x00007fffffffc510 in ?? ()
#15 0x00007ffff7571b32 in MVM_p6opaque_read_object (tc=0x1522c90, o=0x7fffffffc5e0, offset=6310448) at src/6model/reprs/P6opaque.h:115
#16 0x00007ffff76d8958 in MVM_jit_code_enter (tc=0x604a30, code=0x7fffec019d60, cu=0x7cdec8) at src/jit/interface.c:24
#17 0x00007ffff756bcb1 in MVM_interp_run (tc=0x604a30, initial_invoke=0x7ffff76b7082 <toplevel_initial_invoke>, invoke_data=0x6909f0) at src/core/interp.c:5980
#18 0x00007ffff76b71e7 in MVM_vm_run_file (instance=0x604010, filename=0x7fffffffe2bf "/home/dogbert/repos/rakudo/perl6.moarvm") at src/moar.c:417
#19 0x00000000004016e7 in main (argc=10, argv=0x7fffffffde18) at src/main.c:300
(gdb) p entry
$1 = (MVMObjectId *) 0x0
(gdb) l
43 void * MVM_gc_object_id_use_allocation(MVMThreadContext *tc, MVMCollectable *item) {
44 MVMObjectId *entry, *prev;
45 void *addr;
46 uv_mutex_lock(&tc->instance->mutex_object_ids);
47 HASH_FIND_prev(hash_handle, tc->instance->object_ids, (void *)&item, sizeof(MVMObject *), entry, prev);
48 addr = entry->gen2_addr;
49 HASH_DELETE(hash_handle, tc->instance->object_ids, entry, prev);
50 MVM_free(entry);
51 item->flags ^= MVM_CF_HAS_OBJECT_ID;
52 uv_mutex_unlock(&tc->instance->mutex_object_ids);
(gdb) info threads
Id Target Id Frame
* 1 Thread 0x7ffff7fdb700 (LWP 5870) "moar" 0x00007ffff75b24b4 in MVM_gc_object_id_use_allocation (tc=0x604a30, item=0x7ffff63a6c10) at src/gc/objectid.c:48
2 Thread 0x7ffff626b700 (LWP 5871) "moar" pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment