Skip to content

Instantly share code, notes, and snippets.

@FROGGS
Last active October 24, 2016 19:18
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 FROGGS/05195d5426cbda9882a9dd00f684de72 to your computer and use it in GitHub Desktop.
Save FROGGS/05195d5426cbda9882a9dd00f684de72 to your computer and use it in GitHub Desktop.
(gdb) run
Starting program: /home/nqp/install/bin/moar --libpath=src/vm/moar/stage0 src/vm/moar/stage0/nqp.moarvm --bootstrap --setting=NULL --no-regex-lib --target=mbc --output=gen/moar/stage1/nqpmo.moarvm gen/moar/stage1/nqpmo.nqp
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/mips64el-linux-gnuabi64/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
signal_all_but (tail=0x0, t=0x20031d00, tc=0x1200127d0)
at src/gc/orchestrate.c:69
69 next = t->body.next;
(gdb) bt full
#0 signal_all_but (tail=0x0, t=0x20031d00, tc=0x1200127d0)
at src/gc/orchestrate.c:69
count = 0
next = <optimized out>
#1 MVM_gc_enter_from_allocator (tc=tc@entry=0x1200127d0)
at src/gc/orchestrate.c:392
threads = 0x20031d00
last_starter = 0x0
num_threads = 0
#2 0x000000fff7ca1820 in MVM_gc_allocate_nursery (tc=0x1200127d0, size=72)
at src/gc/allocation.c:32
allocated = <optimized out>
#3 0x000000fff7ca18bc in MVM_gc_allocate (size=<optimized out>,
tc=tc@entry=0x1200127d0) at src/gc/allocation.h:13
No locals.
#4 MVM_gc_allocate_zeroed (tc=tc@entry=0x1200127d0, size=<optimized out>)
at src/gc/allocation.c:49
No locals.
#5 0x000000fff7ca1bcc in MVM_gc_allocate_object (tc=0x1200127d0,
st=<optimized out>) at src/gc/allocation.c:86
obj = <optimized out>
#6 0x000000fff7c81648 in MVM_frame_takeclosure (tc=0x1200127d0,
code=<optimized out>) at src/core/frame.c:1043
closure = 0x120021700
captured = <optimized out>
#7 0x000000fff7c70140 in MVM_interp_run (tc=0x0, tc@entry=0x1200127d0,
initial_invoke=0x20031d00, invoke_data=0x10) at src/core/interp.c:1074
op = 8208
LABELS = {0xfff7c60d7c <MVM_interp_run+156>,
0xfff7c6b394 <MVM_interp_run+42676>,
0xfff7c60fa8 <MVM_interp_run+712>,
----------------------- >8 snip 8< -----------------------
0xfff7c6147c <MVM_interp_run+1948>,
0xfff7c614cc <MVM_interp_run+2028>,
0xfff7c6153c <MVM_interp_run+2140>...}
cur_op = 0xfff7271a64 "\020"
bytecode_start = 0xfff7271a5c "\237"
reg_base = 0x1208eae70
cu = 0x120073970
cur_callsite = 0xfff7fb4990 <two_args_callsite>
#8 0x000000fff7d58324 in MVM_vm_run_file (instance=0x120012010,
filename=<optimized out>) at src/moar.c:311
tc = 0x1200127d0
cu = 0x120073270
#9 0x000000012000127c in main (argc=<optimized out>, argv=0xfffffffc28)
at src/main.c:192
instance = 0x120012010
input_file = 0xfffffffe5f "src/vm/moar/stage0/nqp.moarvm"
executable_name = <optimized out>
lib_path = {0xfffffffe4c "src/vm/moar/stage0", 0x0,
0xfffffffad8 "\360'\266\367\377", 0xfff7ff1618 "\\\r", 0x0,
0xfffffffb90 "\377\377\377\377\377\377\377\377",
0xfffffffac0 "\b\373\024 \001",
0xfff8006000 <error: Cannot access memory at address 0xfff8006000>}
dump = <optimized out>
full_cleanup = <optimized out>
argi = 3
lib_path_i = <optimized out>
(gdb)
------------------
Program received signal SIGSEGV, Segmentation fault.
signal_all_but (tail=0x0, t=0x20031d00, tc=0x1200127d0)
at src/gc/orchestrate.c:69
69 next = t->body.next;
(gdb) p t
$1 = (MVMThread *) 0x20031d00
(gdb) p &t->body
$2 = (MVMThreadBody *) 0x20031d18
(gdb) p t->body.next
Cannot access memory at address 0x20031d30
(gdb) p t->body
Cannot access memory at address 0x20031d18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment