Skip to content

Instantly share code, notes, and snippets.

@retupmoca
Created May 10, 2014 22:45
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 retupmoca/86d58d4d8d707f26b980 to your computer and use it in GitHub Desktop.
Save retupmoca/86d58d4d8d707f26b980 to your computer and use it in GitHub Desktop.
(gdb) bt
#0 0x00007fd47c9e24ba in gc_mark (tc=0x23555d0, st=<optimized out>, data=0x2a65e48, worklist=0x3e80450)
at src/6model/reprs/MVMStaticFrame.c:143
#1 0x00007fd47c9d489d in MVM_gc_mark_collectable (tc=tc@entry=0x23555d0, worklist=worklist@entry=0x3e80450,
new_addr=0x2a65e30) at src/gc/collect.c:334
#2 0x00007fd47c9cd8bf in MVM_gc_root_add_gen2s_to_worklist (tc=tc@entry=0x23555d0,
worklist=worklist@entry=0x54ce460) at src/gc/roots.c:224
#3 0x00007fd47c9d51db in MVM_gc_collect (tc=0x23555d0, what_to_do=<optimized out>, gen=gen@entry=0 '\000')
at src/gc/collect.c:100
#4 0x00007fd47c9cc3f8 in run_gc (tc=tc@entry=0x23555d0, what_to_do=what_to_do@entry=0 '\000')
at src/gc/orchestrate.c:268
#5 0x00007fd47c9ccb3a in MVM_gc_enter_from_allocator (tc=tc@entry=0x23555d0) at src/gc/orchestrate.c:377
#6 0x00007fd47c9ccc25 in MVM_gc_allocate_nursery (tc=tc@entry=0x23555d0, size=72) at src/gc/allocation.c:32
#7 0x00007fd47c9ccc63 in MVM_gc_allocate_zeroed (tc=tc@entry=0x23555d0, size=<optimized out>)
at src/gc/allocation.c:49
#8 0x00007fd47c9ccdb4 in MVM_gc_allocate_object (tc=0x23555d0, st=0x2356bd0) at src/gc/allocation.c:85
#9 0x00007fd47c9b4dce in MVM_frame_takeclosure (tc=tc@entry=0x23555d0, code=0x3af0ce8) at src/core/frame.c:701
#10 0x00007fd47c9a5c89 in MVM_interp_run (tc=tc@entry=0x23555d0,
initial_invoke=initial_invoke@entry=0x7fd47ca117ac <toplevel_initial_invoke>, invoke_data=<optimized out>)
at src/core/interp.c:783
#11 0x00007fd47ca11e67 in MVM_vm_run_file (instance=instance@entry=0x2355010, filename=<optimized out>)
at src/moar.c:170
#12 0x0000000000400e16 in main (argc=9, argv=0x7fff37030d98) at src/main.c:163
@retupmoca
Copy link
Author

Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f97512d351a in gc_mark (tc=0x1fa55d0, st=, data=0x26b5c08, worklist=0x5496b50)

at src/6model/reprs/MVMStaticFrame.c:143

143 MVM_gc_worklist_add(tc, worklist, &body->spesh_candidates[i].spesh_slots[j]);
(gdb) p tc
$1 = (MVMThreadContext ) 0x1fa55d0
(gdb) p worklist
$15 = (MVMGCWorklist *) 0x5496b50
(gdb) p body
$2 = (MVMStaticFrameBody *) 0x26b5c08
(gdb) p &body->spesh_candidates
$3 = (MVMSpeshCandidate *
) 0x26b5c50
(gdb) p i
$4 = 0
(gdb) p &body->spesh_candidates[0]
$5 = (MVMSpeshCandidate ) 0x45eea00
(gdb) p &body->spesh_candidates[0].spesh_slots
$6 = (MVMCollectable *__) 0x45eea28
(gdb) p j
$7 = 5
(gdb) p &body->spesh_candidates[0].spesh_slots[5]
$8 = (MVMCollectable *
) 0x546e718
(gdb) p (&body->spesh_candidates[0].spesh_slots[5])
$9 = (MVMCollectable *) 0x55cb2358d481175
(gdb) p *
(&body->spesh_candidates[0].spesh_slots[5])
Cannot access memory at address 0x55cb2358d481175
(gdb) p *(&body->spesh_candidates[0].spesh_slots[4])
$10 = {owner = 1, flags = 10, size = 160, sc_forward_u = {forwarder = 0x4924980, sc = 0x4924980, st = 0x4924980}}
(gdb) p *
(&body->spesh_candidates[0].spesh_slots[3])
$11 = {owner = 1, flags = 10, size = 160, sc_forward_u = {forwarder = 0x4924980, sc = 0x4924980, st = 0x4924980}}
(gdb) p *(&body->spesh_candidates[0].spesh_slots[2])
$12 = {owner = 1, flags = 10, size = 160, sc_forward_u = {forwarder = 0x4924980, sc = 0x4924980, st = 0x4924980}}
(gdb) p *
(&body->spesh_candidates[0].spesh_slots[1])
$13 = {owner = 1, flags = 10, size = 160, sc_forward_u = {forwarder = 0x41f4430, sc = 0x41f4430, st = 0x41f4430}}
(gdb) p **(&body->spesh_candidates[0].spesh_slots[0])
$14 = {owner = 1, flags = 10, size = 160, sc_forward_u = {forwarder = 0x4924980, sc = 0x4924980, st = 0x4924980}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment