Skip to content

Instantly share code, notes, and snippets.

@FROGGS

FROGGS/cc Secret

Last active December 28, 2015 12:59
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/49b9270a8e216e05a46a to your computer and use it in GitHub Desktop.
Save FROGGS/49b9270a8e216e05a46a to your computer and use it in GitHub Desktop.
moar::syslibs[2]=rt
moar::syslibs[3]=dl
moar::ldsys=-l%s
nqp::version=2013.10-241-gfd308ad
nqp::build-date=2013-11-16T19:43:42Z
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7a03cf7 in gc_free (tc=0x6033c0, obj=0x7ffff67e2910) at src/6model/reprs/MVMCallCapture.c:55
55 if (ctx->body.effective_callsite != ctx->body.apc->callsite)
(gdb) bt full
#0 0x00007ffff7a03cf7 in gc_free (tc=0x6033c0, obj=0x7ffff67e2910) at src/6model/reprs/MVMCallCapture.c:55
ctx = 0x7ffff67e2910
#1 0x00007ffff79e4787 in MVM_gc_collect_free_nursery_uncopied (tc=0x6033c0, limit=0x7ffff6853ff8) at src/gc/collect.c:520
obj = 0x7ffff67e2910
item = 0x7ffff67e2910
dead = 1 '\001'
scan = 0x7ffff67e2910
#2 0x00007ffff79dce5e in MVM_gc_global_destruction (tc=0x6033c0) at src/gc/orchestrate.c:429
nursery_tmp = 0x7ffff69e0010 ""
#3 0x00007ffff7a2c8fe in MVM_vm_destroy_instance (instance=0x603010) at src/moar.c:169
No locals.
#4 0x00007ffff79adf13 in MVM_interp_run (tc=0x6033c0, initial_invoke=0x7ffff7a2c73e <toplevel_initial_invoke>, invoke_data=0x738fa0) at src/core/interp.c:3276
exit_code = 493921239143
op = 510
cur_op = 0x7ffff647eb70 "\a"
bytecode_start = 0x7ffff647ea16 "\237"
reg_base = 0x16d9430
cu = 0x7ffff67eedd8
cur_callsite = 0x8ab330
#5 0x00007ffff7a2c862 in MVM_vm_run_file (instance=0x603010, filename=0x7fffffffe22c "/home/froggs/dev/nqp/install/languages/nqp/lib/nqp.moarvm") at src/moar.c:150
start_frame = 0x738fa0
tc = 0x6033c0
cu = 0x7ffff67e2f28
#6 0x0000000000400d99 in main (argc=4, argv=0x7fffffffde38) at src/main.c:137
instance = 0x603010
input_file = 0x7fffffffe22c "/home/froggs/dev/nqp/install/languages/nqp/lib/nqp.moarvm"
lib_path = 0x7fffffffe1fd "/home/froggs/dev/nqp/install/languages/nqp/lib"
dump = 0
argi = 3
flag = -2
(gdb) q
A debugging session is active.
Inferior 1 [process 9052] will be killed.
Quit anyway? (y or n) y
nqp::version=2013.10-241-gfd308ad
nqp::build-date=2013-11-16T19:43:42Z
==10094== Invalid read of size 8
==10094== at 0x4F0BEF3: MVM_interp_run (interp.c:3275)
==10094== by 0x4F8A861: MVM_vm_run_file (moar.c:150)
==10094== by 0x400D98: main (main.c:137)
==10094== Address 0xa30cd88 is not stack'd, malloc'd or (recently) free'd
==10094==
==10094== Invalid read of size 8
==10094== at 0x4F61CF7: gc_free (MVMCallCapture.c:55)
==10094== by 0x4F42786: MVM_gc_collect_free_nursery_uncopied (collect.c:520)
==10094== by 0x4F3AE5D: MVM_gc_global_destruction (orchestrate.c:429)
==10094== by 0x4F8A8FD: MVM_vm_destroy_instance (moar.c:169)
==10094== by 0x4F0BF12: MVM_interp_run (interp.c:3276)
==10094== by 0x4F8A861: MVM_vm_run_file (moar.c:150)
==10094== by 0x400D98: main (main.c:137)
==10094== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==10094==
==10094==
==10094== Process terminating with default action of signal 11 (SIGSEGV)
==10094== Access not within mapped region at address 0x0
==10094== at 0x4F61CF7: gc_free (MVMCallCapture.c:55)
==10094== by 0x4F42786: MVM_gc_collect_free_nursery_uncopied (collect.c:520)
==10094== by 0x4F3AE5D: MVM_gc_global_destruction (orchestrate.c:429)
==10094== by 0x4F8A8FD: MVM_vm_destroy_instance (moar.c:169)
==10094== by 0x4F0BF12: MVM_interp_run (interp.c:3276)
==10094== by 0x4F8A861: MVM_vm_run_file (moar.c:150)
==10094== by 0x400D98: main (main.c:137)
==10094== If you believe this happened as a result of a stack
==10094== overflow in your program's main thread (unlikely but
==10094== possible), you can try to increase the size of the
==10094== main thread stack using the --main-stacksize= flag.
==10094== The main thread stack size used in this run was 8388608.
==10094==
==10094== HEAP SUMMARY:
==10094== in use at exit: 43,413,125 bytes in 90,152 blocks
==10094== total heap usage: 96,626 allocs, 6,474 frees, 75,507,887 bytes allocated
==10094==
==10094== LEAK SUMMARY:
==10094== definitely lost: 6,185 bytes in 138 blocks
==10094== indirectly lost: 0 bytes in 0 blocks
==10094== possibly lost: 0 bytes in 0 blocks
==10094== still reachable: 43,406,940 bytes in 90,014 blocks
==10094== suppressed: 0 bytes in 0 blocks
==10094== Rerun with --leak-check=full to see details of leaked memory
==10094==
==10094== For counts of detected and suppressed errors, rerun with: -v
==10094== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 2 from 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment